Skip to content

Instantly share code, notes, and snippets.

@GameScripting
GameScripting / namen_wiktionary.csv
Last active November 30, 2021 11:29
Vornamen von wiktionary.org vom 2021-11-30 mit Angabe zum Geschlecht (M/W) als CSV. Siehe https://de.wiktionary.org/wiki/Verzeichnis:International/Vornamen_mit_mehrdeutiger_Geschlechtszugeh%C3%B6rigkeit
Name Geschlecht
Aabel M
Aabid M
Aabjørn M
Aabo M
Aabraham M
Aadam M
Aadolf M
Aage M
Aake M
FROM ubuntu:16.04
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q nginx dnsmasq
RUN printf "\nuser=root" >> /etc/dnsmasq.conf && \
printf "\ncache-size=0" >> /etc/dnsmasq.conf
Zwischenablage Überwacher
-------------------------
Ein Programm dass die Zwischenablage überwacht und bei Änderung konfigurierte Aktionen auslöst zB wenn
- ein http* link kopiert wird diesen in eine durchsuchbare datenbank speichern, sodass man später suchen kann was man sich angeschaut hat
Wetter-Logger
-------------
Ein Web-Dienst der jeden Tag von verschiedenen Orten die Wettervorhersage speichert, sodass man später schauen kann wie das Wetter vor einigen Jahren war, tendenzen erkennen kann
@GameScripting
GameScripting / gist:7892948
Created December 10, 2013 15:56
Better git diffs using the diff-highlight script Source: https://coderwall.com/p/ydluzg

When an old line and a new line are very similar, it's hard to immediately see the difference, so highlighting the changed parts might help.

What you need to do are just downloading a perl script and configuring your git.

$ curl -O https://raw.github.com/git/git/master/contrib/diff-highlight/diff-highlight

Move the file diff-highlight to the ~/bin/ directory (or wherever your $PATH is), and then add the following to your ~/.gitconfig

[pager]

log = diff-highlight | less

@GameScripting
GameScripting / Git useful commands
Created October 18, 2013 08:45
git useful commands
### Print graph with branch names
git log --graph --decorate --all
class Program
{
public delegate int GetNumber(Random r);
private static int called = 1;
public static void Main()
{
Random r = new Random();