The Laracasts PHPStorm theme.
https://www.dropbox.com/s/f4l3qc2falnvq61/laracasts_theme_updated.icls
(Add to ~/Library/Preferences/WebIde80/colors on Mac.)
| <?php | |
| /** | |
| * Config for PHP-CS-Fixer ver2 | |
| */ | |
| $rules = [ | |
| '@PSR2' => true, | |
| // addtional rules |
| <?php | |
| $input = 'nome:ps4 sku:SKU7889-988;OI99129 data:10/12/2016 nome:Playstation 4 nome:Nintendo Wii sku:TESTE123 9aos'; | |
| preg_match_all('/(?:([^: ]+):)([^: ]+(?:\s+[^: ]+\b(?!:))*)/', $input, $matches, PREG_SET_ORDER); | |
| echo $input; | |
| echo '<pre>'; | |
| print_r($matches); | |
| echo '</pre>'; |
| alias art="php artisan" | |
| alias dracarys="git reset --hard && git clean -df" | |
| alias phpfix="php php-cs-fixer.phar fix" | |
| alias weather='curl -s wttr.in/Hurghada | sed -n "2,7p"' | |
| alias usd='curl -s "https://www.google.com/finance/converter?a=1&from=USD&to=EGP" | LC_CTYPE=C sed "/res/!d;s/<[^>]*>//g"' | |
| alias shrug="echo '¯\_(ツ)_/¯' | pbcopy"; | |
| alias fight="echo '(ง'̀-'́)ง' | pbcopy"; | |
| alias happy="echo 'ᕕ( ᐛ )ᕗ' | pbcopy"; | |
| # Commit all the current changes with a message |
| import os | |
| import unittest | |
| from airflow.models import DagBag | |
| class TestDags(unittest.TestCase): | |
| """ | |
| Generic tests that all DAGs in the repository should be able to pass. | |
| """ |
| ssl = off | |
| maintenance_work_mem = 2GB | |
| work_mem = 2GB | |
| fsync = off | |
| synchronous_commit = off | |
| wal_level = minimal | |
| max_wal_senders = 0 | |
| archive_mode = off | |
| wal_buffers = -1 | |
| wal_writer_delay = 20ms |
| sudo apt-get install php7.0-dev | |
| wget http://xdebug.org/files/xdebug-2.4.0rc2.tgz | |
| tar -xzf xdebug-2.4.0rc2.tgz | |
| cd xdebug-2.4.0RC2/ | |
| phpize | |
| ./configure --enable-xdebug | |
| make | |
| sudo cp modules/xdebug.so /usr/lib/. | |
| #FOR FPM | |
| sudo echo 'zend_extension="/usr/lib/xdebug.so"' > /etc/php/7.0/fpm/conf.d/20-xdebug.ini |
The Laracasts PHPStorm theme.
https://www.dropbox.com/s/f4l3qc2falnvq61/laracasts_theme_updated.icls
(Add to ~/Library/Preferences/WebIde80/colors on Mac.)
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # http://stackoverflow.com/questions/4544669/batch-convert-latin-1-files-to-utf-8-using-iconv | |
| find . -type f -exec bash -c 'iconv -f iso-8859-1 -t utf-8 "{}" > /path/to/destination/"{}"' \; |
| !URxvt.font: -*-unifont-medium-*-*-*-16-*-*-*-*-*-*-* | |
| !URxvt.boldFont: -*-unifont-medium-*-*-*-16-*-*-*-*-*-*-* | |
| ! Terminus | |
| !URxvt.font: -*-terminus-medium-*-*-*-16-*-*-*-*-*-iso10646-* | |
| !URxvt.boldFont: -*-terminus-bold-*-*-*-16-*-*-*-*-*-iso10646-* | |
| ! Tamzen | |
| URxvt.font: -misc-tamzen-medium-r-normal--17-*-*-*-*-*-iso8859-1 | |
| URxvt.boldFont: -misc-tamzen-bold-r-normal--17-*-*-*-*-*-iso8859-1 | |
| ! Source Sans | |
| !URxvt.font: xft:Source Code Pro:size=7 |