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
var username = "github"; // Put username here | |
var repo = "ruby"; // Put repository name here | |
/* | |
That's it! Now use this URL format: | |
http://github.com/<username>/<repo>/releases#MyAwesomePackagedApp.zip | |
Where <username> and <repo> are exactly as defined in those variables, and MyAwesomePackagedApp.zip is whatever filename of the ZIP you uploaded in the "releases" page of your repository. | |
**DOES not work with source code downloads** |
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
process.stdin.setEncoding('utf8'); | |
var str = "File I/O is provided by simple wrappers around standard POSIX functions. To use this module do require('fs'). All the methods have asynchronous and synchronous forms."; | |
console.log("Hello! "); | |
console.log("Type this out and press return: "); | |
console.log("--------------------------"); | |
console.log(str); | |
console.log("--------------------------"); | |
process.stdout.write("Press enter to start: "); |
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
<!-- | |
Feel free to edit this document! | |
--> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> |
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 | |
# | |
# Very simple ping request spammer | |
# | |
# Usage: | |
# sudo ./pingspam.sh ipv6address datasize threads & | |
# | |
# eg: sudo ./pingspam.sh ::1 4096 40 & | |
# |
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
--- | |
title: random | |
--- | |
<script> | |
var posts = [{% for post in site.posts %}"{{ post.url }}", {% endfor %}]; | |
var id = Math.floor(Math.random() * posts.length); | |
window.location.href = posts[id]; | |
</script> |
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
all: | |
for f in `find * -type d -maxdepth 0 ! -regex .`; do\ | |
gcc -o $$f/main.o $$f/main.c;\ | |
done; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>infocomm</title> | |
<style> | |
* { | |
padding: 0; | |
margin: 0; | |
} |
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
SHELL := /bin/zsh | |
DIRECTORY = "_posts" | |
EXT_ENC = ".aes.b64" | |
EXT_FILE = ".md" | |
ENCRYPTION = "aes-128-cbc" | |
all: usage | |
usage: |
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/zsh | |
# CONFIG | |
SERVER="example.com" | |
# Don't put trailing slashes btw. | |
REMOTEDIRECTORY="" # Set to "backup" to push to home directory of remote user. WARNING: Beginning with "/" will push to the remote root directory. | |
LOCALDIRECTORY="$HOME" | |
# REMOTEUSER="ambrosechua" | |
LOG=".homesync.log" |
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 <stdio.h> | |
#include <stdbool.h> | |
#include <stdlib.h> | |
// #include <math.h> | |
#include <time.h> | |
#include <sys/time.h>// For `gettimeofday()` | |
#include <string.h> |
OlderNewer