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
from __future__ import print_function, unicode_literals | |
import time | |
from scapy.all import ARP, Ether, sendp | |
def create_ARP(mac='f0:fe:6b:1e:4b:27', ip_addr='10.10.100.254'): | |
BCAST = ':'.join(['ff'] * 6) | |
print("Bcast", BCAST) |
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/local/bin/python2.7 | |
from __future__ import print_function, unicode_literals | |
import gdb | |
import re | |
def backtrace(): | |
""" Generates stack frames until none is available """ | |
frame = gdb.newest_frame() |
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/ksh | |
# Place sets in ~/.config/clipstuff/$NAME | |
# Sets are lines of | |
# name | item | |
# item will be placed in the X-Selection after it's selected with dmenu. | |
SET="unicode" | |
if [ $# -gt 0 ]; then |
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
CREATE TABLE events (id INTEGER PRIMARY KEY, timestamp INTEGER, machine STRING); | |
INSERT INTO events (timestamp, machine) VALUES (123, 'a'); | |
INSERT INTO events (timestamp, machine) VALUES (234, 'a'); | |
INSERT INTO events (timestamp, machine) VALUES (345, 'a'); | |
INSERT INTO events (timestamp, machine) VALUES (456, 'a'); | |
INSERT INTO events (timestamp, machine) VALUES (555, 'b'); | |
INSERT INTO events (timestamp, machine) VALUES (444, 'b'); | |
INSERT INTO events (timestamp, machine) VALUES (333, 'b'); |
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
$ python xor.py | |
Training: | |
Epoch 0 MSE: 1.765 | |
Epoch 100 MSE: 0.015 | |
Epoch 200 MSE: 0.005 | |
* Target MSE reached * | |
Evaluating: | |
1 XOR 0 = 1 ( 0.904) Error: 0.096 | |
0 XOR 1 = 1 ( 0.908) Error: 0.092 | |
1 XOR 1 = 0 (-0.008) Error: 0.008 |
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
# /etc/bgp/rappet.conf | |
group "rappet" { | |
remote-as 4242423889 | |
announce all | |
neighbor "100.64.0.2" { | |
descr "rappet-4" | |
} | |
} |
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
# /etc/hostname.tun19 | |
description "DN42 uplink to rappet" | |
group dn42uplink | |
!(cd /dev; sh MAKEDEV \$if) | |
!/usr/local/sbin/openvpn --config /etc/openvpn/dn42-rappet/config --daemon dn42-rappet-uplink & |
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
Using /home/gbe/chaos/ansible/ansible.cfg as config file | |
statically included: /home/gbe/chaos/ansible/roles/letsencrypt/tasks/systemd.yml | |
statically included: /home/gbe/chaos/ansible/roles/letsencrypt/tasks/cronjob.yml | |
PLAYBOOK: playbook-broken.yml *************************************************************************************************************************************************************************************************************************************************** | |
1 plays in playbook-broken.yml | |
PLAY [oldshit] ****************************************************************************************************************************************************************************************************************************************************************** | |
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************************** |
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
config { | |
# hostname mirror.osn.de | |
hostname anoncvs.eu.openbsd.org | |
collection { | |
name openbsd-cvsroot | |
release rcs | |
prefix /home/cvs | |
umask 002 | |
} | |
collection { |
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 <sys/types.h> | |
#include <sys/stat.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <unistd.h> |
NewerOlder