Skip to content

Instantly share code, notes, and snippets.

@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active May 13, 2025 00:30
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@dsitweed
dsitweed / work-with-multiple-github-accounts.md
Last active May 13, 2025 00:30 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
>+[>+[>,<<<[-]>>>[<<<+>>>-]<<<[>>>+>+<<<<-]>>>>[<<<<+>>>>-]>++++++++++[<++++++++++>-]<++<[->-<]+>[<->[-]]+<[>>>++++++++++[<++++++++++>-]<.[-]>+++++++++++[<++++++++++>-]<++++.[-]>++++++++++[<++++++++++>-]<+++++.[-]>+++++++++++[<++++++++++>-]<.[-]>++++++++++[<++++++++++>-]<+++++++.[-]<-<[-]]>[-]<<<<[>>>+>+<<<<-]>>>>[<<<<+>>>>-]>++++++++++[<++++++++++>-]<+<[->-<]+>[<->[-]]+<[>>>+++++++++++[<++++++++++>-]<++++.[-]>++++++++++[<++++++++++>-]<+.[-]>++++++++++[<++++++++++>-]<++.[-]>++++++++++[<++++++++++>-]<+++++.[-]>++++++++++[<++++++++++>-]<++++++++.[-]>++++++++++[<++++++++++>-]<++++++++.[-]<-<[-]]>[-]<<[-]<+>]<-]

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

Determining if a font is italic

To determine if a font is italic, you can look at fsSelection of the OS/2 table, checking the 0th and 9th bit:

For instance, here’s fsSelection for "Inter Medium Italic":

node -p '(129).toString(2).split("").reverse().join("")'
=&gt; 10000001 == ITALIC | USE_TYPO_METRICS
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active May 13, 2025 00:17
Make Firefox fast again
@maxim
maxim / gh-dl-release
Last active May 13, 2025 00:14
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@Alansdead
Alansdead / content-is-not-restricted-to-landscape-orientation.markdown
Created May 13, 2025 00:11
Content is not restricted to landscape orientation
@hmRemi
hmRemi / README.md
Last active May 13, 2025 00:11
Make Discord Server With Tags

Discord Guild ID Hash Targeter Script

Discord no longer provides the tags feature to new servers. This could change, so I'm keeping this active and seeking other ways to get a tag server. I still recommend trying create guilds within the specified hash ranges. Please support by starring this gist and joining our Discord (link below).

Also, selling a script for a fully customizable rotating clan tag. (colors and badge icon - join discord to buy)

Version: 1.2.3 (as per CONFIG.SCRIPT_VERSION in the script)
Discord: https://discord.gg/wSWYhQMdbA | @ziue
Telegram: https://t.me/reveredev/

@stefanprodan
stefanprodan / get_incidents_csv.py
Created February 28, 2017 07:58 — forked from lfepp/get_incidents_csv.py
Sample script to output all PagerDuty incidents for a given time period to a CSV file (defaults to previous 24 hours)
#!/usr/bin/env python
#
# Copyright (c) 2016, PagerDuty, Inc. <[email protected]>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright