Skip to content

Instantly share code, notes, and snippets.

View jhas3c's full-sized avatar

jhasec jhas3c

View GitHub Profile
ps aux | grep -ie rake | awk '{print $2}' | xargs kill -9
ps aux | grep -ie delayed_job | awk '{print $2}' | xargs kill -9
@jhas3c
jhas3c / terminal-git-branch-name.md
Created November 17, 2018 09:28 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Mac)

Add Git Branch Name to Terminal Prompt (Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@jhas3c
jhas3c / handling_multiple_github_accounts.md
Created September 3, 2019 18:18 — forked from Jonalogy/handling_multiple_github_accounts.md
Handling Multiple Github Accounts on MacOS

Handling Multiple Github Accounts on MacOS

The only way I've succeeded so far is to employ SSH.

Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:

Host *
 AddKeysToAgent yes

> UseKeyChain yes

@jhas3c
jhas3c / fix-libv8-mac.txt
Created April 11, 2020 18:38 — forked from fernandoaleman/fix-libv8-mac.txt
Fixing libv8 and therubyracer on Mac
brew tap homebrew/versions
brew install v8-315
gem install libv8 -v '3.16.14.13' -- --with-system-v8
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315
bundle install

Keybase proof

I hereby claim:

  • I am jhadeepakkumar14 on github.
  • I am jhadeepakkumar (https://keybase.io/jhadeepakkumar) on keybase.
  • I have a public key ASAlMB4zFeKfjoUVxjblSOjEtm567CkE_TXAZmEJnaxQAgo

To claim this, I am signing this object:

@jhas3c
jhas3c / GoogleDorking.md
Created May 11, 2023 07:01 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@jhas3c
jhas3c / proc_net_tcp_decode
Created July 1, 2023 13:49 — forked from jkstill/proc_net_tcp_decode
decode entries in /proc/net/tcp
Decoding the data in /proc/net/tcp:
Linux 5.x /proc/net/tcp
Linux 6.x /proc/PID/net/tcp
Given a socket:
$ ls -l /proc/24784/fd/11
lrwx------ 1 jkstill dba 64 Dec 4 16:22 /proc/24784/fd/11 -> socket:[15907701]
@jhas3c
jhas3c / README.md
Last active January 7, 2024 05:55
Installation Step of Arch Linux in dual boot

Installation of Arch Linux

Pre-requisite:

  • USB thumb drive with atleast 16GB memory
  • ArchLinux ISO file downloaded(https://archlinux.org/download/ - You can use magnet link to download arch linux)
  • Make sure you have disabled safe boot, you can enable it again after installation
  • Make sure you have empty partition present in you SSD
  • Make sure you are connected with wired lan connection, otherwise you need to connect with wifi in step 2

Step 1:

(?i)((access_key|access_token|admin_pass|admin_user|algolia_admin_key|algolia_api_key|alias_pass|alicloud_access_key|amazon_secret_access_key|amazonaws|ansible_vault_password|aos_key|api_key|api_key_secret|api_key_sid|api_secret|api.googlemaps AIza|apidocs|apikey|apiSecret|app_debug|app_id|app_key|app_log_level|app_secret|appkey|appkeysecret|application_key|appsecret|appspot|auth_token|authorizationToken|authsecret|aws_access|aws_access_key_id|aws_bucket|aws_key|aws_secret|aws_secret_key|aws_token|AWSSecretKey|b2_app_key|bashrc password|bintray_apikey|bintray_gpg_password|bintray_key|bintraykey|bluemix_api_key|bluemix_pass|browserstack_access_key|bucket_password|bucketeer_aws_access_key_id|bucketeer_aws_secret_access_key|built_branch_deploy_key|bx_password|cache_driver|cache_s3_secret_key|cattle_access_key|cattle_secret_key|certificate_password|ci_deploy_password|client_secret|client_zpk_secret_key|clojars_password|cloud_api_key|cloud_watch_aws_access_key|cloudant_password|cloudflare_api_key|cloudflare_auth_k
@jhas3c
jhas3c / d4dorks.txt
Created September 2, 2024 21:19 — forked from jhaddix/d4dorks.txt
Diablo 4 Dorks
Search groups explained:
Group 1 "exploit, farm, glitch, cheese, AFK, multibox, dupe, grind" - This search will keep you up to date on "clever use of game mechanics" should you want to be on the bleeding edge.
Group 2 "build OR guide OR nerf" - This wil keep you up to date with classes and builds coming out and ones that are over powered.
Group 3: "unique OR set OR legendary OR gold OR murmuring OR veiled" - will keep you up to date on the currency and gear grind meta.
SEARCH LINKS: