Skip to content

Instantly share code, notes, and snippets.

View dragstarcrowant's full-sized avatar

Oleksandr Antonets dragstarcrowant

View GitHub Profile
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active May 29, 2025 18:11
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
compass compile --force
sed -i -e "s/^@charset.*$//g" public/stylesheets/*.css
jammit --force
@dragstarcrowant
dragstarcrowant / EDM <body>
Last active December 14, 2015 21:19
GUIDE: edm
<body style="margin:0; padding:0; background:#ffffff;">
<!-- <table> always with fixed width -->
<!-- in case having problems with different <td> width, <table> "table-layout" must be changed to "fixed", this will "lock" column width and content won't break layout -->
<table style="width:600px; margin:0 auto; border-collapse:collapse; border-spacing: 0; border:none; " cellspacing="0" cellpadding="0" border="0">
<tr style="border-spacing:0; padding:0; margin:0; border:0;">
<!-- <td> must have at least one set dimension: <td style="width:..px;" width=".."> or <td style="height:..px;" height=".."> -->
<!-- <td> can be used like placeholder or spacer(instead of paddings or margins)
<td colspan="" style="border:0; background:#5e9525; text-align:center; margin:0; width:19px; vertical-align: top; padding:0; border:none; height:50px;" width="19" height="50">
@LeaVerou
LeaVerou / dabblet.css
Created March 4, 2013 00:01
Switch-style checkboxes.
/**
* Switch-style checkboxes.
* Inspired by Espresso’s “Tools” switch
*/
input[type="checkbox"]:not(:checked),
input[type="checkbox"]:checked { /* :checked here acting as a filter for older browsers */
position: absolute;
opacity: 0;
}