Skip to content

Instantly share code, notes, and snippets.

@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:
@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; }
@yinzara
yinzara / github_bitbucket_multiple_ssh_keys.md
Last active April 14, 2025 20:57
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.

@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",
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
@benjaminv
benjaminv / setup-auto-auth-for-multiple-git-accounts.md
Last active December 11, 2024 08:24
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 "[email protected]" -f ~/.ssh/id_rsa_benjaminv_github
$ ssh-keygen -t rsa -b 4096 -C "[email protected]" -f ~/.ssh/id_rsa_bendhu_github
$ ssh-keygen -t rsa -b 4096 -C "[email protected]" -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.