Skip to content

Instantly share code, notes, and snippets.

View accidentalrebel's full-sized avatar

AccidentalRebel accidentalrebel

View GitHub Profile
@accidentalrebel
accidentalrebel / shifted.ukkg
Created May 21, 2016 09:59
A KeyGroup XML file for all Arbites-Family applications that allows to use characters that normally require a shift key to be used without using a shift key.
<?xml version="1.0" encoding="utf-8"?>
<ClKeyGroup xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<key>
<ClKey>
<val>126</val>
<ktype>0</ktype>
<display>~</display>
</ClKey>
<ClKey>
<val>33</val>
@accidentalrebel
accidentalrebel / dvorak_other_hand_no_shift
Last active May 26, 2016 16:22
My personal configuration for Diverge TM. I made this layout with a number of guiding principles in mind which I will detail in the future.
<?xml version="1.0" encoding="utf-8"?>
<ClLayoutContainer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<keyboardType>Diverge TM</keyboardType>
<keys>
<ArrayOfClKeyData>
<ClKeyData>
<key>
<val>177</val>
<ktype>0</ktype>
<display>Esc</display>
@accidentalrebel
accidentalrebel / watermark.bat
Created September 8, 2016 04:24
Adds a watermark to a group of images in a folder using ImageMagick's Composite Command
@echo off
for %%i in (to_convert/*.jpg) do ( magick convert to_convert/%%i -auto-orient to_convert/%%i && magick composite -watermark 10 -gravity center watermark-white.png to_convert/%%i watermarked/%%i && echo "composite of %%i successful" && del "%cd%\to_convert\%%i" && echo "Successfully deleted %cd%\to_convert\%%i" )
pause
@accidentalrebel
accidentalrebel / png_trimmer.bat
Created September 15, 2016 06:39
A batch file that trims all character pose image files. Uses imagemagick.
@echo off
for /r %%i in (pose\/*.png) do (
echo "Adding a border %%i"
magick convert %%i -bordercolor none -border 50 %%i
echo "Trimming %%i"
magick convert %%i -trim +repage %%i)
pause
@accidentalrebel
accidentalrebel / watermark-and-scale.bat
Last active October 24, 2016 14:38
Added a scale functionality to watermark.bat
@echo off
for %%i in (to_convert/*.jpg) do (^
magick convert "to_convert/%%i" -auto-orient "to_convert/%%i"^
&& magick composite -watermark 10 -gravity center watermark-white.png "to_convert/%%i" "watermarked/%%i"^
&& echo "composite of %%i successful"^
&& magick convert -resize 30%% "watermarked/%%i" "watermarked/%%i"^
&& echo "resizing of %%i to 30%% successful"^
&& del "%cd%\to_convert\%%i"^
&& echo "Successfully deleted %cd%\to_convert\%%i" )
pause
@accidentalrebel
accidentalrebel / facebook_vape_group_lister.hx
Created October 12, 2017 00:32
Searches for Vape related groups and saves the scraped data (Group name and number of members). The Haxe script generates a runnable iMacros .imm file (See facebook_vape_group_lister.iim)
class Main
{
static function main()
{
var test : String = "test";
var macroString : String = "";
macroString += "
VERSION BUILD=11.5.498.2403
TAB T=1
TAB CLOSEALLOTHERS
@accidentalrebel
accidentalrebel / Risk-Adjusted Technical Estimate Template
Last active December 12, 2017 05:53
This is an orgmode template that I use when making Risk-Adjusted Technical Estimates.
#+TBLNAME: estimates
| Task | Estimate | Confidence | Risk Adjusted | Revisions and Fixes | Testing | Total |
|-----------+----------+------------+---------------+---------------------+---------+-----------|
| Test Task | 2 | 9 | 2.2222222 | 1 | 1 | 4.2222222 |
|-----------+----------+------------+---------------+---------------------+---------+-----------|
| | 2 | 9 | 3 | 1 | 1 | 5 |
#+TBLFM: @>$3=vmean(@2$3..@II$3)::@>$2=vsum(@2$2..@II$2)::@>$4=ceil(vsum(@2$4..@II$4))::@>$5=ceil(vsum(@2$5..@II$5))::@>$6=ceil(vsum(@2$5..@II$5))::$4=$2+($2*(10-$3)/9)::$5=ceil($4 * remote(factors, @1$2))::$6=ceil($4 * remote(factors, @2$2))::$7=$4+$5+$6
|-------------------------------+-------|
| Average confidence | 9 |
@accidentalrebel
accidentalrebel / fileopener.cs
Created January 22, 2018 23:21
Opens a text-based file from Unity in Emacs at the correct line.
using UnityEngine;
using UnityEditor;
using System;
using System.IO;
using UnityEditor.Callbacks;
[InitializeOnLoad]
public class FileOpener : MonoBehaviour {
static string _emacsPath = "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient";
@accidentalrebel
accidentalrebel / archdualboot.md
Created May 11, 2020 06:41 — forked from ppartarr/archdualboot.md
comprehensive guide to dual boot arch & windows

Dual booting arch linux & Windows 10

There are already dozens of tutorials to setup an arch and Windows dual boot - welcome to a dozen + 1. Like most others this is a step by step guide. Unlike most others the steps are ordered in a way that makes sense (starting with the download first - duh!) so you won't have to restart your computer a gazillion times.

I did this on a single SSD Dell XPS 15 with windows 10 preinstalled. It's obviously possible to follow this guide if you're installing arch onto a different drive or if you're running older hardware. If you run into any problems please be sure to read through the Arch Installation Guide and the Arch Dual boot with Windows wiki. If those didn't help, try out headspace before attempting to copy/paste commands from forums that looked like they were designed by a developer who thinks HTML is a programming lan

THM{1234567890}