put the function in your .zshrc or .bashrc and then
~ ia-save http://twitter.com/atomotic
https://web.archive.org/web/20140702123925/http://twitter.com/atomotic
| #!/bin/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
| # Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
| /* 1. write it out for older browsers */ | |
| /* 2. use the vendor prefix for webkit */ | |
| /* 3. use the vendor prefix for moz */ | |
| /* 4. include the un-prefixed version last */ | |
| #foo { | |
| width: 200px; | |
| width: -webkit-calc(50% - 100px); | |
| width: -moz-calc(50% - 100px); | |
| width: calc(50% - 100px); |
| <VirtualHost *:80> | |
| ServerAdmin {USER}@cslavoie.com | |
| ServerName {DOMAIN} | |
| ServerAlias www.{DOMAIN} | |
| ServerAlias {USER}.localhost | |
| ServerAlias {USER}.static.cslavoie.com | |
| DocumentRoot {DOC_ROOT} | |
| <Directory {DOC_ROOT}> |
| <?php | |
| /** | |
| * Dot notation for access multidimensional arrays. | |
| * | |
| * $dn = new DotNotation(['bar'=>['baz'=>['foo'=>true]]]); | |
| * | |
| * $value = $dn->get('bar.baz.foo'); // $value == true | |
| * | |
| * $dn->set('bar.baz.foo', false); // ['foo'=>false] | |
| * |
| <?php | |
| /** | |
| * A helper file for Laravel 5, to provide autocomplete information to your IDE | |
| * Generated for Laravel 5.5.13 on 2017-09-28. | |
| * | |
| * @author Barry vd. Heuvel <barryvdh@gmail.com> | |
| * @see https://github.com/barryvdh/laravel-ide-helper | |
| */ | |
| namespace { | |
| exit("This file should not be included, only analyzed by your IDE"); |
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
put the function in your .zshrc or .bashrc and then
~ ia-save http://twitter.com/atomotic
https://web.archive.org/web/20140702123925/http://twitter.com/atomotic
| openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem | |
| chmod 600 id_rsa.pem |
| <?php | |
| /** | |
| * Bolt multi-site bootstrap | |
| * | |
| * @author Gawain Lynch <gawain.lynch@gmail.com> | |
| * | |
| * @return \Bolt\Application | |
| */ | |
| return call_user_func( |