Skip to content

Instantly share code, notes, and snippets.

@loochao
loochao / commit-message-guidelines.md
Created December 27, 2021 12:58 — forked from robertpainsi/commit-message-guidelines.md
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@loochao
loochao / Windows11_Setup.md
Created December 20, 2021 20:12 — forked from alanstevens/Windows11_Setup.md
Windows 11 Setup

This guide was created using Microsoft Windows 11 Pro

Version 21H2 build 22000.194

Installation

System Updates:

  • Settings -> Windows Update
  • Install all updates

Powershell Execution Policy:

  • launch Windows Powershell as administrator and execute:
@loochao
loochao / :actionlist
Created November 13, 2021 19:15 — forked from lpld/:actionlist
:actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb
$SelectAll <M-A>
$Undo <M-Z>
@loochao
loochao / dired-org-to-pdf
Last active July 5, 2021 15:06
Convert dired marked files to md or pdf
;; https://stackoverflow.com/questions/22072773/batch-export-of-org-mode-files-from-the-command-line
(defun dired-org-to-pdf ()
(interactive)
(let ((files
(if (eq major-mode 'dired-mode)
(dired-get-marked-files)
(let ((default-directory (read-directory-name "dir: ")))
(mapcar #'expand-file-name
(file-expand-wildcards "*.org"))))))
(mapc
@loochao
loochao / installing-node-with-nvm.md
Created April 18, 2021 19:54 — forked from d2s/installing-node-with-nvm.md
Installing Node.js to Linux & macOS & WSL with nvm

Installing Node.js with nvm to Linux & macOS & WSL

A quick guide on how to setup Node.js development environment.

Install nvm for managing Node.js versions

nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.

  1. Open new Terminal window.
@loochao
loochao / install-packages.sh
Created April 9, 2021 21:35 — forked from alanstevens/install-packages.sh
A script to install/uninstall my default packages on a fresh Linux Mint system.
#! /usr/bin/env bash
#
# execute this script with:
# curl https://raw.github.com/gist/1499222/install-packages.sh | sudo bash -s <username> <public_key_url>
# curl https://raw.github.com/gist/1499222/install-packages.sh | sudo bash -s 'alan' 'https://dl.dropbox.com/s/qfo16yktbn23q9j/id_rsa.pub?dl=1'
#
user_name=$1
public_key=$2
@loochao
loochao / influxdb-grafana-howto.sh
Created March 14, 2021 06:32 — forked from otoolep/influxdb-grafana-howto.sh
Shell script to download, and configure, InfluxDB, nginx, and Grafana
#!/bin/bash
# Check out the blog post at:
#
# http://www.philipotoole.com/influxdb-and-grafana-howto
#
# for full details on how to use this script.
AWS_EC2_HOSTNAME_URL=http://169.254.169.254/latest/meta-data/public-hostname
INFLUXDB_DATABASE=test1
@loochao
loochao / installGrafanaInflux.sh
Created March 14, 2021 06:31 — forked from ItKindaWorks/installGrafanaInflux.sh
installer script to install grafana and influxdb for ubuntu 18.04
#install tools needed for influx installation
sudo apt-get install -y curl net-tools openssh-server python-pip
pip install paho-mqtt
pip install influxdb
echo
echo "Setting up InfluxDB for installation..."
echo
sleep 5
#add influx to list of allowed software
@loochao
loochao / corpus
Created July 1, 2020 07:22 — forked from kunalj101/corpus
This file has been truncated, but you can view the full file.
__label__2 Stuning even for the non-gamer: This sound track was beautiful! It paints the senery in your mind so well I would recomend it even to people who hate vid. game music! I have played the game Chrono Cross but out of all of the games I have ever played it has the best music! It backs away from crude keyboarding and takes a fresher step with grate guitars and soulful orchestras. It would impress anyone who cares to listen! ^_^
__label__2 The best soundtrack ever to anything.: I'm reading a lot of reviews saying that this is the best 'game soundtrack' and I figured that I'd write a review to disagree a bit. This in my opinino is Yasunori Mitsuda's ultimate masterpiece. The music is timeless and I'm been listening to it for years now and its beauty simply refuses to fade.The price tag on this is pretty staggering I must say, but if you are going to buy any cd for this much money, this is the only one that I feel would be worth every penny.
__label__2 Amazing!: This soundtrack is my favorite music of all
@loochao
loochao / cloudSettings
Created May 23, 2020 00:15 — forked from tjx666/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-05-18T13:47:06.963Z","extensionVersion":"v3.4.3"}