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 perl | |
# François Serman <[email protected]> | |
# 07 nov 2012 | |
# Initial version: updates awesome widget perdiodicaly, or when killed | |
# via SIGUSR1 | |
# | |
# Awesome setup: | |
# mpdbox = widget({ type = "textbox", name = "mpdbox" }) | |
# ... |
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/perl | |
# François Serman <[email protected]> | |
# 07 nov 2012 | |
# | |
# Displays a treeview of a directory, very simply. | |
# If no parameters is given, takes PWD as base. | |
use strict; | |
our $prefix = shift || $ENV{PWD}; |
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 <unistd.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
uint64_t rdtsc(); | |
#ifdef __i386 | |
__inline__ uint64_t rdtsc() { | |
uint64_t x; | |
__asm__ volatile ("rdtsc" : "=A" (x)); |
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
#ifdef __gnu_linux__ | |
#define SPORT source | |
#define DPORT dest | |
#else | |
#define SPORT th_sport | |
#define DPORT th_dport | |
#endif | |
// ... |
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
#!/bin/bash | |
openssl aes-256-cbc -d -a -in $1 -out $1.clear | |
echo "clear file is in $1.clear" |
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 | |
from binascii import unhexlify | |
import sys | |
l = len(sys.argv) - 1 | |
inf = '' | |
outf = '' | |
if l == 0: |
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
<?php | |
$dbh = NULL; | |
try { | |
$dbh = new PDO("sqlite:/tmp/panel.db"); | |
} | |
catch(PDOException $e) | |
{ | |
die ($e->getMessage()); |
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
char toto[] = "hello world"; |
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
# Print hilighted messages & private messages to window named "hilight" | |
# for irssi 0.7.99 by Timo Sirainen | |
use Irssi; | |
use URI; | |
use LWP; | |
use vars qw($VERSION %IRSSI); | |
$VERSION = "0.01"; | |
$last_notif = 0; |
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
network={ | |
ssid="LILLE1" | |
key_mgmt=WPA-EAP | |
eap=PEAP | |
identity="firstname.lastname" | |
password="YourAwesomePassword" | |
phase2="auth=MSCHAPV2" | |
} |
OlderNewer