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
# Git 推送新的仓库 | |
git remote add origin git@github.com:luokr/doc.luokr.com.git | |
git push -u origin master | |
# Git 删除所有远程tags | |
git show-ref --tag | awk '/(.*)(\s+)(.*)$/ {print ":" $2}' | xargs git push origin | |
# Git 删除所有本地tags |
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
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 'on'); | |
function quicksort(&$a, $l, $r) | |
{ | |
if ($l >= $r) return; | |
/** | |
* {a}. item($a[$l]) is the pivot; |
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 | |
# Proftpd | |
#apt-get --force-yes -y update | |
#apt-get --force-yes -y upgrade | |
rm -rf /etc/proftpd | |
apt-get --force-yes -y install proftpd | |
echo " |