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
function title() { | |
echo -n -e "\033]0;$1\007" | |
} |
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
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"log" | |
"mime/multipart" | |
"net/http" | |
"os" |
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 mechanize | |
import getpass | |
# Get through the "Log in" button | |
br = mechanize.Browser() | |
br.open("https://acadinfo.wustl.edu/WebSTAC_init.asp") | |
br.select_form(name="form0") | |
br.submit() | |
# Get past the onload redirect page |
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/env python | |
# LifePreserver - Time limiting script for Minecraft servers | |
import sys | |
from subprocess import Popen, PIPE | |
from collections import Counter | |
from datetime import datetime | |
from pytz import timezone | |
from time import sleep | |
START_HOUR = 9 |
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
<?php | |
function uploadItemImage($url, $access_token, $image_file) { | |
$headers = ["Authorization: Bearer $access_token"]; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, ['image_data' => "@$image_file;type=image/jpeg"]); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); |
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 System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading.Tasks; | |
using System.IO; | |
using System; | |
using System.Runtime.Serialization; | |
using System.Runtime.Serialization.Json; | |
static class ImageUploader | |
{ |
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 | |
# Brainfuck - Troy Deck | |
############# | |
# Constants # | |
############# | |
CELLS=500 | |
########### | |
# Globals # |