Skip to content

Instantly share code, notes, and snippets.

@yuasatakayuki
yuasatakayuki / the_open_source_space_project.md
Created February 15, 2016 03:48
The open-source SpaceWire project

Overview

SpaceWire is the standard data transfer and network interface which is standardized as ECSS-E-ST-50-12C lead by the European Space Agency (ESA). RMAP is a short for Remote Memory Access Protocol which is the standardized data transfer protocol over SpaceWire (ECSS-E-ST-50-52C).

@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active May 20, 2024 09:52
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.

@TheHippo
TheHippo / Makefile
Created March 31, 2016 22:32
Golang Makefile example
OUT := binariy-name
PKG := gitlab.com/group/project
VERSION := $(shell git describe --always --long --dirty)
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/)
GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/)
all: run
server:
go build -i -v -o ${OUT} -ldflags="-X main.version=${VERSION}" ${PKG}
@Rich-Harris
Rich-Harris / please-include-a-repro.md
Last active May 20, 2024 09:50
Please include a repro

Please include a repro

You probably arrived here because of a curt message in response to an issue you filed on a repo that I contribute to. Sorry about that (particularly if you filed the issue long ago and have been waiting patiently for a response). Let me explain:

I work on a lot of different open source projects. I really do like building software that makes other people's lives easier, but it's crazy time-consuming. One of the most time-consuming parts is responding to issues. A lot of OSS maintainers will bend over backwards to try and understand your specific problem and diagnose it, to the point of setting up new test projects, fussing around with different Node versions, reading the documentation for build tools that we don't use, debugging problems in third party dependencies that appear to be involved in the problem... and so on. I've personally spent hundreds of hours of my free time doing these sorts of things to try and help people out, because I want to be a responsible maintainer and I

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@xigh
xigh / asm_amd64.s
Last active May 20, 2024 09:48
DCAS for golang
TEXT ·CompareAndSwapDPointer(SB),4,$0
MOVQ addr+0(FP), SI
MOVQ old+8(FP), AX
MOVQ old+16(FP), DX
MOVQ new+24(FP), BX
MOVQ new+32(FP), CX
LOCK // forgot this one
// CMPXCHG16B (SI)
BYTE $0x48; BYTE $0x0F; BYTE $0xC7; BYTE $0x0E
@skwirrel
skwirrel / README.md
Last active May 20, 2024 09:46
Javascript Console Hack for Getting NonVerbal Communication In a Zoom Meeting

Getting A Summary of Nonverbal Communication In a Zoom Meeting

For the background to this gist see here: https://devforum.zoom.us/t/getting-meeting-participants-with-raised-hand/10718/9

Here is the solution I had to resort to for getting a list of nonverbal communication from a Zoom meeting.

I have a meeting with 100’s of participants and we wanted to run a simple impromptu “show of hands” poll without using the specific polling feature. All I needed was a list of all the attendees with their hand raised at a certain point in time…

@Delivator
Delivator / google_search_maps_addon.user.js
Last active May 20, 2024 09:44 — forked from Daan-Grashoff/google_search_maps_addon.js
Bring back the google maps button and make map image clickable when searching on google
// ==UserScript==
// @name Google Search Maps Fix
// @namespace http://tampermonkey.net/
// @version 2024-03-07
// @description Bring Google maps button back
// @author Daan Grashoff / Delivator
// @match https://www.google.com/search*
// @include https://www.google.tld/search*
// @icon https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png
// @grant none
@ricferr
ricferr / gist:90583f608f0b0ae9c3cf6833be04ab85
Created May 24, 2018 09:13
How to create a systemd service for python script with virtualenv
[Unit]
Description=Some description
After=network.target
[Service]
Type=simple
User=user
WorkingDirectory=/home/user/somedir
Environment=PYTHONPATH=/home/user/somedir
ExecStart=/home/user/venv/bin/python script.py
@qdm12
qdm12 / README.md
Last active May 20, 2024 09:40
Wireguard and iptables restrictions for multiple users

Wireguard and iptables restrictions for multiple users

If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.

Assumptions

This should fit most setups (not mine though 😉)