Skip to content

Instantly share code, notes, and snippets.

View vaibhavsingh97's full-sized avatar
๐Ÿ˜‡

Vaibhav Singh vaibhavsingh97

๐Ÿ˜‡
View GitHub Profile
@vaibhavsingh97
vaibhavsingh97 / gpg-key-migration.md
Created May 18, 2022 12:00 — forked from angela-d/gpg-key-migration.md
Move GPG Keys from One Machine to Another

Migrate GPG Keys from One Workstation to Another

Replace [your key] with your key ID

To obtain your key ID

gpg --list-secret-keys --keyid-format LONG

Which returns something like

@vaibhavsingh97
vaibhavsingh97 / user_setting_v1.json
Created May 26, 2019 17:32
VS Code settings JSON to maximise productivity and code faster.
{
// Theme Setup
"workbench.colorTheme": "Night Owl",
"workbench.iconTheme": "material-icon-theme",
// Font Setup
"editor.fontFamily": "Dank Mono, Operator mono,Source Code Pro, Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 19,
"editor.fontLigatures": true,
"editor.lineHeight": 26.1,
@vaibhavsingh97
vaibhavsingh97 / debian.doc
Created September 8, 2018 11:39 — forked from Manas-kashyap/debian.doc
Debian Packaging Guide for Beginners
Debian packaging (noob guide)
Disclaimer :- There is a well flourished guide on the subject already ,this is just
my version of it .
Links
โ€ข (Debian Packaging pre requisites)
https://www.loomio.org/d/LTpSdMuX/debian-packaging-pre-requisites
โ€ข
โ€ข (Detailed Wiki guide )
https://wiki.debian.org/Javascript/Nodejs/Npm2Deb/Tutorial
https://wiki.debian.org/Javascript/Nodejs/Npm2Deb
@vaibhavsingh97
vaibhavsingh97 / crawl.py
Created August 8, 2018 14:47
A python script which crawl the webpage and return all the URLs present in a webpage
import re
import sys
from urllib.parse import urlparse
from urllib.parse import urljoin
import urllib.request
from bs4 import BeautifulSoup
class MyOpener(urllib.request.FancyURLopener):
version = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36 OPR/38.0.2220.41'
- Add authentication
- Add Swagger UI
- Add Test cases
# Ember JS
https://serge-m.github.io/sample-ember-and-flask.html
https://github.com/gaganpreet/todo-flask-ember
http://www.programwitherik.com/blog-tutorial-with-ember-js/
---Youtube vids for ember---
https://www.youtube.com/watch?v=qA0LDdgHTmU&list=PL0nNJgE19Y-js_1XHA5QdEU1ed_ldOaks
# React
https://realpython.com/blog/python/the-ultimate-flask-front-end/
[vaibhav@deathping cosmos]$ code .
[vaibhav@deathping cosmos]$ git checkout Patch6
Switched to branch 'Patch6'
Your branch is up-to-date with 'origin/Patch6'.
[vaibhav@deathping cosmos]$ git checkout master
Switched to branch 'master'
Your branch is ahead of 'origin/master' by 1948 commits.
(use "git push" to publish your local commits)
[vaibhav@deathping cosmos]$ git pull upstream master
remote: Counting objects: 5649, done.
import sys
import numpy as np
from math import sqrt
import string
from clint.textui import colored, puts
class HillCipher():
"""docstring for Hillcypher"""
### Keybase proof
I hereby claim:
* I am vaibhavsingh97 on github.
* I am vaibhavsingh (https://keybase.io/vaibhavsingh) on keybase.
* I have a public key ASD0h9XbDbZPTjed-1RH6Y7pZfX87qLhDA9hsu3K-d7YVgo
To claim this, I am signing this object: