This file contains 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
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2017-06-11T10:37:48.0530393</Date> | |
<Author><!------------ SHABAO-DESKTOP\gongt ------------></Author> | |
<URI>\sshd</URI> | |
</RegistrationInfo> | |
<Triggers> | |
<BootTrigger> | |
<Enabled>true</Enabled> |
This file contains 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
function tmux { | |
if [ $# -eq 0 ]; then | |
if /usr/bin/tmux list-sessions &>/dev/null ; then | |
/usr/bin/tmux attach | |
else | |
cd ~ | |
/usr/bin/tmux | |
fi | |
else | |
/usr/bin/tmux "$@" |
This file contains 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
# : https://gist.github.com/GongT/f8b65c7db0eb081a8c741f59b552f984 | |
function tscp { | |
echo -en "\ec\0typescript compiling (source: $1)...\r" | |
tsc -w -p "$1" | sed 's/^.*File change detected/\x1Bc\0/g' | |
} |
This file contains 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 | |
# create a LNK file: | |
# C:\cygwin64\bin\mintty.exe -w hide -h error -e /bin/env /usr/local/bin/startx.sh | |
# ^ cygwin install path ^ this file path in cygwin root | |
set -x | |
set -e | |
export PATH="/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin" |
This file contains 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
# curl https://gist.githubusercontent.com/GongT/cb5c429a79834f73eff6041726a4d76a/raw/92eb636b4b8151af7b4e336e535b0003599fb4fc/gistfile1.txt | bash | |
# disable firewall & selinux | |
setenforce 0 | |
echo -e "SELINUX=permissive\nSELINUXTYPE=targeted\n" > /etc/sysconfig/selinux | |
systemctl disable firewalld | |
systemctl stop firewalld | |
systemctl mask firewalld | |
# install docker client only |
NewerOlder