sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo reboot
rm -rf /Applications/Thunder.app/Contents/PlugIns/webgame.xlplugin #遊戲 | |
rm -rf /Applications/Thunder.app/Contents/PlugIns/livestream.xlplugin #美女直播 | |
rm -rf /Applications/Thunder.app/Contents/PlugIns/featuredpage.xlplugin #精選頁面 | |
rm -rf /Applications/Thunder.app/Contents/PlugIns/xlbrowser.xlplugin #迅雷瀏覽器(會導致在迅雷內無法開啟網頁) | |
rm -rf /Applications/Thunder.app/Contents/PlugIns/xlplayer.xlplugin #迅雷播放器 | |
rm -rf /Applications/Thunder.app/Contents/PlugIns/softmanager.xlplugin #應用卸載 | |
rm -rf /Applications/Thunder.app/Contents/PlugIns/activitycenter.xlplugin #活動中心 | |
rm -rf /Applications/Thunder.app/Contents/PlugIns/myvip.xlplugin #會員中心 | |
rm -rf /Applications/Thunder.app/Contents/PlugIns/advertising.xlplugin #廣告 |
git log --author="Linus Torvalds" --date=iso | perl -nalE 'if (/^Date:\s+[\d-]{10}\s(\d{2})/) { say $1+0 }' | sort | uniq -c|perl -MList::Util=max -nalE '$h{$F[1]} = $F[0]; }{ $m = max values %h; foreach (0..23) { $h{$_} = 0 if not exists $h{$_} } foreach (sort {$a <=> $b } keys %h) { say sprintf "%02d - %4d %s", $_, $h{$_}, "*"x ($h{$_} / $m * 50); }' | |
#用户 用户组 | |
user www www; | |
#工作进程,根据硬件调整,有人说几核cpu,就配几个,我觉得可以多一点 | |
worker_processes 5; | |
#错误日志 | |
error_log logs/error.log; | |
#pid文件位置 | |
pid logs/nginx.pid; | |
worker_rlimit_nofile 8192; | |
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
let g:projectionist_heuristics['mix.exs'] = { | |
\ 'apps/*/mix.exs': { 'type': 'app' }, | |
\ 'lib/*.ex': { | |
\ 'type': 'lib', | |
\ 'alternate': 'test/{}_test.exs', | |
\ 'template': ['defmodule {camelcase|capitalize|dot} do', 'end'], | |
\ }, | |
\ 'test/*_test.exs': { | |
\ 'type': 'test', | |
\ 'alternate': 'lib/{}.ex', |
# 1) Create your private key (any password will do, we remove it below) | |
$ cd ~/.ssh | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
00 05 01 * * /home/alea12/letsencrypt/letsencrypt-auto certonly --webroot -w /var/www/html -d example.net --renew-by-default && nginx -t && nginx -s reload |
First, install nginx for mac with "brew install nginx". | |
Then follow homebrew's instructions to know where the config file is. | |
1. To use https you will need a self-signed certificate: https://devcenter.heroku.com/articles/ssl-certificate-self | |
2. Copy it somewhere (use full path in the example below for server.* files) | |
3. sudo nginx -s reload | |
4. Access https://localhost/ | |
Edit /usr/local/etc/nginx/nginx.conf: |
brew install nginx
/usr/local/etc/nginx
ssl
directory, change and generate a dummy ssl cert:
mkdir ssl
cd ssl
penssl req -new -newkey rsa:2048 -sha1 -days 365 -nodes -x509 -keyout server.key -out server.crt
(just accept the default empty settings)cd ..
events {