Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Nizamuddin Sulieman kuntau

💭
I may be slow to respond.
View GitHub Profile
View ascii.md
╭━━━━╮               This is cooldog. Help
╰┃ ┣▇━▇                cooldog take over 
 ┃ ┃  ╰━▅╮ Discord by pasting
 ╰┳╯ ╰━━┳╯        him in 10 other
  ╰╮ ┳━━╯            servers or you
 ▕▔▋ ╰╮╭━╮   will never be a cool dog.
╱▔╲▋╰━┻┻╮╲╱▔▔▔╲
▏  ▔▔▔▔▔▔▔  O O┃ 
╲╱▔╲▂▂▂▂╱▔╲▂▂▂╱
@kuntau
kuntau / discord.js
Last active Apr 6, 2017
Hide Discordapp channel sidebar
View discord.js
//ref: http://andrewhfarmer.com/hide-discord-sidebar/
document.addEventListener('keydown', function(event) {
if (event.metaKey && event.keyCode === 220) {
// Toggle visibility of the channel and guilds columns
var channelWrap = $('.flex-vertical.channels-wrap');
var guildsWrap = $('.guilds-wrapper');
var titleWrap = $('.title-wrap');
if (channelWrap.getAttribute('style') === 'display: none') {
channelWrap.setAttribute('style', '');
guildsWrap.setAttribute('style', '');
@kuntau
kuntau / pokeradar_fixed.js
Last active Sep 8, 2016
A fix and cleanup for pokeradar.io
View pokeradar_fixed.js
// ==UserScript==
// @name PokeRadar.io fixed
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.pokeradar.io/
// @grant GM_addStyle
// @grant GM_log
// @grant unsafeWindow
@kuntau
kuntau / GAME_MASTER_v0_1.protobuf
Created Aug 15, 2016 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
View GAME_MASTER_v0_1.protobuf
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
View keybase.md

Keybase proof

I hereby claim:

  • I am kuntau on github.
  • I am kuntau (https://keybase.io/kuntau) on keybase.
  • I have a public key ASB3kc-9o1lh1sXHVKgG9ODzw-N3HfrwQB_r7W-T-dA0Uwo

To claim this, I am signing this object:

@kuntau
kuntau / yify.md
Last active Mar 10, 2021
YIFY's Quality Encoding
View yify.md

For those that want to keep the YTS going (No, IDGAF about people that don't care for YTS quality) get HandbrakeCLI https://handbrake.fr/downloads... and use the following settings:

user@user:~$HandBrakeCLI -i /file/input.mp4 -o /file/out.mp4 -E fdk_faac -B 96k -6 stereo -R 44.1 -e x264 -q 27 -x cabac=1:ref=5:analyse=0x133:me=umh:subme=9:chroma-me=1:deadzone-inter=21:deadzone-intra=11:b-adapt=2:rc-lookahead=60:vbv-maxrate=10000:vbv-bufsize=10000:qpmax=69:bframes=5:b-adapt=2:direct=auto:crf-max=51:weightp=2:merange=24:chroma-qp-offset=-1:sync-lookahead=2:psy-rd=1.00,0.15:trellis=2:min-keyint=23:partitions=all

Reason to use CLI over GTK has to do with lack of support for advanced settings for Handbrake GTK

** Don't Re-encode already shitty encodes...get good source!**

@kuntau
kuntau / frag32.py
Last active Sep 10, 2015 — forked from ryancdotorg/frag32.py
A FAT32 fragmenter, because I am a horrible person.
View frag32.py
#!/usr/bin/env python
import random
import struct
import sys
# Most of the Fat32 class was cribbed from https://gist.github.com/jonte/4577833
def ppNum(num):
return "%s (%s)" % (hex(num), num)
@kuntau
kuntau / unattended installation.md
Created May 14, 2014
Setup unattended installation for moving `USERS` and `AppData` folder on Windows 8
View unattended installation.md

When creating a clean install, using the combination of an SSD system drive and a conventional disk drive, as a data drive, there is a way to "move" the Users folder (normally, C:\Users) and the hidden ProgramData folder (normally C:\ProgramData) to the conventional disk, or data drive, using an answer file, or unattend.xml, for an unattended installation, as mentioned above.

For an individual doing a single, one-off installation, trying to figure out how to create an answer file for a completely unattended installation, just to accomplish this one small task, is way, way too much trouble. It's also not necessary.

It is possible, during the course of a conventional, interactive installation from an installation disc or USB thumbdrive, to enter what is called, "Audit Mode", before the Computer is named or a Username created, and accomplish the necessary re-assignment.

1.) Do a conventional installation. If you are using an SSD, at the point in the installation process where you are asked where you want to

View folders.xml
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FolderLocations>
<ProfilesDirectory>d:\Users</ProfilesDirectory>
<ProgramData>d:\ProgramData</ProgramData>
</FolderLocations>
</component>
</settings>
@kuntau
kuntau / .vintageousrc
Created Mar 3, 2014
My vintageous RC file
View .vintageousrc
:map <space> :