00333300
03111130
31111213
31111113
31211113
31221113
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import gi | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import GdkPixbuf, Gtk, Soup | |
import glob | |
class LocalSteam: | |
@property | |
def installed_games(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
// FIXME Pass arguments to proc() | |
#define WRAP_DLL_PROC(_type, _proc, _dll, _default, ...) \ | |
_type _proc(__VA_ARGS__) \ | |
{ \ | |
HMODULE dll = GetModuleHandle(_dll); \ | |
\ | |
if (!dll) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import requests | |
from bs4 import BeautifulSoup | |
from datetime import datetime | |
class Colissymo(object): | |
__UA_STRING = 'Mozilla/5.0 (Colissymo)' | |
__ROOT_URI = 'http://www.colissimo.fr/portail_colissimo/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
static bool | |
_fuzzy_search(const char *needle, const char *haystack) | |
{ | |
size_t hlen = strlen(haystack); | |
size_t nlen = strlen(needle); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdbool.h> | |
#include <SDL2/SDL.h> | |
#define PICTURE_SIZE_WIDTH 640 | |
#define PICTURE_SIZE_HEIGHT 480 | |
#define PICTURE_AT(x, y) (y * PICTURE_SIZE_WIDTH + x) | |
/* | |
* Declarations | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## User config | |
FREE_USER=${FREE_USER:-'MY_LOGIN'} | |
FREE_PASS=${FREE_PASS:-'MY_API_KEY'} | |
## Go go go | |
FREE_URI='https://smsapi.free-mobile.fr/sendmsg' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! Window | |
URxvt.scrollBar: false | |
URxvt.borderLess: true | |
URxvt.internalBorder: 0 | |
URxvt.externalBorder: 0 | |
URxvt.iconFile: /usr/share/icons/Faenza/apps/16/terminal.png | |
! Fonts | |
URxvt.font: xft:Monospace:size=9 | |
URxvt.depth: 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAINDOC = $(shell basename $$(pwd)) | |
LTXARGS = -pdf -lualatex -use-make | |
.PHONY: $(MAINDOC).pdf all clean | |
all: $(MAINDOC).pdf | |
$(MAINDOC).pdf: $(MAINDOC).tex | |
latexmk $(LTXARGS) $(MAINDOC).tex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ awk -F ' ' 'NR > 2 {printf("%-20s\n\tRX%15s packets\n\t%17s bytes\n\tTX%15s packets\n\t%17s bytes\n", $1, $3, $2, $11, $10);}' < /proc/net/dev | |
wlp2s0: | |
RX 13207 packets | |
2346094 bytes | |
TX 212 packets | |
44302 bytes | |
lo: | |
RX 131602 packets | |
13078892 bytes | |
TX 131602 packets |
NewerOlder