Skip to content

Instantly share code, notes, and snippets.

@heihachi
heihachi / Config.c
Last active May 22, 2023 08:41
Template Config File for DayZ
class TemplateConfig: Managed
{
const static string ModProfileFolder = "$profile:TemplateConfig";
const static string FileName = "/settings.json";
const static string ConfigPath = ModProfileFolder + FileName;
protected static autoptr TemplateConfig _singleton;
static TemplateConfig GetInstance()
{
@heihachi
heihachi / asdasd.sh
Last active February 26, 2021 08:09
#!/bin/sh
FILE="/etc/yum.repos.d/devtoolset.repo"
/bin/cat <<EOM >$FILE
[centos-sclo-rh]
name=CentOS-7.6 - SCLo rh
baseurl=https://vault.centos.org/7.6.1810/sclo/$basharch/rh/
enabled=1
EOM

Keybase proof

I hereby claim:

  • I am heihachi on github.
  • I am heihachi (https://keybase.io/heihachi) on keybase.
  • I have a public key ASCffWZXM1EAZPyzbImnlIOjgOEqAhK6FcRXMDM-xiQ_Ugo

To claim this, I am signing this object:

@heihachi
heihachi / rsync_parallel.sh
Created October 22, 2017 15:24 — forked from rcoup/rsync_parallel.sh
Parallel-ise an rsync transfer when you want multiple concurrent transfers happening,
#!/bin/bash
set -e
# Usage:
# rsync_parallel.sh [--parallel=N] [rsync args...]
#
# Options:
# --parallel=N Use N parallel processes for transfer. Defaults to 10.
#
# Notes:
@heihachi
heihachi / word-compare.diff
Created April 6, 2017 05:18
Compares TBH plugin against OTG plugin
diff --git a/TBH/Extras.txt b/OTG/Extras.txt
index 923629d..6ccd165 100644
--- a/TBH/Extras.txt
+++ b/OTG/Extras.txt
@@ -2,19 +2,4 @@ Name Set ImageFile SetID Type Subtype/Race Cost T.Cost ATK DEF Attribute Rarity
Elf Token T [-T-001,T-001b-]{+T-001,T-001B+} T-001 Resonator Elf 100 100 Wind C[-Elf Token T T-001,T-001b T-001 Token Elf 100 100 Wind C-]
Fantasy Token T [-T-002,T-002b-]{+T-002,T-002B+} T-002 Resonator[-Elf 400 | X00 400 | X00 Water/Dark C-] Fantasy [-Token T T-002,T-002b T-002 Token Elf 400 | X00 400 | X00-]{+400|X00 400|X00+} Water/Dark C
Bomb Token T [-T-003,T-003b-]{+T-003,T-003B+} T-003 Resonator Bomb 100 100 Fire C[-Bomb Token T T-003,T-003b T-003 Token Bomb 100 100 Fire C -]
[-Dragon Token T T-004,T-004b T-004 Resonator Dragon 500 500 Fire/Wind C [Flying]-]
[-Dragon Token T T-004,T-004b T-004 Token Dragon 500 500 Fire/Wind C [Flying]-]
ForceOfWill 02-01-17
images/backgrounds/fow_mat_double.png https://dl.dropboxusercontent.com/s/o0x5sl247dwaflt/MiscImages/fow_mat_double.png -229439
images/backgrounds/fow_mat_double2.png https://dl.dropboxusercontent.com/s/o0x5sl247dwaflt/MiscImages/fow_mat_double2.png -169753
images/backgrounds/fow_mat_double3.png https://dl.dropboxusercontent.com/s/o0x5sl247dwaflt/MiscImages/fow_mat_double3.png -220739
plugins/ForceOfWill/plugininfo.txt https://dl.dropboxusercontent.com/s/o0x5sl247dwaflt/plugininfo.txt 518234
plugins/ForceOfWill/formats.txt https://dl.dropboxusercontent.com/s/o0x5sl247dwaflt/formats.txt 84277
plugins/ForceOfWill/sets/carddata.txt https://dl.dropboxusercontent.com/s/o0x5sl247dwaflt/carddata.txt 26437954
plugins/ForceOfWill/pluginpreferences.txt https://dl.dropboxusercontent.com/s/o0x5sl247dwaflt/pluginpreferences.txt 263179
plugins/ForceOfWill/CardImageURLs.txt ttps://dl.dropboxusercontent.com/s/o0x5sl247dwaflt/CardImageURLs.txt 9682005
plugins/ForceOfWill/version.txt https://dl.dropboxuser

Keybase proof

I hereby claim:

  • I am heihachi on github.
  • I am heihachi (https://keybase.io/heihachi) on keybase.
  • I have a public key whose fingerprint is B0CA FAB9 B34E FAF1 4BF4 62CE FCEF 70ED FB34 85CF

To claim this, I am signing this object:

<?php
/* Program: Fallout 4 Terminal Guesser
* Purpose: This is for testing algorithms
* Programmer: Heihachi
*/
class FOTG
{
// Used https://www.youtube.com/watch?v=Sa4RUpXgzT4 for the terminal passwords and attempts.
private $words = array('shot', 'hurt', 'sell', 'give', 'sure', 'gear', 'sent', 'fire', 'glow', 'week', 'ones', 'sick');
#include <iostream>
#include <cstdio>
#include <string>
#include <unistd.h>
#include <sys/types.h>
#ifdef __linux
#include <pwd.h>
#elif __unix // all unices not caught above
#include <pwd.h>
#endif
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
struct Name
{
string first;
string second;