Skip to content

Instantly share code, notes, and snippets.

View anonyco's full-sized avatar
🐕
I really like dogs. They are so fun to play with, simple to care for, and cute.

Jack anonyco

🐕
I really like dogs. They are so fun to play with, simple to care for, and cute.
  • United States
View GitHub Profile
@postmodern
postmodern / Makefile
Last active March 4, 2024 14:42
A generic Makefile for building/signing/install bash scripts
NAME=project
VERSION=0.0.1
DIRS=etc lib bin sbin share
INSTALL_DIRS=`find $(DIRS) -type d 2>/dev/null`
INSTALL_FILES=`find $(DIRS) -type f 2>/dev/null`
DOC_FILES=*.md *.txt
PKG_DIR=pkg
PKG_NAME=$(NAME)-$(VERSION)
@Geraint
Geraint / demo.php
Created June 28, 2012 09:57
Immediately Invoked Function Expression in PHP
call_user_func(function($arg1, $arg2) {
// do stuff
}, $arg1, $arg2);
@terrancesnyder
terrancesnyder / run.vbs
Created June 4, 2011 15:53
VBScript + Batch to run windows in background
================ run.vbs ================
REM 0 = hide window, 1 = show window (useful for debugging)
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run """" & "run.bat" & """" & sargs, 0, False
Set WshShell = Nothing
================ run.bat ================
REM Batch script to start VirtualBox instance of ReviewBoard in headless mode
@greut
greut / run.php
Created April 30, 2011 18:18
A web server in pure PHP (non-concurrent and concurrent)
#!/usr/bin/env php
<?php
$app = function($request) {
$body = <<<EOS
<!DOCTYPE html>
<html>
<meta charset=utf-8>
<title>Hello World!</title>