This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
continent_code | country_code | continent_name | country_name | country_iso3 | country_number | country_full_name | |
---|---|---|---|---|---|---|---|
AS | AF | Asia | Afghanistan | AFG | 004 | Islamic Republic of Afghanistan | |
EU | AX | Europe | Åland Islands | ALA | 248 | Åland Islands | |
EU | AL | Europe | Albania | ALB | 008 | Republic of Albania | |
AF | DZ | Africa | Algeria | DZA | 012 | People's Democratic Republic of Algeria | |
OC | AS | Oceania | American Samoa | ASM | 016 | American Samoa | |
EU | AD | Europe | Andorra | AND | 020 | Principality of Andorra | |
AF | AO | Africa | Angola | AGO | 024 | Republic of Angola | |
NA | AI | North America | Anguilla | AIA | 660 | Anguilla | |
AN | AQ | Antarctica | Antarctica | ATA | 010 | Antarctica the territory South of 60 deg S |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ds() { | |
date --date="$1 days ago" +%Y-%m-%d | |
} | |
BRANCH=master # your branch here | |
echo "Date,LinesAdded,LinesDeleted" | |
for day in $(seq 1 10) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright (c) 2017 @yuan3y | |
# Released under MIT License | |
# Tested on Ubuntu 16.04.2 LTS with default Unity interface | |
# | |
# USAGE: | |
# chmod +x install_prevent_lock_screen_dim.sh | |
# ./install_prevent_lock_screen_dim.sh | |
scriptFile=~/.prevent_lock_screen_dim.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jQuery way*/ | |
Array.from([["last_update",jQuery('.last_update').text().slice(25)]].append(jQuery('div.human').map((a,b)=>{return [[jQuery(b).children('.blank_humam').text(), jQuery(b).children('.fill_humam').prop('style').height]];}))).reduce((p,c,i)=>{p[c[0]]=c[1]; return p;},{}) | |
/*VanillaJS functional equivalence*/ | |
Array.from([["last_update",document.querySelector('.last_update').innerText.slice(25)]].append(Array.from(document.querySelectorAll('div.human')).map((b)=>{return [b.children[0].innerText, b.children[1].style.height];}))).reduce((p,c,i)=>{p[c[0]]=c[1]; return p;},{}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: @yuan3y | |
# Date: 2017-09-29 | |
# Description: to make `jekyll serve` a system service and start on boot | |
# | |
# Usage: place this file at `/etc/systemd/system/jekyll.service` | |
# then run | |
# sudo systemctl start jekyll.service | |
# sudo systemctl enable jekyll.service | |
[Unit] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
co = checkout | |
com = checkout master | |
fo = fetch origin | |
fom = fetch origin master | |
ci = commit | |
st = status | |
br = branch | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash -x | |
YYYYslashMM=$(date +%Y/%m) | |
cd ~/Downloads | |
mkdir -pv ./$YYYYslashMM | |
rm current | |
ln -s $YYYYslashMM/ current | |
mkdir -pv ./personal/$YYYYslashMM | |
cd ./$YYYYslashMM | |
rm personal | |
ln -s ../../personal/$YYYYslashMM/ personal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## arrow up | |
"\e[A":history-search-backward | |
## arrow down | |
"\e[B":history-search-forward |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
script_runner=$(id -u -n) | |
file_owner=$(stat -c '%U' ./index.html) | |
[ $script_runner != $file_owner ] && { echo "please run script as $file_owner with 'sudo -u $file_owner $0'"; exit 1; } | |
echo "all good, do what you want $file_owner to do here" |