1. Install nginx
2. Install minio
3. Install mc client
$ mc mb myminio/static
Bucket created successfully ‘myminio/static’.
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| 1. Check Python3 root | |
| >>> import sys | |
| >>> import os | |
| >>> sys.executable | |
| '/usr/local/bin/python3' | |
| OR | |
| $ which python3 | |
| /usr/local/bin/python3 |
| import zipfile | |
| import sys | |
| from pathlib import Path | |
| def unzip(f, encoding, v): | |
| with zipfile.ZipFile(f) as z: | |
| for i in z.namelist(): | |
| n = Path(i.encode('cp437').decode(encoding)) | |
| if v: |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| # laravel new-app | |
| alias laravel="git clone -o laravel -b develop https://github.com/laravel/laravel.git" | |
| alias artisan="php artisan" | |
| alias migrate="php artisan migrate" | |
| alias serve="php artisan serve" | |
| alias dump="php artisan dump" | |
| alias t="phpunit" | |
| # Generators Package |
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: btsync | |
| # Required-Start: $local_fs $remote_fs | |
| # Required-Stop: $local_fs $remote_fs | |
| # Should-Start: $network | |
| # Should-Stop: $network | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Multi-user daemonized version of btsync. |
| int main(int argc, const char * argv[]) | |
| { | |
| @autoreleasepool { | |
| if (argc == 1) { | |
| return 1; | |
| } | |
| NSString *word = [NSString stringWithCString:argv[1] encoding:NSUTF8StringEncoding]; | |
| CFStringRef result = DCSCopyTextDefinition(nil, (__bridge CFStringRef)word, CFRangeMake(0, word.length)); |