Skip to content

Instantly share code, notes, and snippets.

@yermulnik
yermulnik / config.yml
Last active September 28, 2024 08:09
GH CLI multi-account switch
git_protocol: ssh
aliases:
personal: '!cp ~/.config/gh/hosts.yml.personal ~/.config/gh/hosts.yml && gh auth status'
work: '!cp ~/.config/gh/hosts.yml.work ~/.config/gh/hosts.yml && gh auth status'
@ityonemo
ityonemo / test.md
Last active October 25, 2024 15:24
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@jamesmcm
jamesmcm / networkns.sh
Created January 26, 2020 13:35
networkns.sh
# Running specific applications through a VPN with network namespaces
# Initial state
curl ifconfig.co/city
sudo ip link list
sudo ip netns list
# Disable Uncomplicated Firewall (Ubuntu)
sudo ufw disable
@BoQsc
BoQsc / Gists.md
Last active October 10, 2024 17:29
How to search my own Gists
@fnky
fnky / ANSI.md
Last active November 17, 2024 08:19
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@lightdiscord
lightdiscord / default.nix
Last active October 13, 2022 04:41
Rust and wasm with nixos
with import <nixpkgs> {
overlays = map (uri: import (fetchTarball uri)) [
https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz
];
};
stdenv.mkDerivation {
name = "rust-wasm";
buildInputs = [
cargo-web
@johnmcfarlane
johnmcfarlane / begin(C++).md
Last active November 9, 2024 17:26
Resources for C++ beginners
@qutorial
qutorial / meetings_samosas.md
Last active October 8, 2021 04:20 — forked from leommoore/meetings_samosa.md
Meetings - SAMOSAS

Meetings - SAMOSAS


  • Start and stop meeting promptly
  • Agenda created in advance; no agenda, no meeting
  • Minutes recorded and sent around after meeting so everyone can recall results
  • One speaker at a time; no interrupting talker
  • Send material in advance, since reading is faster
  • Action items at the end of meeting, so know what each should do as a result of the meeting
  • Schedule the next meeting
@jeandudey
jeandudey / main.c
Created December 27, 2015 13:52
GTK borderless window
#include <stdio.h>
#include <gtk/gtk.h>
void hello(GtkWidget* widget, gpointer data)
{
printf("Hello World!\n");
}
int main(int argc, char* argv[])
{