Skip to content

Instantly share code, notes, and snippets.

View niranjanshr13's full-sized avatar

Niranjan Shrestha niranjanshr13

View GitHub Profile
╔═════════════╦═════════════╦════════════════╗
║ Bond Rating ║ Grade ║ Risk ║
╠═════════════╬═════════════╬════════════════╣
║ AAA ║ Investment ║ Lowest Risk ║
║ AA ║ Investment ║ Low Risk ║
║ A ║ Investment ║ Low Risk ║
║ BBB ║ Junk ║ Medium Risk ║
║ BB / B ║ Junk ║ High Risk ║
║ C/CC/CCC ║ Junk ║ Highest Risk ║
║ D ║ Junk ║ Default ║
#!/bin/bash
curl -s 'www.google.com/search?biw=1920&bih=945&q=i%27m+feeling+curious&gws_rd=ssl' -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30" | grep GQSfLE1fUrA | grep -o 'GQSfLE1fUrA.*</div><div class="_LSh">' | sed 's/GQSfLE1fUrA">//g' | sed 's/<\/div><div class="_LSh">//g'
@niranjanshr13
niranjanshr13 / Rclone + GPG(public key) . md
Created November 3, 2017 20:24
giving the Rclone public key crypto feature.
first create public key encryption.
gpg --gen-key
* fill out form
* find your recipient of the gpg keyid.
* now the fun part.
* first upload.
* cat {any file} | gpg -ae -r {recipient keyid} | rclone rcat remote:testfilename.mp4 -vvv
* now downloading part.
* rclone cat remote:testfilename.mp4 | gpg -d -r {recipient keyid} | mpv -
echo '
..XXX. .XXX..
.XXXXY.TXXXX.
XXXXXYXTXXXXX
.VXXVYXTVXXX.
`.TYXTXYXTV .
` ,YVTXYYV .,
`...XXXXX`..,
.`...XXX...,.
..` V ,.' | tr '.\`, VYTX' ' ()__() '
@niranjanshr13
niranjanshr13 / primewire.py
Created August 1, 2017 02:21
a command line for primewire.ag, which will work, just combine mpv $(youtube-dl -g). I was bored and starting coding. It is incomplete.
#!/usr/bin/env python3
#{{{ Importing Modules
import requests
import bs4
#}}}
#{{{ Variable's
assignment = {}
#}}}
'''
r = requests.get('https://www.primewire.ag/?tv').text # requesting page.
@niranjanshr13
niranjanshr13 / torrent-tracker.txt
Created June 13, 2017 16:17
List of all torrent tracker
udp://public.popcorn-tracker.org:6969/announce
http://182.176.139.129:6969/announce
http://5.79.83.193:2710/announce
http://91.218.230.81:6969/announce
udp://tracker.ilibr.org:80/announce
http://atrack.pow7.com/announce
http://bt.henbt.com:2710/announce
http://mgtracker.org:2710/announce
http://mgtracker.org:6969/announce
http://open.touki.ru/announce.php
@niranjanshr13
niranjanshr13 / duplicate_cleaner.sqlite3
Created February 21, 2017 04:39
removing duplicate sqlite3
DELETE FROM <table_name> WHERE rowid NOT IN (SELECT min(rowid) FROM <table_name> GROUP BY <column_one>, <column_two>);
# reference:
https://dba.stackexchange.com/questions/116868/sqlite3-remove-duplicates
@niranjanshr13
niranjanshr13 / client_secrets.json
Last active February 19, 2017 06:32
Upload youtube video from python
{
"web": {
"client_id": "[[INSERT CLIENT ID HERE]]",
"client_secret": "[[INSERT CLIENT SECRET HERE]]",
"redirect_uris": [],
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token"
}
}
@niranjanshr13
niranjanshr13 / usb_enable.reg
Created December 23, 2016 06:47
windows registry file to enable usb port
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"ImagePath"=hex(2):5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,72,\
00,69,00,76,00,65,00,72,00,73,00,5c,00,55,00,53,00,42,00,53,00,54,00,4f,00,\
52,00,2e,00,53,00,59,00,53,00,00,00
"Type"=dword:00000001
"Start"=dword:00000003
"ErrorControl"=dword:00000001
@niranjanshr13
niranjanshr13 / usb_disable.reg
Created December 23, 2016 06:46
windows registry file to disable usb port
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"ImagePath"=hex(2):5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,72,\
00,69,00,76,00,65,00,72,00,73,00,5c,00,55,00,53,00,42,00,53,00,54,00,4f,00,\
52,00,2e,00,53,00,59,00,53,00,00,00
"Type"=dword:00000001
"Start"=dword:00000004
"ErrorControl"=dword:00000001