Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| #!/bin/sh | |
| #Check the Drive Space Used by Cached Files | |
| du -sh /var/cache/apt/archives | |
| #Clean all the log file | |
| #for logs in `find /var/log -type f`; do > $logs; done | |
| logs=`find /var/log -type f` | |
| for i in $logs |
| package unzip | |
| import "archive/zip" | |
| /** | |
| * Extract a zip file named source to directory destination. Handles cases where destination dir… | |
| * - does not exist (creates it) | |
| * - is empty | |
| * - already has source archive extracted into it (files are overwritten) | |
| * - has other files in it, not in source archive (not overwritten) |
| # to list SSH keys | |
| ls -al ~/.ssh | |
| # generate u key pair, substituing by ur Email account (github, bitbucket) | |
| ssh-keygen -t rsa -b 4096 -C "your_email@example.com" | |
| # initialize ssh agent | |
| eval "$(ssh-agent -s)" | |
| # add ssh agent in key | |
| ssh-add ~/.ssh/id_rsa | |
| # append ur public key in access key github||bitbucket | |
| ~/.ssh/id_rsa.pub |
| # ~/.bashrc | |
| nf () { git checkout develop && git pull --all && git checkout -b feature/"$@" && git push origin feature/"$@" && git commit --allow-empty -m " ${@} #in-progress " && git push --all;} | |
| gc () { git add . && git commit -m " ${@} " && git push --all; } | |
| cf () { git checkout develop && git merge feature/"$@" && git push origin develop && git commit --allow-empty -m " ${@} #test " && git push --all; } |
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use App\Services\Cache\ActionCacheManager; | |
| use Symfony\Component\HttpFoundation\ResponseHeaderBag; | |
| /** | |
| * Middleware that will cache controller action responses |
| <label for="uf">Estado</label> | |
| <select id="uf"> | |
| <option value="">-- Selecione --</option> | |
| <option value="AC">Acre</option> | |
| <option value="AL">Alagoas</option> | |
| <option value="AP">Amapá</option> | |
| <option value="AM">Amazonas</option> | |
| <option value="BA">Bahia</option> | |
| <option value="CE">Ceará</option> | |
| <option value="DF">Distrito Federal</option> |