Skip to content

Instantly share code, notes, and snippets.

@ethzero
ethzero / minecraft.sh
Created January 2, 2011 00:25
Minecraft server management script for Unix
#!/bin/bash
# original author : Relliktsohg
# Huge thanks to Maine for his incremental backup
# THanks to endofzero for his improved update routine
# Amendment to use safer 'mktemp' calls for update() routine - eth0
# Configuration
MC_PATH=/home/minecraft
SERVERMOD=1
RUNECRAFT=0
@ethzero
ethzero / arduino-logo.svg
Created April 11, 2012 08:21
Arduino logo retraced from a bitmap as a hand-coded SVG.This is *unofficial* and is assumed to be a trademark of Arduino (for the life of me couldn't find a source on arduino.cc legally stating this!)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ethzero
ethzero / gist:3118226
Created July 15, 2012 19:22
Minecraft dump for @iblamefish
2012-07-15 19:10:49 [INFO] <ethzero> yup!
2012-07-15 19:10:57 [INFO] <iblamefish> cool!
2012-07-15 19:11:05 [INFO] <iblamefish> I'll go the other side and listen
2012-07-15 19:11:14 [INFO] <ethzero> Hello!
2012-07-15 19:11:25 [INFO] <ethzero> Sweet!
2012-07-15 19:11:40 [INFO] <ethzero> yup
2012-07-15 19:11:57 [INFO] <ethzero> Indeed...
2012-07-15 19:12:02 [INFO] <ethzero> just wondering myself....
2012-07-15 19:12:10 [INFO] <ethzero> I can stand here....
2012-07-15 19:12:15 [INFO] <ethzero> and you edge away
@ethzero
ethzero / data_uri_csv.html
Created July 23, 2012 08:59
data_uri_csv
<html>
<head>
<script>
// really basic example
function tableToCSV(table) {
for (var
header = table.querySelectorAll("tr th"),
rows = table.querySelectorAll("tr td"),
hlength = header.length,
@ethzero
ethzero / hello.txt
Created September 4, 2012 22:40
test desc
A test gist
Hello
@ethzero
ethzero / tribe-eventbrite.class.php.patch
Created June 27, 2013 10:27
Patch for the Tribe Event Manager Eventbrite class
--- tribe-eventbrite.class.php.ORIGINAL 2013-01-18 20:56:16.000000000 +0000
+++ tribe-eventbrite.class.php 2013-06-14 11:47:15.042590764 +0100
@@ -1265,7 +1265,7 @@
* @param array $_POST
* @return void
*/
- public function payment_update( $postId, $eventId, $_POST ) {
+ public function payment_update( $postId, $eventId, $post ) {
$paymentTypes = array('check' => '', 'cash' => '', 'invoice' => '');
$requestParams = 'event_id=' . $eventId;
@ethzero
ethzero / .functions
Created April 22, 2014 10:48
.functions
# Create a new directory and enter it
function md() {
mkdir -p "$@" && cd "$@"
}
# Use Git’s colored diff when available
hash git &>/dev/null
if [ $? -eq 0 ]; then
function diff() {
git diff --no-index --color-words "$@"
@ethzero
ethzero / WS2012-IIS-inetpub-ACL.txt
Last active September 6, 2015 18:13
Default ACLs, files, and folders for Windows Server 2012's IIS "C:\inetpub" folder; Generator: icacls C:\inetpub\* /save %TMP%\WS2012-IIS-inetpub-ACL.txt /T; References: https://support.microsoft.com/en-us/kb/981949
inetpub
D:PAI(A;;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;OICIIO;GA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;;FA;;;SY)(A;OICIIO;GA;;;SY)(A;;FA;;;BA)(A;OICIIO;GA;;;BA)(A;;0x1200a9;;;BU)(A;OICIIO;GXGR;;;BU)(A;;FA;;;SY)(A;OICIIO;GA;;;CO)S:AI
inetpub\custerr
D:AI(A;;0x1200a9;;;BU)(A;;FA;;;BA)(A;;FA;;;SY)(A;ID;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;OICIIOID;GA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;ID;FA;;;SY)(A;OICIIOID;GA;;;SY)(A;ID;FA;;;BA)(A;OICIIOID;GA;;;BA)(A;ID;0x1200a9;;;BU)(A;OICIIOID;GXGR;;;BU)(A;OICIIOID;GA;;;CO)S:AI
inetpub\history
D:PAI(A;;FA;;;BA)(A;OICIIO;GA;;;BA)(A;;FA;;;SY)(A;OICIIO;GA;;;SY)S:AI
inetpub\logs
D:PAI(A;;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;OICIIO;GA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;;FA;;;SY)(A;OICIIO;GA;;;SY)(A;;FA;;;BA)(A;OICIIO;GA;;;BA)(A;;FA;;;SY)(A;OICIIO;GA;;;CO)S:AI
inetpub\temp
D:AI(A;ID;FA;;;
mkdir "inetpub"
mkdir "inetpub\custerr"
mkdir "inetpub\custerr\en-US"
mkdir "inetpub\history"
mkdir "inetpub\history\CFGHISTORY_0000000001"
mkdir "inetpub\history\CFGHISTORY_0000000002"
mkdir "inetpub\logs"
mkdir "inetpub\temp"
mkdir "inetpub\temp\appPools"
mkdir "inetpub\temp\IIS Temporary Compressed Files"
@ethzero
ethzero / PSFileTransferByClipboard.ps1
Last active August 22, 2023 11:45
Transferring binary content by way of clipboard via Powershell
## Powershell method of transfering small (< 1 MB) binary files via Clipboard
##
## NB: Unwise to attempt to encode binary files exceeding 1 MB due to excessive memory consumption
## Powershell 5.0>
# On the transmission end:
$Content = Get-Content -Encoding Byte -Path binaryfile.xxx
[System.Convert]::ToBase64String($Content) | Set-Clipboard
# On the receiving end