Skip to content

Instantly share code, notes, and snippets.

View Anime4000's full-sized avatar

Anime4000

View GitHub Profile
@Anime4000
Anime4000 / readme.md
Last active September 7, 2018 20:36
Get WampServer a HTTPS

Create a certificate

Just like create OpenVPN certificate

Copy newly created certificate

  • Create a cert folder at: C:\wamp64\bin\apache\apache2.4.33\conf
  • Copy certificate.crt and private.key to C:\wamp64\bin\apache\apache2.4.33\conf\cert

Edit httpd.conf

  • Location: C:\wamp64\bin\apache\apache2.4.33\conf\httpd.conf
  • Uncomment # each this line
@Anime4000
Anime4000 / iodine-frekky.md
Created February 3, 2018 19:07
cross-compile
  1. Using msys2
  2. Update msys2 by typing pacman -Syu, close terminal (no type exit)
  3. Open MSYS2 MSYS at Start Menu and run pacman -Su
  4. Install package pacman -S base-devel git mingw-w64-x86_64-toolchain zlib-devel yasm cmake
Hatoko@Hatoko-VM MSYS ~
$ cd iodine-master/

Hatoko@Hatoko-VM MSYS ~/iodine-master
@Anime4000
Anime4000 / computehash.cs
Last active February 3, 2018 03:24
Calculate Object into SHA256, use for blockchain database
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())
@Anime4000
Anime4000 / avx.c
Last active October 12, 2017 07:00
Do floating point math by using AVX feature in x86 CPU
/*
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
*/
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"
[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
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)
@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
@Anime4000
Anime4000 / iodine-ios.sh
Last active November 18, 2015 01:37
Iodine iOS
#!/bin/bash
# This script used for iodine in iOS
# Required:
# Unix command
# Network Commands
# iodine
# Readme:
# iodine has 2 mode:
@Anime4000
Anime4000 / compile.sh
Created October 12, 2015 00:01
mkbundle Mono 4.0 and Cygwin (32bit mode)
#!/bin/sh
# Run this on Cygwin Terminal
#
# Required:
# 1. gcc-mingw
# 2. pkg-config
# 3. mingw-zlib1
# 4. mingw-zlib-devel
#