Skip to content

Instantly share code, notes, and snippets.

View necrogami's full-sized avatar

Anton C. Swartz IV necrogami

View GitHub Profile
@necrogami
necrogami / gittyup.sh
Created June 8, 2012 12:42 — forked from EvanDotPro/gittyup.sh
Easily keep master in sync with upstream.
####################################################################################
## ##
## gittyup() - Easily keep master in sync with upstream. ##
## ##
## Author: Evan Coury, http://blog.evan.pro/ ##
## URL: https://gist.github.com/1506822 ##
## ##
## This bash function is a simple shortcut for keeping your local (and public ##
## fork / origin remote) master branch up to date and in sync with the upstream ##
## master. To use gittyup(), simply drop this in your ~/.bashrc. ##
<?php
class Talefi_Lists
{
CONST CHAEXDAY = '349';
CONST CHAEXNIGHT = '350';
CONST CHAGESPDAY = '351';
CONST CHAGESPNIGHT = '352';
CONST CHAHVA = '228';
CONST CHANIGHT = '320';
CONST CHAVTDAY = '353';
@necrogami
necrogami / archive.sh
Created January 10, 2013 03:14
This will create 7z files that are based on the last modified date of the file and it will create an archive for each date and add files to them.
#!/bin/bash
ARCHIVE_FOLDER=/path/to/archive/location
for i in `find -type f -mtime +14`
do
mod=$(date -d"$(stat --printf='%y\n' $i)" +%Y%m%d)
7za a $ARCHIVE_FOLDER/$mod.7z $i
echo "Processed: " $i
rm $i
done
<?xml version="1.0"?>
<version>
<pack>
<version>0.0.0.3</version>
<minecraft>1.6.4</minecraft>
<memory>2048</memory>
<permgen>512</permgen>
<mainclass>net.minecraft.launchwrapper.Launch</mainclass>
<extraarguments>--tweakClass=cpw.mods.fml.common.launcher.FMLTweaker</extraarguments>
</pack>
<?php
#
# MAIN configuration file
#
# Cache and project configs folders
define('__CACHE_DIR__', __DIR__.'/sync-cache');
define('__SYNC_CONFIGS_DIR__', __DIR__.'/sync-configs');
@necrogami
necrogami / ls.bat
Created July 17, 2015 02:25
A script i use for spawning my livestreamer. for twitch.
@echo off
set /p id="Enter ID: "
START /MIN cmd /c livestreamer twitch.tv/%id% best
{
"always_show_minimap_viewport": false,
"atomic_save": false,
"auto_close_tags": false,
"auto_complete_selector": "source",
"color_scheme": "Packages/Devastate/Devastate.tmTheme",
"copy_with_empty_selection": false,
"detect_indentation": false,
"draw_minimap_border": true,
"enable_telemetry": false,
{
"in_process_packages":
[
],
"installed_packages":
[
"AlignTab",
"CodeFormatter",
"ColorPicker",
"Composer",
#!/bin/bash
# Database Backup script.
# Created By: Mohammed Salih
# Senior System Administrator
# Date: 21/06/2007
# Modified By: Anton Swartz
# Senior Systems Admin/Senior PHP Developer
# Date: 25/08/2015
#
# Requires pixz Multi-threaded XZ compression Tool