Skip to content

Instantly share code, notes, and snippets.

@shallowbit
shallowbit / multiple_ssh_setting.md
Created October 26, 2020 00:35 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@shallowbit
shallowbit / chromeos-crosh-custom-setup.md
Created January 29, 2020 22:09 — forked from arnaudsj/chromeos-crosh-custom-setup.md
Customize ChromeOS Crosh Terminal with Custom Fonts and Solarized Dark Theme

Customize Chromebook Chrosh Shell Environment

Requirement: Chromebook, Common Sense, Commandline Ablity, 1 hour of time

Dear developers with a spare Chromebook lets inject a little personalization into your Crosh shell with custom fonts, the solarized theme, and extra secure shell options.

Also, keep in mind that the terms Chrosh, Chrosh Window, and Secure Shell all refer to various versions and extentions built around the ChromeOS terminal. Settings that affect the ChromeOS terminal are global.

Custom Fonts

#!/bin/bash
# sudo apt install bash-completion
# sudo cp etc-bash_completion.d-wol.bash /etc/bash_completion.d/wol.bash
_wol() {
local _cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=( $(compgen -W "$(wol --list)" -- "$_cur") )
}
@shallowbit
shallowbit / bash_args.sh
Created April 10, 2018 06:24 — forked from bsnape/bash_args.sh
bash arguments
#!/usr/bin/env bash
set -x
set -e
if [ $# -eq 0 ]; then
echo "Received no arguments. Exiting..."
exit
fi
# $@ is one-based and not zero-based
@shallowbit
shallowbit / output.js
Created March 26, 2018 17:46 — forked from derhuerst/output.js
how fetch a GitHub user's stars
[
{
owner: 'bcoe',
repo: 'top-npm-users',
description: ':star: Generate a list of top npm users by based on monthly downloads.',
language: 'JavaScript',
isFork: false,
stargazers: 27,
watchers: 27
}