Skip to content

Instantly share code, notes, and snippets.

@benjaminv
benjaminv / setup-auto-auth-for-multiple-git-accounts.md
Last active September 19, 2024 23:40
Final & Working guide for living with multiple Git accounts

permlink: https://gist.github.com/benjaminv/092f3d87afcbe589ca2a03fa9358050f

1. Generate a new SSH key-pair for each of Git account.

$ ssh-keygen -t rsa -b 4096 -C "benvee@gmail.com" -f ~/.ssh/id_rsa_benjaminv_github
$ ssh-keygen -t rsa -b 4096 -C "ben@mycompany.com.au" -f ~/.ssh/id_rsa_bendhu_github
$ ssh-keygen -t rsa -b 4096 -C "ben@mycompany.com.au" -f ~/.ssh/id_rsa_benhu1_gitlab

# The -C option is a comment to help identify the key.
# The -f option specifies the file name for the key pair.
Product Image Tags
Sleeveless Jump Suit https://eecommerce.s3.amazonaws.com/jump-suit.jpg women jumpsuit
Men Jean https://eecommerce.s3.amazonaws.com/jean.jpg men pants jean
Pencil Skirt https://eecommerce.s3.amazonaws.com/pencil-skirt.jpg women skirt
Men Sandal https://eecommerce.s3.amazonaws.com/sandal.jpg men footwear sandal
Smock Top https://eecommerce.s3.amazonaws.com/smock-top.jpg women top
T-Shirt https://eecommerce.s3.amazonaws.com/tees.jpg men women top
@tankala
tankala / data.json
Last active March 2, 2022 08:31
Write/Convert Nested JSON data to CSV for all keys or specific keys. For more details read my article https://blog.tanka.la/2020/03/29/write-convert-nested-json-data-to-csv-for-specific-subset-keysheaders/
[
{
"_id": "5e7f55e2f065ef934a048d32",
"index": 0,
"guid": "88647c07-bf2a-42c3-8e23-cec1ed731f2f",
"isActive": false,
"balance": "$1,254.74",
"picture": "http://placehold.it/32x32",
"age": 40,
"eyeColor": "green",
@yinzara
yinzara / github_bitbucket_multiple_ssh_keys.md
Last active September 16, 2024 17:51
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.

@benjaminv
benjaminv / html-table-to-markdown-extra.html
Created September 20, 2018 03:29 — forked from sunnywalker/html-table-to-markdown-extra.html
HTML Table to Markdown Extra converter
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML Table to Markdown Extra Table</title>
<style type="text/css">
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}
body { font-family: -apple-system, "Segoe UI", Arial, Helvetica, sans-serif; line-height: 1.5;
text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
textarea { width: 100%; height: 15em; }
@pseudokool
pseudokool / desktop-mode-ubuntu-aws-ec2.markdown
Created September 11, 2018 17:05
Desktop (GUI) mode for Ubuntu 16.04 on AWS EC2

Ubuntu 16.04 on AWS EC2

This guide enables desktop mode in Ubuntu 16.04 (Xenial Xerus) running off an AWS EC2.

Setup

  • Launch an EC2 instance with Ubuntu 16.04 (should work on all versions greater too)
  • Ensure a security group is configured, that allows ingress on ports 22 (SSH) and 5901 (VNC, 5900+N, where N is the display number)
  • SSH into the instance, update the system, install the XFCE desktop and the lightweight VNC server:
@deyixtan
deyixtan / sublime_text_patch.md
Last active July 26, 2024 10:35
Sublime Text Patching Guide

Automated Patching

Download slt.py python script (supports multiple build) from this repository.

Usage

python slt.py <"sublime_text file path">


Manual Patching

@amaya382
amaya382 / Illustrator.exe.manifest
Last active June 16, 2018 19:19
Adobe CS6 manifest file for HiDPI on windows
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0" processorArchitecture="*"
@nerdenough
nerdenough / vueSetup.md
Last active June 6, 2021 17:21
macOS Setup for Vue

macOS setup for Vue

Install macOS :P

Install Homebrew

Open terminal and run the follow command to install the latest version of Homebrew. This will also install the XCode utils if you don't have them already installed.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

@sunnywalker
sunnywalker / html-table-to-markdown-extra.html
Last active August 3, 2022 12:09
HTML Table to Markdown Extra converter
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML Table to Markdown Extra Table</title>
<style>
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}
body { font-family: -apple-system, "Segoe UI", Arial, Helvetica, sans-serif; line-height: 1.5;
text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
textarea { width: 100%; height: 15em; }