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/python | |
""" | |
Criptosistema ACYMOS2 por Agustin, Kriptopolis | |
Notas: | |
"~" representa la "enye" | |
Los comentarios estan sin acentos y caracteres especiales | |
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 <stdint.h> | |
uint8_t* foo(){ | |
static uint8_t out[2] = {1,2}; | |
return out; | |
} | |
int main(int argv, char** argc){ | |
uint8_t* bar = foo(); |
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
import time | |
test = [] | |
for i in xrange(2500000): | |
test.append(dict()) | |
for i in xrange(len(test)): | |
d = test.pop() | |
del test |
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
test = [dict() for i in xrange(2500000)] | |
[test.pop() for i in xrange(len(test))] |
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
for each in `tail -n 100000 logfile | grep pattern | tr -s " " | awk '{print $1}' | sort | uniq`; do dig +short -x $each; done |
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
MPD="$(mpc | head -n 2 | tr '\n' ' ' | sed 's/^\(.*\)\( \[.*\)/\1/')" | |
MPD_STATE="$(mpc | head -n 2 | tr '\n' ' ' | grep -oG '\[.*\]')" | |
if [ -z "$MPD" ]; then | |
echo "<fc=#ff5500>no music</fc>" | |
else | |
if [ "$MPD_STATE" = "[paused]" ]; then | |
echo "<fc=#ff5500>$MPD</fc>" | |
elif [ -z "$MPD_STATE" ]; then | |
echo "<fc=#ff5500>no music</fc>" | |
else |
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
cat $1 | column -s, -t | less -#2 -N -S |
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
import sys | |
from twisted.internet import reactor | |
from twisted.python import log | |
from twisted.words.protocols.jabber.jid import JID | |
from wokkel import client, pubsub | |
jid_publisher = JID("user@host") | |
secret = "test123" |
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
echo "Starting Synergy SSH session on $1 with username $2" | |
ssh -l $2 -f -N -L localhost:24800:$1:24800 $1 | |
synergyc localhost |
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 | |
VERNAME=`git describe --long | sed "s/-g.*//g"` | |
VERCODE=`git rev-list --all | wc -l` | |
# Do something with the verson number here. |
OlderNewer