Skip to content

Instantly share code, notes, and snippets.

View willnode's full-sized avatar

Wildan M willnode

View GitHub Profile
@willnode
willnode / SomeBatExample.bat
Created July 3, 2017 15:19
My naive bat examples
@echo off
:: Ganti judul
title Testing Aplikasi BAT
:: Tulis pesan
echo Tunggu sebentar....
:: Animasi timeout per 1 detik
timeout /T 1 > nul
@willnode
willnode / cmd_ext.reg
Last active October 18, 2017 23:45
Registry file for adding "open with cmd" in explorer (Just download & run)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd_ext]
@="Open with &Cmd"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd_ext\command]
@="cmd.exe /s /k pushd \"%V\""
@willnode
willnode / CodeMetrics.go
Created January 1, 2018 14:44
Tool for measuring code metrics in given directory
/*
*
* This is a Go Application for measuring code metrics
* File selection can be included via arguments as extension, or:
* append '+' for exclusion as filename
* append '-' for exclusion as filename
* append '!' for exclusion as extension
*
* Compile => go build -o CodeMetrics.exe CodeMetrics.go
* Launch => CodeMetrics js !min.js
@willnode
willnode / gist:052cc2f0b0115c7e4041a7792c6ba8d3
Last active February 5, 2018 00:53 — forked from nternetinspired/gist:7482445
Load Disqus comments only on demand if you give a shit about page weight and your visitors.Even with no comments, i.e. an empty comment form, calling Disqus will load an extra 226Kb. If your page has comments this can be far higher.This Gist accompanies my blog post: http://internet-inspired.com/wrote/load-disqus-on-demand/
var disqus_config = function () {
// Disqus config here
};
var show_disqus = document.getElementById('show-disqus');
show_disqus.onclick = function() {
show_disqus.textContent = 'Loading...';
// OR
show_disqus.parentNode.removeChild(show_disqus);
var d = document, s = d.createElement('script');
@willnode
willnode / randomnames.json
Created February 16, 2018 14:50
Random Names
["Aaliyah", "Aarushi", "Abagail", "Abbey", "Abbi", "Abbie", "Abby", "Abi", "Abia", "Abigail", "Abree", "Abrianna", "Abrielle", "Aby", "Acacia", "Ada", "Adalia", "Adaline", "Adalyn", "Addie", "Addilyn", "Addison", "Adelaide", "Adele", "Adelene", "Adelia", "Adelina", "Adeline", "Adelynn", "Adora", "Adreanna", "Adriana", "Adrianna", "Adrianne", "Adrienne", "Ady", "Aerona", "Agatha", "Aggie", "Agnes", "Aida", "Aileen", "Ailsa", "Aimee", "Aine", "Ainsleigh", "Ainsley", "Aisha", "Aisling", "Aislinn", "Aislynn", "Alaina", "Alana", "Alanis", "Alanna", "Alannah", "Alaska", "Alayah", "Alayna", "Alba", "Albany", "Alberta", "Albertina", "Aleah", "Alecia", "Aleisha", "Alejandra", "Alena", "Alessandra", "Alessia", "Alex", "Alexa", "Alexandra", "Alexandria", "Alexia", "Alexis", "Alexus", "Ali", "Alia", "Aliana", "Alice", "Alicia", "Alina", "Alisa", "Alisha", "Alison", "Alissa", "Alivia", "Aliyah", "Aliza", "Alize", "Alka", "Allie", "Allison", "Ally", "Allyson", "Alma", "Alondra", "Alya", "Alycia", "Alyshialynn", "Alyson", "
@willnode
willnode / HowToCleanRepo.md
Last active February 28, 2018 07:44
Repo Cleanup (trailing spaces and EOF blank line) using Notepad++

How to clean your Repo

Cleaning repo is easy as 1.2.3

Remove trailing spaces

Find: [ ]+$

Replace: (empty)

@willnode
willnode / RemoveBloatsInWin10.bat
Created November 22, 2017 14:42
Script shell to remove bloats the included within Windows 10. Run with elevated access.
REM Script shell to remove bloats the included within Windows 10. Run with elevated access.
REM http://wellosoft.net/blog/en/2017/make-windows-great-a.html
REM !IMPORTANT! READ THE WHOLE BATCH FILE BEFORE EXECUTION.
REM !IMPORTANT! THE FILE PROVIDED AS-IS. MODIFY AS YOU WISH.
@echo off
cls
@willnode
willnode / oggstomp3.bat
Created March 16, 2018 05:48
RIP Ogg files in a folder to single mp3 using FFMPEG. (Caveat: check for single quotes in any file or concatting won't work)
for %%* in (.) do set CurrDirName=%%~nx*
for %%v in (*.ogg) do ffmpeg -loglevel panic -i ^"%%v^" -vn -ar 44100 -ac 2 -ab 192k -f mp3 ^"%%~nv.mp3^"
for %%v in (*.mp3) do echo file ^'%%v^'>>list.txt
ffmpeg -safe 0 -f concat -i list.txt -c copy "%CurrDirName%.mp3"
@willnode
willnode / MINECRAFT
Created March 17, 2018 04:11
MINECRAFT ART
+ + +++
^^^^^^^^^ +----
*********** ^ ^^^^^^^^^ +++ ^^^^^^^^^
******* ************* ^^ ^^^^^^^ ------------| ^^^^^^^^^^^^^^
*********** *********** ^^^^^^^^^^^^^^^ ---******||
c=document.body;
_='b=[85,1,-1],d=Array(1,0,4, onpoimov(>{dd=>d%2),90+e.x= e-12}),setIval(()=>{a 1])%,f* 2])*f+a,(<=a||!a 1!f 2|<f !(=||( 0einnerText(d,e)=>e%?d:"\\n"+d))},;10 0] e].fill(=d.map(]*=-1)|( (||3,c. d[ b[ )&&/|0,0)]=e=nter=(+';for(Y in $=' ')with(_.split($[Y]))_=join(pop());eval(_)