Unix Find Files Larger Than X
% find /home/colin/ -type f -size +1G -exec ls -lh {} \; or % find . -type f -print0 | xargs -0 du -h | sort -hr | head -20
% find /home/colin/ -type f -size +1G -exec ls -lh {} \; or % find . -type f -print0 | xargs -0 du -h | sort -hr | head -20
Silly!! Hosed myself and Revoked the UCC cert instead of rekeying it! Luckily, GoDaddy kept this within their terms, and I only had to pay a $15 restocking fee + the difference to make up a full year since the original purchase date (they can only sell certs by the full year). After that, it[…]
Initially, I had to re-install GApps to get the Play Store working on my xt926. Then, I couldn’t download anything, and kept receiving Error [RPC:S-7:AEC-0]. The solution was to clear the Cache and Data on: ( Settings -> Apps -> All ) > Download Manager > Google Play Services > Google Play Store (Reboot, All[…]
pip and easy_install failed – missing sql.h # pkg install unixODBC # ln -s /usr/local/include/sql* /usr/include/ # ln -s /usr/local/include/iodbc* /usr/include/ # pip install pyodbc
Ran into an error running Justin’s code (http://git.zx2c4.com/PhotoFloat/about/): TypeError: can’t compare datetime.datetime to unicode (When I uploaded a newly edited PNG from GIMP and ‘scan’ updated my cache). So I did a quick bit of debugging: PhotoFloat/scanner# python -m pdb ./main.py ../web/albums/ ../web/cache/ > PhotoFloat/scanner/main.py(3)() -> from TreeWalker import TreeWalker (Pdb) b PhotoAlbum.py:42 Breakpoint 1[…]
[PhotoFloat](http://git.zx2c4.com/PhotoFloat/about/)
Make and copy your public key: [Blogpost 74](https://hwcdi.com/blogpost/74/Enable_Key_based_SSH_%28for_machine_to_machine_talking_%28backup%2C_etc%29%29) then [root@STG1 colin]# chmod 700 .ssh/ [root@STG1 colin]# chmod 600 .ssh/authorized_keys [root@STG1 colin]# restorecon -Rv .ssh/
#excerpt of nginx.conf: server { listen 80; server_name zfsftw.com; location / { root /usr/local/www/nginx-dist/zfsftw; index index.html; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/local/www/nginx-dist; } } server { listen 80; server_name hwcdi.com; #access_log logs/host.access.log main; ## redirect http to https ## rewrite ^ https://$server_name$request_uri? permanent; #error_page 404 /404.html; # redirect[…]
Add: server_names_hash_bucket_size 64; to the top of your http block
# apt-get install build-essential