create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| # 在本地服务器建立 rubygems.org 的镜像缓存,以提高 gem 的安装速度 | |
| # 此配置设置缓存过期为1天,也就是说,新上的 gem 无法马上安装 | |
| # 做这个起什么作用? | |
| # rubygems 的很多资源文件是存放到 Amazon S3 上面的,由于 GFW 对某些 S3 服务器又连接重置或丢包,导致 gem 安装异常缓慢或有时候根本无法连接安装。 | |
| # 而通过这种跳板的方式可以很好的解决这个问题,当然前提是 Nginx反向代理 服务器需要在国外 | |
| proxy_cache_path /var/cache/rubygems levels=1:2 keys_zone=RUBYGEMS:10m | |
| inactive=24h max_size=1g; | |
| server { | |
| listen 80; |
| <?php | |
| define('FRESHDESK_SHARED_SECRET','____Place your Single Sign On Shared Secret here_____'); | |
| define('FRESHDESK_BASE_URL','http://{{your-account}}.freshdesk.com/'); //With Trailing slashes | |
| function getSSOUrl($strName, $strEmail) { | |
| $timestamp = time(); | |
| $to_be_hashed = $strName . FRESHDESK_SHARED_SECRET . $strEmail . $timestamp; | |
| $hash = hash_hmac('md5', $to_be_hashed, FRESHDESK_SHARED_SECRET); | |
| return FRESHDESK_BASE_URL."login/sso/?name=".urlencode($strName)."&email=".urlencode($strEmail)."×tamp=".$timestamp."&hash=".$hash; | |
| } |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| /* Default (OS X).sublime-keymap */ | |
| /* Key Bindings - User */ | |
| [ | |
| { "keys": ["ctrl+shift+."], "command": "erb", "context": | |
| [ | |
| { | |
| "key": "selector", | |
| "operator": "equal", | |
| "operand": "text.html.ruby, text.haml, source.yaml, source.css, source.scss, source.js, source.coffee" | |
| } |
| ########################################### | |
| # IMPORTANT NOTE: | |
| # | |
| # As of asuswrt-merlin 380.67 Beta, you | |
| # can now configure SSL certificates from | |
| # the Webui, making these instructions | |
| # unnecessary. | |
| ########################################### | |
| #! /bin/bash | |
| # Set the default policies to allow everything while we set up new rules. | |
| # Prevents cutting yourself off when running from remote SSH. | |
| iptables -P INPUT ACCEPT | |
| iptables -P FORWARD ACCEPT | |
| iptables -P OUTPUT ACCEPT | |
| # Flush any existing rules, leaving just the defaults | |
| iptables -F |
| ## Backup the current vps 备份当前vps | |
| 1. Clean Arch system 清理系统 | |
| pacman -Scc | |
| 2. Create an excluded file to exclude certain dirs 建立一个需要排除的目录的文件,这些文件不必要备份,新系统会自动生成 | |
| cat /root/backup/exclude.txt | |
| /tmp/* | |
| /root/backup/* | |
| /proc | |
| /dev |
| //wearversion | |
| //wearlog | |
| //wearvoiceinputenable | |
| //wearvoiceinputdisable | |
| //weargoogleapi | |
| //assert | |
| //pushassert | |
| //uplog | |
| //upcrash | |
| //switchnotificationstatus |