Skip to content

Instantly share code, notes, and snippets.

@zyzof
zyzof / gist:e806287ed8697444dff2d811e108202b
Created July 24, 2017 08:45
Auto apt-get update/upgrade cron
00 2 * * * PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' apt-get -y update >> /var/log/apt-get-update.txt 2>&1
05 2 * * * PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' apt-get -y upgrade >> /var/log/apt-get-upgrade.txt 2>&1
@zyzof
zyzof / DrunkardsWalk.cs
Created January 21, 2016 08:52
Implementation of basic "Drunkard's Walk" path/map generation. Outputs a bitmap image.
using System;
using System.Drawing;
using System.Drawing.Imaging;
namespace MapGen
{
class Program
{
static readonly int MAP_WIDTH = 1000;
static readonly int MAP_HEIGHT = 1000;
@zyzof
zyzof / UdpSpoofer.py
Created January 3, 2014 12:20
Sending spoofed raw packets with scapy
from scapy.all import *
import time
ip = IP(dst='192.168.1.1', src='192.168.1.1')
udp = UDP(sport=1234,dport=1234)
payload = '\x01\x0f'
packet = ip/udp/payload
while(True):