- 「Browser Support」を追加しました。
こもりが使っているモノやそうでないものも含め、なんとなくWebデザイナーやWebデベロッパーな人たちに便利そうなのを集めてみました。
| ## Install packages | |
| sudo yum install wget curl vim epel-release | |
| sudo yum install daemonize.x86_64 | |
| ## Install mailhog | |
| wget https://github.com/mailhog/MailHog/releases/download/v0.2.0/MailHog_linux_amd64 | |
| sudo chmod +x MailHog_linux_amd64 | |
| sudo chown root:root MailHog_linux_amd64 | |
| sudo mv MailHog_linux_amd64 /usr/sbin/mailhog |
| # Laravel queue worker using systemd | |
| # ---------------------------------- | |
| # | |
| # /lib/systemd/system/queue.service | |
| # | |
| # run this command to enable service: | |
| # systemctl enable queue.service | |
| [Unit] | |
| Description=Laravel queue worker |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| # Before Script | |
| before_script: | |
| - composer self-update | |
| - composer install --prefer-dist > /dev/null | |
| - cp .env.example .env | |
| - php artisan key:generate | |
| - php artisan migrate:refresh | |
| # Services | |
| services: |
| /* Add this line to bookmarks and use when you see | |
| * "Oops! You've got a lot of code in this diff and it couldn't load with the page." | |
| * on a pull request at Bitbucket. | |
| */ | |
| javascript:(function(){[].forEach.call(document.querySelectorAll(".load-diff"),function(a){a.click()})})(); |
| from PyPDF2 import PdfFileReader | |
| from pprint import pprint | |
| def walk(obj, fnt, emb): | |
| ''' | |
| If there is a key called 'BaseFont', that is a font that is used in the document. | |
| If there is a key called 'FontName' and another key in the same dictionary object | |
| that is called 'FontFilex' (where x is null, 2, or 3), then that fontname is | |
| embedded. | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| default_type text/html; | |
| access_log /dev/stdout; | |
| sendfile on; | |
| keepalive_timeout 65; |
| #!/bin/sh | |
| # check for where the latest version of IDEA is installed | |
| IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1` | |
| wd=`pwd` | |
| # were we given a directory? | |
| if [ -d "$1" ]; then | |
| # echo "checking for things in the working dir given" | |
| wd=`ls -1d "$1" | head -n1` |
| ソースコードとかはここ | |
| https://github.com/voluntas/snowflake/tree/feature/json | |
| jiffy .. Time: 342740 | |
| ejson .. Time: 428936 | |
| mochijson2 .. Time: 8359019 | |
| jsx .. Time: 2124705 | |
| jsonx .. Time: 116367 | |
| simplejson: 3.1.2 |