Skip to content

Instantly share code, notes, and snippets.

View knotech's full-sized avatar

Schroder knotech

  • Guadalajara, Jalisco, MX
View GitHub Profile
@knotech
knotech / lesson_3.c
Last active June 2, 2017 10:38
Lesson 3 For 65534.
#include <stdio.h>
// Sup, sorry about missing this weeks lesson. As I explained in the email, I came up with a
// hella good idea, and had to nuke all my hard drives. Rearrange data. Basically, If I get inspired
// you can knock on my door and I might not notice.
// So for this week.
/* <- This symbol starts a comment.
That means that if you compile, and run your program with:
1)
/etc/profile
2)
~/.bash_profile
3)
hex_dump = """
0000000 eb 58 90 42 53 44 20 20 34 2e 34 00 02 10 20 00
0000010 02 00 00 00 00 f0 00 00 20 00 ff 00 00 00 00 00
0000020 f4 53 cd 01 9d 39 00 00 00 00 00 00 02 00 00 00
0000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00
0000040 00 00 29 02 14 f9 7e 47 43 47 4c 49 4e 55 58 20
0000050 20 20 46 41 54 33 32 20 20 20 fa 31 c0 8e d0 bc
0000060 00 7c fb 8e d8 e8 00 00 5e 83 c6 19 bb 07 00 fc
0000070 ac 84 c0 74 06 b4 0e cd 10 eb f5 30 e4 cd 16 cd
0000080 19 0d 0a 4e 6f 6e 2d 73 79 73 74 65 6d 20 64 69
@knotech
knotech / osx-for-hackers.sh
Created November 18, 2015 06:48 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
## This file will be printit.py
#!/usr/bin/env/python3
def printit(string):
print(string)
## This file will be in the same directory and called import_printit.py .
@knotech
knotech / flaskup
Created August 11, 2014 10:17
Flask starter script.
#!/bin/bash
## flask up
## create virtualenv virtual environment, install flask, and cp boilerplate
## into virtual environment.
##
## run: ~$ . flaskup <dirname>
if [[ -z $1 ]];
then