Skip to content

Instantly share code, notes, and snippets.

View BobbyWibowo's full-sized avatar
🎶
I may be slow to respond.

Bobby BobbyWibowo

🎶
I may be slow to respond.
View GitHub Profile
@BobbyWibowo
BobbyWibowo / conf.d_yourdomain.com.conf
Last active October 30, 2023 16:25 — forked from srstsavage/nginx_google_analytics
google analytics in nginx
server {
listen 80;
server_name yoursite.com;
# set $google_analytics_id and include the google_analytics file below
set $google_analytics_id "UA-12345678-9";
include /usr/local/nginx/conf/google-analytics.conf;
location / {
# your normal config goes here...
@BobbyWibowo
BobbyWibowo / functions.md
Last active July 2, 2023 06:25
Puddletag/Mp3tag functions cheatsheet

Puddletag/Mp3tag functions cheatsheet

Puddletag

Linux.

Tag to Dir

Music/%albumartist%/%album%
// TODO
const args = process.argv.slice(2)
const size = parseFloat(args[0])
const seedtime = parseFloat(args[1])
let seeders = parseInt(args[2])
;(async () => {
if (!args.length)
throw new Error('Usage: bph.js <size=GB> <seedtime=H> [seeders]')
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
@BobbyWibowo
BobbyWibowo / alacritty-materia-dark.yml
Last active May 24, 2022 18:10
Materia Dark colorscheme for Alacritty
# If `true`, bold text is drawn using the bright color variants.
draw_bold_text_with_bright_colors: true
# Colors (Materia Dark)
colors:
# Default colors
primary:
background: '0x181818'
foreground: '0xeff0f1'
@BobbyWibowo
BobbyWibowo / alacritty-arc-dark.yml
Created February 12, 2019 21:59
Arc Dark colorscheme for Alacritty
# Colors (Arc Dark)
colors:
# Default colors
primary:
background: '0x383c4a'
foreground: '0xd3dae3'
# Normal colors
normal:
black: '0x4b5164'
@BobbyWibowo
BobbyWibowo / csfip.sh
Created October 25, 2018 08:51
A simple command-line utility to submit a new IP to Cloudflare firewall
#!/usr/bin/env bash
ZONE_ID=""
EMAIL=""
API_KEY=""
LOG_FILE="csfip.log"
if [ $# -eq 0 ]; then
echo "USAGE : csfip.sh <IP_ADDRESS> [MODE=challenge] [...NOTES=Submitted with csfip.sh]"
echo "EXAMPLE : csfip.sh 123.44.55.66 block Spam bot"

Keybase proof

I hereby claim:

  • I am BobbyWibowo on github.
  • I am bobbywibowo (https://keybase.io/bobbywibowo) on keybase.
  • I have a public key whose fingerprint is 39AE 53A2 29C2 4717 57FC 53E7 51C3 A1E1 E22D 26CF

To claim this, I am signing this object: