Skip to content

Instantly share code, notes, and snippets.

View eRQee's full-sized avatar

eRQee eRQee

  • Indonesia
View GitHub Profile
@eRQee
eRQee / debian-12-perfect-setup.sh
Last active April 29, 2024 20:46
Debian 12 (Bookworm) Perfect Setup
#!/bin/bash
export PATH=$PATH:/sbin
# temporarily disable ipv6
/sbin/sysctl -w net.ipv6.conf.all.disable_ipv6=1
/sbin/sysctl -w net.ipv6.conf.default.disable_ipv6=1
clear
##############
@eRQee
eRQee / visitor-beringinkarya-net.js
Created October 7, 2020 10:49
Embed Script Private Analytics untuk BERINGINKARYA.ID
<!-- BERINGINKARYA VISITOR ANALYTICS -->
<script type="text/javascript">
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//visitor.beringinkarya.net/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
@eRQee
eRQee / debian-10.7-perfect-setup.sh
Last active January 23, 2021 10:04
Debian 10.7 Apps Server Installation Wizard
clear
##############
# Am I root? #
##############
if [ "x$(id -u)" != 'x0' ]; then
echo 'Error: this script can only be executed by root'
exit 1
fi
#########################################
@eRQee
eRQee / AHK-Scripts.ahk
Last active September 7, 2020 20:46
eRQee's Quake Console for Windows Terminal
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;HOTKEY: Ctrl + Space [do] Pin Window (toggle Always on Top)
^Space::Winset, AlwaysOnTop, , A
;HOTKEY: Win + PageDown [do] Volume Down
#PgDn::SoundSet,-5
@eRQee
eRQee / datacenter-gateway.sh
Created June 18, 2020 00:47
Debian-based Start-Stop-Daemon for NAT Network Definition, Firewall & Forwarder. Very useful for managing Cloud VMs.
#!/bin/sh
### BEGIN INIT INFO
# Provides: datacenter-gateway
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: NAT Network & firewall scripts
# Description: apply the initialization of local NAT Network definition & firewall scripts at boot time.
# Author: eRQee (q@serverq.org)
@eRQee
eRQee / rambox-dark-whatsapp.js
Last active December 7, 2022 13:57
Rambox Custom Code for Whatsapp Dark Theme - Styles by Vednoc :: https://github.com/vednoc/dark-whatsapp
function applycss(css){
var head = document.getElementsByTagName('head')[0];
var s = document.createElement('style');
s.setAttribute('type', 'text/css');
s.appendChild(document.createTextNode(css));
head.appendChild(s);
}
applycss(`
:root:not(#z),
.dark:not(#z) {
@eRQee
eRQee / ubuntu-20.04-lts-perfect-setup.sh
Last active March 19, 2022 20:03
Ubuntu 20.04 LTS Apps Server Installation Wizard
clear
##############
# Am I root? #
##############
if [ "x$(id -u)" != 'x0' ]; then
echo 'Error: this script can only be executed by root.'
echo 'Try re-run the script after switched to root account by type "sudo su"'
exit 1
fi
@eRQee
eRQee / indonesia-radio.m3u
Last active April 26, 2024 14:31
Indonesian Online Radio Playlists (Supported Player: Radio++, GoodVibes). More lists is coming.
#EXTM3U
#EXTINF:0,Andika FM
#EXTVLCOPT:network-caching=1000
http://stream2.andikafm.com:1057/andikafm
#EXTINF:0,Ardan Radio
#EXTVLCOPT:network-caching=1000
http://listento.ardanradio.com:1059/;
#EXTINF:0,Attaqwa FM
#EXTVLCOPT:network-caching=1000
http://103.28.148.18:8840/;