Skip to content

Instantly share code, notes, and snippets.

View jackusay's full-sized avatar

jackusay

View GitHub Profile
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active June 21, 2024 09:44
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
@soerenkornetzki
soerenkornetzki / dotnet-framework-and-dotnet-standard-compatibility-list-with-operating-systems.md
Last active May 21, 2024 09:40
.NET Framework (and .NET Standard) Compatibility List with Operating Systems

.NET Framework (and .NET Standard) Compatibility List with Operating Systems

This summary/conclusion will not be updated anymore. I have switched to .NET 5 completely, which runs on Windows 7 SP1 and newer.

For class libraries, I will use the targets .NET Standard 1.1, 2.0 and 2.1 at the same time, together with .NET Framework 2.0 and 4.0. Applications on the other hand will always targeted to .NET 5.0 only.

Recommended minimum system requirements

@drodsou
drodsou / writeFileSyncRecursive.js
Last active June 5, 2024 15:57
Like writeFileSync but creating all folder paths if not exist
// -- updated in 2020/04/19 covering the issues in the comments to this point
// -- remember you also have things like `ensureDirSync` from https://github.com/jprichardson/node-fs-extra/blob/master/docs/ensureDir-sync.md
const fs = require('fs')
function writeFileSyncRecursive(filename, content, charset) {
// -- normalize path separator to '/' instead of path.sep,
// -- as / works in node for Windows as well, and mixed \\ and / can appear in the path
let filepath = filename.replace(/\\/g,'/');
// -- preparation to allow absolute paths as well
@subfuzion
subfuzion / github-wiki-how-to.md
Last active June 5, 2024 05:31
GitHub Wiki How-To

How do I clone a GitHub wiki?

Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for the repo https://myorg/myrepo/ is: git@github.com:myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (for https).

You make edits, and commit and push your changes, like any normal repo. This wiki repo is distinct from any clone of the project repo (the repo without wiki.get appended).

How do I add images to a wiki page?

@sshay77
sshay77 / gist:4b1f6616a7afabc1ce2a
Created July 18, 2015 15:15
google-search-url-parameters-query-string-
// ==UserScript==
// @name Google Search Better Privacy
// @description Delete unnecessary params and add useful params on Google Search.
// @version 0.0.4
// @include http://*.google.*/search*
// @include http://*.google.*/imgres*
// @include https://*.google.*/search*
// @include https://*.google.*/imgres*
// @exclude http://play.google.com/*
// @exclude http://mail.google.com/*