Skip to content

Instantly share code, notes, and snippets.

View priyanshujain's full-sized avatar
🛠️
Always Building

Priyanshu Jain priyanshujain

🛠️
Always Building
View GitHub Profile
@priyanshujain
priyanshujain / gist:9bc173ab6d93bd8406a763ffeb6c8433
Created September 15, 2016 13:29 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key

Grammar terminology matters because it allows us to communicate efficiently about language. Of course, it is not necessary to know the terminology to speak a language. We all learn our first languages without first learning what a verb and noun are. However, when we speak about grammar, especially in the context of writing, it helps if we can refer to grammar using precise vocabulary.

There are many sources online and in books that will explain grammar terminology. Not all of them will use exactly the same terms for the same grammatical points (I know, frustrating!). However, if you get into the habit of learning to identify the names of grammatical objects, you will move forward in your understanding of written English.

Sites and books that you can use to look up the names of grammatical terms

Websites

  1. The Elements of Style http://bartleby.com/141/
  2. Using English: http://www.usingenglish.com/glossary/
## How to hide API keys from github ##
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while
retaining your commits: https://help.github.com/articles/remove-sensitive-data/
2. In the terminal, create a config.js file and open it up:
touch config.js
atom config.js
@priyanshujain
priyanshujain / 00-about-search-api-examples.md
Created July 4, 2017 20:32 — forked from jasonrudolph/00-about-search-api-examples.md
5 entertaining things you can find with the GitHub Search API
@priyanshujain
priyanshujain / -
Created July 14, 2017 19:53 — forked from anonymous/-
System: Host: lenovo Kernel: 4.10.0-26-generic x86_64 (64 bit gcc: 6.3.0)
Desktop: Cinnamon 3.4.4 (Gtk 3.22.11-0ubuntu3) dm: lightdm Distro: Ubuntu 17.04
Machine: Device: laptop System: LENOVO product: 80SL v: Lenovo ideapad 310-14ISK
Mobo: LENOVO model: Toronto 4A2 v: SDK0J40679 WIN UEFI: LENOVO v: 0XCN36WW date: 08/30/2016
Chassis: type: 10 v: Lenovo ideapad 310-14ISK
Battery BAT0: charge: 24.4 Wh 88.8% condition: 27.5/30.0 Wh (92%) volts: 8.0/7.4
model: SMP L15M2PB2 serial: 1359 status: Discharging
CPU: Dual core Intel Core i3-6100U (-HT-MCP-) cache: 3072 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9216
clock speeds: min/max: 400/2300 MHz 1: 470 MHz 2: 499 MHz 3: 499 MHz 4: 488 MHz
@priyanshujain
priyanshujain / nmonitor.sh
Created July 11, 2018 08:09 — forked from nitinbhojwani/nmonitor.sh
Monitor individual process metrics - nmonitor usage and shell script.
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "usage error: sh nmonitor.sh <pid> <time_to_monitor_in_seconds>";exit 1
fi
pid=$1
time=$2
#read -p "Please enter your process Id: " pid
@priyanshujain
priyanshujain / generate-ssh-key.sh
Created July 27, 2018 18:55 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@priyanshujain
priyanshujain / celery.sh
Created September 28, 2020 14:03 — forked from amatellanes/celery.sh
Celery handy commands
/* Useful celery config.
app = Celery('tasks',
broker='redis://localhost:6379',
backend='redis://localhost:6379')
app.conf.update(
CELERY_TASK_RESULT_EXPIRES=3600,
CELERY_QUEUES=(
Queue('default', routing_key='tasks.#'),