Skip to content

Instantly share code, notes, and snippets.

View willnode's full-sized avatar

Wildan M willnode

View GitHub Profile
@willnode
willnode / java_download.sh
Created September 21, 2019 09:39 — forked from wavezhang/java_download.sh
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.tar.gz
@willnode
willnode / ffmpeg-compress-mp4.bat
Last active March 10, 2022 22:45 — forked from lukehedger/ffmpeg-compress-mp4
Compress mp4 using FFMPEG (batch script for whole .mp4 in folder)
for %%v in (*.mp4) do ffmpeg -i "%%v" -vcodec h264 -b:v 800k -acodec mp3 "compress/%%v"
@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');