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/'
// Hi!
(function() { return 'hi'; })();
// This is a sketchpad for Javascript
// ----------------------------------
// * 2 spaces are default so that stuff fits
// on projectors.
// * some things might be weird, don't be afraid
// * console.whatever doesn't do anything
@watain666
watain666 / index.js
Created April 30, 2018 04:21
Gist from mistakes.io
"hello, world"; // edit this to begin
"test"
5 + 5
{"behaviour":{"animations":false,"blacklist":[],"closeTimeout":-1,"contextmenu":true,"dirAccordion":false,"dirOpenDuration":"0","dndOpen":true,"linkAction":"newtab","newTab":"foreground","newTabPosition":"afterCurrent","openAction":"contextmenu","openChildrenWarnLimit":"5","openDelay":"0","preventPageScroll":true,"rememberState":"openStatesAndPos","reopenSidebar":false,"scrollBarHide":"1","sidebarPosition":"left","toggleArea":{"height":"100","top":"0","width":"1","widthWindowed":"20"},"tooltipContent":"all","tooltipDelay":"0.25","visibility":"always","whitelist":[]},"appearance":{"darkMode":true,"highContrast":false,"showBookmarkIcons":true,"showDirectoryIcons":true,"showIndicator":true,"showIndicatorIcon":true,"styles":{"bookmarksDirColor":"#c8c8c8","bookmarksDirIcon":"dir-1","bookmarksDirIndentation":"22px","bookmarksFontSize":"12px","bookmarksHorizontalPadding":"10px","bookmarksIconSize":"14px","bookmarksLineHeight":"26px","colorScheme":"#ff0070","directoriesIconSize":"14px","fontFamily":"Roboto","foregrou
[
{
"installDate": 1526437677476,
"enabled": true,
"updateUrl": "https://userstyles.org/styles/chrome/136318.json?ik-bg_theme=ik-bg_theme_blueg&ik-text_theme=ik-text_theme_def&ik-photo_filters=ik-photo_filters_none&ik-chat_opacity=ik-chat_opacity_full&ik-cover_photo=ik-cover_photo_no&ik-ro_av=ik-ro_av_n&ik-convo_list=ik-convo_list_n&ik-wider_b=ik-wider_b_n&ik-cust_bg=ik-cust_bg_n&ik-cust_bg_ph=ik-cust_bg_ph_1",
"md5Url": "https://update.userstyles.org/136318.md5",
"url": "http://userstyles.org/styles/136318",
"originalMd5": "3390e5b7c6a6c75d4c2981189c7f5248",
"sections": [
{
@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 / phpbrewswitch
Last active October 19, 2018 03:11
Using PHPBrew to switch php version for apache
#!/usr/bin/env bash
# Usage: bash phpbrewswitch
i=1
c=1
options=()
while [ $c -gt 0 ]
do
v=$(phpbrew list | sed -n "${i}p")
if [ -z "$v" ]; then
@watain666
watain666 / iridium-settings
Created October 25, 2018 05:58
iridium-settings
{
"language": "English (US)",
"section_list": {
"donate": "donate",
"general": "general",
"video": "video",
"settings": "settings"
},
"section_titles": {
"donate": "Support Iridium",
@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