Skip to content

Instantly share code, notes, and snippets.

@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[])
{
@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
@johnmcfarlane
johnmcfarlane / begin(C++).md
Last active June 26, 2024 14:42
Resources for C++ beginners
@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
@fnky
fnky / ANSI.md
Last active July 8, 2024 17:33
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@BoQsc
BoQsc / Gists.md
Last active June 10, 2024 19:02
How to search my own Gists
@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
@ityonemo
ityonemo / test.md
Last active June 13, 2024 09:10
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)

@yermulnik
yermulnik / config.yml
Last active May 3, 2024 21:08
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'