Skip to content

Instantly share code, notes, and snippets.

 of it.

/ "Root" Everything on the system.

/bin Essential binaries (Sometimes a link to /usr/bin).

/boot Boot loader files.

/dev Device files.

@himalay
himalay / nepal-adblock.txt
Last active April 1, 2020 08:32
Nepal Adblock
[nepal-adblock]
! Ad blocking rules for Nepali websites
!
! Title: NPL: Nepal Adblock
!
ujyaaloonline.com##.ads_banner_click
||pahilopost.com/*/*/headbanner/
||pahilopost.com/*/*/homebanner/
@himalay
himalay / numbers.json
Created August 13, 2019 10:53
Mnemonic major system
{
"0": "hose",
"1": "hat",
"2": "hen",
"3": "home",
"4": "arrow",
"5": "whale",
"6": "shoe",
"7": "cow",
"8": "hoof",
@himalay
himalay / vianet.sh
Last active August 22, 2018 13:47
Vianet
for i in {2000..5300}; do `curl -X POST -d "customer_id=$i" http://appapi.vianet.com.np/customerapi/mobileapp/registration/VIA-API-KEY/neptouch/format/json`; done
# Start the sryncd using /sdcard/rsyncd.conf in android device
adb shell -t -t 'sh /sdcard/rsync-start'
# Bind the port to 1988
adb forward tcp:1988 tcp:1992
# Create backup folder
mkdir ~/sdcard
# Start syncing /sdcard

Essential fonts including Nepali and colour Emoji fonts

yaourt -S ttf-liberation ttf-freefont ttf-nepali-fonts noto-fonts-emoji

Font config for colour emoji to work

~/.config/fontconfig/conf.d/01-emoji.con

@himalay
himalay / gist:699f26f8f897e0e2ded7a452cc948ecc
Created June 28, 2018 11:13
systemd service config file Install to /etc/systemd/system/mynodejsapp.service
systemd service config file
Install to /etc/systemd/system/mynodejsapp.service
[Unit]
Description=My node.js App
[Service]
User=mynodejsapp
Group=mynodejsapp
WorkingDirectory=/opt/mynodejsapp
// ==UserScript==
// @name Normalize e-remit
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Removes weblimits for demo.eremit.com.my
// @author You
// @match https://demo.eremit.com.my/*
// @grant none
// ==/UserScript==
@himalay
himalay / apt.md
Last active January 14, 2018 02:37

Update all expired keys from Ubuntu key server in one command: source

sudo apt-key list | \
 grep "expired: " | \
 sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | \
 xargs -n1 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys

Command explanation:

npm vs yarn

What you need to know

npm install === yarn

Install is the default behavior.

npm install taco --save === yarn add taco