Skip to content

Instantly share code, notes, and snippets.

View TrakJohnson's full-sized avatar

Théo TrakJohnson

View GitHub Profile
@zarzen
zarzen / spacemacs-cpp.md
Last active January 23, 2024 13:06
C++ development environment setup in Spacemacs
@xurizaemon
xurizaemon / youtube.sh
Last active November 9, 2018 02:25
Streaming to YouTube from Raspberry Pi via avconv with a Microsoft HD-3000 LifeCam.
#!/bin/bash
KEY=YOUR.KEYG-OESR-IGHT-HERE
URL=rtmp://a.rtmp.youtube.com/live2
while true ; do
avconv -ar 44100 -ac 2 -f s16le -i /dev/zero -f video4linux2 -s 640x360 -r 10 -i /dev/video0 -f flv "$URL/$KEY"
sleep 3
done
@EvergreenTheTree
EvergreenTheTree / gruvbox.theme
Created May 12, 2015 17:59
Gruvbox dark theme for xfce4-terminal (put this in ~/.xfce4/config/terminal/terminalrc)
ColorForeground=#f2f2e5e5bcbc
ColorBackground=#323230302f2f
ColorCursor=#d65bc4cd8ca1
ColorPalette=#323230302f2f;#cccc24241d1d;#989897971a1a;#d7d799992121;#454585858888;#b1b162628686;#68689d9d6a6a;#929283837474;#1d1d20202121;#fbfb49493434;#b8b8bbbb2626;#fafabdbd2f2f;#8383a5a59898;#d3d386869b9b;#8e8ec0c07c7c;#b9b9a6a69393
@jteneycke
jteneycke / gist:7947353
Last active August 16, 2025 17:19
How to install and configure Common Lisp for Emacs. (SBCL + Slime + Emacs24)

In your shell

sudo apt-get install sbcl
curl -O http://beta.quicklisp.org/quicklisp.lisp
sbcl --load quicklisp.lisp

Inside the context of sbcl

@bvasiles
bvasiles / stackoverflow.bib
Last active July 2, 2019 16:50
Bibliography of academic papers using Stack Overflow data, in BibTeX format. Ideally it should contain all papers listed on http://meta.stackoverflow.com/questions/134495/academic-papers-using-stack-overflow-data
%% Saved with string encoding Unicode (UTF-8)
@inproceedings{Gkotsis2014Content,
title={It's all in the content: state of the art best answer prediction based on discretisation of shallow linguistic features},
author={Gkotsis, George and Stepanyan, Karen and Pedrinaci, Carlos and Domingue, John and Liakata, Maria},
booktitle={Proceedings of the 2014 ACM Conference on Web Science (WebSci)},
pages={202--210},
year={2014},
organization={ACM}
}
@wontoncc
wontoncc / balloontip.py
Last active September 30, 2025 16:09
Balloon tip module, Python, using win32gui.
# -- coding: utf-8 --
from win32api import *
from win32gui import *
import win32con
import sys, os
import struct
import time
class WindowsBalloonTip:
@jeremyBanks
jeremyBanks / expanded.md
Created June 22, 2010 05:10
one-line self-executing c header and expanded explanation
//

Since we don't want this visible in C, we put it in a comment.

&>/dev/null

Unfortunately // is interpreted as an invalid shell command and produces an error message, so we need to redirect that to /dev/null to get rid of it.

;x="${0%.*}"