Skip to content

Instantly share code, notes, and snippets.

View htaccess
# HTTP Status Cats
# Apache (htaccess) config created by @dave1010
# Licensed CC BY 2.0
# Images CC BY 2.0, from GirlieMac's photostream:
# http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/
# Usage: copy save this file as .htaccess or add it to your httpd.conf
ErrorDocument 404 '<a href="http://www.flickr.com/photos/girliemac/6508022985/" title="404 - Not Found by GirlieMac, on Flickr"><img src="http://farm8.staticflickr.com/7172/6508022985_b22200ced0.jpg" width="500" height="400" alt="404 - Not Found"></a>'
@Anime4000
Anime4000 / package.sh
Created Sep 23, 2015 — forked from shilrobot/package.sh
Making mkbundle work on Windows
View package.sh
#!/bin/bash
# If this doesn't work, ensure you have UNIX line endings in this file
# (\n, not \r\n.) You can use Notepad++ to switch them.
# Cygwin package requirements: gcc-mingw, pkg-config
# If you want to pass -z to mkbundle: mingw-zlib1, mingw-zlib-devel
# crash immediately if anything bad happens
set -o errexit
set -o nounset
@Anime4000
Anime4000 / compile.sh
Created Oct 12, 2015
mkbundle Mono 4.0 and Cygwin (32bit mode)
View compile.sh
#!/bin/sh
# Run this on Cygwin Terminal
#
# Required:
# 1. gcc-mingw
# 2. pkg-config
# 3. mingw-zlib1
# 4. mingw-zlib-devel
#
View iodine-ios.sh
#!/bin/bash
# This script used for iodine in iOS
# Required:
# Unix command
# Network Commands
# iodine
# Readme:
# iodine has 2 mode:
View iodine-windows.cmd
@echo off
@title IODINE
cd "%~dp0"
SET NS=ENTER IODINE NAME SERVER HERE
SET HOST=ENTER IODINE SERVER IP HERE
::SET DNS=58.71.132.10
SET DNS=1.9.1.9
SET MASK=255.255.255.255
for /f "tokens=2,3 delims={,}" %%a in ('"WMIC NICConfig where IPEnabled="True" get DefaultIPGateway /value | find "I" "') do set GATE=%%~a
View warning.log
RELICCOH started at 2015-12-28 15:53
OS NT 6.1 (sp1.0) x64, 16381MB Physical Memory, 14324 Physical Available, 3953 Virtual Available
RUN-OPTIONS -refresh 60 -nomovies
WORKING-DIR E:\Program Files\Steam\steamapps\common\Company of Heroes Relaunch
USER Anime4000
15:53:58.03 6 Logical Processors detected
15:53:58.03 Multithreading Enabled
15:53:58.03 THREAD: Hyper-Threading Technology Processors are not detected.
15:53:58.03 XTHREAD: Detected 6 core(s) with 6 hardware thread(s)
View terminalrc
[Configuration]
FontName=Terminus 10
ColorForeground=#b7b7b7
ColorBackground=#000000
ColorPalette=#000000;#aa0000;#44aa44;#aa5500;#0039aa;#aa22aa;#1a92aa;#aaaaaa;#777777;#ff8787;#4ce64c;#ded82c;#295fcc;#cc58cc;#4ccce6;#ffffff
ColorSelection=#163b59
ColorSelectionUseDefault=FALSE
ColorCursor=#0f4999
ColorBold=#ffffff
ColorBoldUseDefault=FALSE
View half-life 2 fun (ala gmod)
bind "v" "sv_cheats 1;noclip;sv_cheats 0"
bind "0" "npc_create npc_barnacle"
bind "-" "npc_create npc_zombie"
bind "=" "npc_create npc_headcrab"
bind "p" "sv_cheats 1;npc_create_equipment weapon_rpg;npc_create npc_monk;sv_cheats 0"
bind "[" "sv_cheats 1;npc_create_equipment weapon_ar2;npc_create npc_monk;sv_cheats 0"
bind "]" "sv_cheats 1;npc_create_equipment weapon_rpg;npc_create npc_citizen;sv_cheats 0"
bind "\" "sv_cheats 1;npc_create_equipment weapon_ar2;npc_create npc_citizen;sv_cheats 0"
@Anime4000
Anime4000 / avx.c
Last active Oct 12, 2017
Do floating point math by using AVX feature in x86 CPU
View avx.c
/*
Copyright (c) CureComp Technology Trading & Services
Generic vs AVX
--------------
Show how fast and how accurate CPU processing,
3 GHz Generic vs 1.8 GHz AVX
*/
@Anime4000
Anime4000 / computehash.cs
Last active Feb 3, 2018
Calculate Object into SHA256, use for blockchain database
View computehash.cs
using System.Text;
using System.Security.Cryptography;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
class Compute
{
public static string BlockHash(object obj)
{
using (SHA256Managed sha256 = new SHA256Managed())