Skip to content

Instantly share code, notes, and snippets.

View watain666's full-sized avatar
🔥
I may be slow to respond.

TiâuUî Lâu watain666

🔥
I may be slow to respond.
View GitHub Profile
@watain666
watain666 / seq_sed_FizzBuzz.sh
Created April 19, 2018 10:53 — forked from p120ph37/seq_sed_FizzBuzz.sh
seq/sed FizzBuzz
seq 100 | sed 'n;n;s/.*/Fizz/' | sed 'n;n;n;n;s/[0-9]*$/Buzz/'
@watain666
watain666 / multiple_ssh_setting.md
Created May 27, 2018 12:19 — 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 "[email protected]"
@watain666
watain666 / setup.sh
Last active May 31, 2023 14:28 — forked from marulitua/setup.sh
Instal php5.6 & php7.2 with phpbrew on ubuntu 18.04
#!/usr/bin/env bash
# Instal php5.6 with phpbrew on ubuntu 18.04
# Install all dependencies
sudo apt update
sudo apt install wget php build-essential libxml2-dev libxslt1-dev libbz2-dev libcurl4-openssl-dev libmcrypt-dev libreadline-dev libssl-dev autoconf apache2-dev
wget https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
mv phpbrew /usr/local/bin
@watain666
watain666 / git-io-custom-url.md
Last active November 15, 2018 08:05 — forked from dikiaap/git-io-custom-url.md
git.io custom URL

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
  • https://*.github.com/*
  • https://*.github.io
@watain666
watain666 / mysql-cheat-sheet.md
Last active December 7, 2018 09:14 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@watain666
watain666 / README-Template.md
Created April 30, 2019 03:41 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@watain666
watain666 / .Title
Created October 16, 2021 21:55 — forked from congjf/.Title
Using MongoDB in golang with mgo
Using MongoDB in golang with mgo
@watain666
watain666 / tarcheatsheet.md
Created March 24, 2022 07:24 — forked from haskaalo/tarcheatsheet.md
Tar usage / Tar Cheat Sheet

Tar Usage / Cheat Sheet

Compress a file or directory

e.g: tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

  • -c: Create an archive.
  • -z: Compress the archive with gzip.
  • -v: makes tar talk a lot. Verbose output shows you all the files being archived and much.
  • -f: Allows you to specify the filename of the archive.
@watain666
watain666 / vscode-macos-context-menu.md
Created March 25, 2022 09:59 — forked from idleberg/vscode-macos-context-menu.md
“Open in Visual Studio Code” in macOS context-menu

Open in Visual Studio Code

  • Open Automator
  • Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to the following
    for f in "$@"; do
    

open -a 'Visual Studio Code' "$@"

@watain666
watain666 / ptt_ip.md
Created October 21, 2022 08:34 — forked from nevikw39/ptt_ip.md
ptt IP

ptt IP

Detect whether an IP address on ptt belong to VPN or proxy networks

一款 userscript, 令您只要雙擊選取 pttIP 便可即時取得相關資訊.

適用於 www.ptt.cc, term.ptt.cc.

安裝步驟