sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo reboot
#!/bin/bash | |
# rev4 - changes suggested by KownBash https://www.reddit.com/r/bash/comments/5cxfqw/i_wrote_a_simple_video_to_gif_bash_script_thought/da19gjz/ | |
# Usage function, displays valid arguments | |
usage() { echo "Usage: $0 [-f <fps, defaults to 15>] [-w <width, defaults to 480] inputfile" 1>&2; exit 1; } | |
# Default variables | |
fps=15 | |
width=480 |
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
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 |