This file contains hidden or 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
// Is the sub-process. Prints out the 'undefined' value of myvalue before it's assigned to. | |
//# gcc -o execl_receiver execl_receiver.c | |
#include <unistd.h> | |
#include <stdio.h> | |
extern char **environ; | |
// hopefully since it has the same memory location perchance it'll keep the value that | |
// last was written to that virtual memory location? | |
char myvalue; |
This file contains hidden or 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
// Queries the computer for the cpuid bits and tries detailing the results. | |
//# vcvars32 & cl __cpuid.c | |
// See http://msdn.microsoft.com/en-us/library/hskdteyh(v=vs.90).aspx | |
// Not sure what to do for Linux. | |
#include <stdio.h> | |
#include <intrin.h> | |
int main(int argc, char *argv[]) { |
This file contains hidden or 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
# Work in Progress | |
# AdolfNumberer.rb | |
# ================ | |
# | |
# I've got too much time on my hands. | |
# This is a script that visits the listing of "What Links Here?" of the Adolf Hitler Wikipedia page, | |
# assigns everything there an Adolf number of 1, then goes through each of those and their backlink | |
# pages, assigns every one of those an Adolf number of 2, on an epic and eternal search for anything | |
# past Adolf number 6. |
This file contains hidden or 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
// A command system with callbacks that technically can be dynamically added/removed | |
//# gcc -o ristovskithing.exe ristovskithing.c -std=c99 | |
// The above is an inmake command. You can just run it in the shell to compile. | |
// for the ristovski | |
// ~ boxmein 2014 | |
#include <string.h> | |
#include <stdio.h> | |
#include <assert.h> | |
// basically, how long a line can be. let's store the line inside a char*[MAX_LINE] |
This file contains hidden or 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/sh | |
# Run 'vagrant up' for a Linux box with all necessary tools to compile TPT. | |
# Note: does not yet work! | |
# | |
# Linux | |
# | |
echo "Preparing Linux build environment" | |
# install TPT dependencies and general build tools |
This file contains hidden or 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/sh | |
echo i'm a nice shell script! | |
echo i'm updated! | |
echo THIS IS AN EVIL LINE OF CODE | |
echo IF THE LAST ONE WASNT EVIL ENOUGH THIS WILL BE |
This file contains hidden or 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
(lambda s, t, u: | |
print('Hello, ' + u + '-year-old ' + s + ' ' + t + '. Good luck on the course!'))( | |
input('First name? :: '), | |
input('Last name? :: '), | |
input('Age? :: ')) |
This file contains hidden or 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
/* | |
Sadistic Russian Roulette and Random Banning IRC bot, codename ruletka. | |
Requires ops in the channel. | |
Commands: | |
1. \r : roulette. | |
2. \b : randomban. | |
3. \k : chance kick. |
This file contains hidden or 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
// A Twitter bot! Experimental! | |
// Reverses words of text sent to it. | |
//# node {{f}} # don't forget to add environment vars! | |
// npm install twit | |
var Twit = require('twit'); | |
// how many @mentions from the top to fetch, to look for | |
// TODO: go through many pages of @mentions | |
// TODO: add since_id for the last tweet this fetched |
This file contains hidden or 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
# | |
# Tiny task system | |
# ~boxmein 2014 | |
# free to use | |
# | |
# {'name': callback, ...} | |
tasks = {} | |
# Add a task |