This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget http://pecl.php.net/get/APC-3.1.13.tgz | |
| tar xvzf APC-3.1.13.tgz | |
| cd APC-3.1.13 | |
| /usr/local/bin/phpize-5.4 | |
| ./configure --with-php-config=/usr/local/php54/bin/php-config | |
| make | |
| cp modules/apc.so ~/.php/5.4/ | |
| rm -Rf APC-3.1.13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| PROJECTNAME="myproject" | |
| KEYREPO="prod" | |
| echo -e '\n=======================================================' | |
| echo "# APK Builder for Play Store deployment #" | |
| echo '=======================================================' | |
| echo ' ' | |
| read -p "Are you sure you want to do this? [y/n] " -r | |
| echo # (optional) move to a new line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNDqa06FRAviHixBZOJJR0EMzTx3zrFU6elIu4S3aWUImM3RWiy6jqkIGcygX1QBvgJr1949jWVqp7KdWXF26uXDoo5Akq6W3Av4CC0VXgswg+4bJbYZL7KvgHh3KXJculhs1n6yr13oVi7o/e0Um64ggNu7S4Pin1e1Z17bycLzmQDnRFN428dF0btxo153RJMTGlhE9v1HteRbhfQwSsuw7HVRMGyZEZeSXWX6nObeDAVqh5S8EKXZZUBIYIZpP8HTwbG541rDYxUtQZO/d+wR2vwy+/OSLIcpRBe305Nm6vsIRR8l6bfJBmuI1UBn4D3n7ccOJAY8Qna/WYZNRH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <snippet> | |
| <content><![CDATA[ | |
| }); | |
| ]]></content> | |
| <tabTrigger>w</tabTrigger> | |
| <description>Close callback function: });</description> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <!-- <scope>source.javascript</scope> --> | |
| </snippet> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var view = new View({ | |
| state: state, // <- state | |
| )}; | |
| state.set({ | |
| action: 'myFunction', | |
| data: { | |
| awesome: true | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {?cond} | |
| cond is true | |
| {:else} | |
| cond is not true | |
| {/cond} | |
| {^cond} | |
| cond is false | |
| {:else} | |
| cond is not false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Start: | |
| sudo su - postgres | |
| psql | |
| By default, postgres tries to connect to a database with the same name as your user. | |
| To prevent this default behaviour, just specify user and database: | |
| psql -U Username DatabaseName | |
| To check if running: | |
| sudo service postgresql status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import _ from 'lodash' | |
| let inserter = (table, items) => { | |
| let validKeys = _.keys(items).join(', '), | |
| countKeys = _.reduce(items, (results) => { | |
| results.push('$' + (results.length + 1)) | |
| return results | |
| }, []).join(', '), | |
| data = _.values(items) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo '' | |
| echo '--------------------------' | |
| echo "--RE-TAGGING: ${1}" | |
| echo '--------------------------' | |
| echo '' | |
| git tag -d ${1} | |
| git push origin :refs/tags/${1} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| guake -n guake -e 'cd dev/dragonlaw && c && v' guake -r 'Main' | |
| guake -n guake -e 'cd dev/dragonlaw/src/scripts/modules/document && c && v' guake -r 'Document' | |
| guake -n guake -e 'cd dev/dragonlaw/src/scripts/modules/doctype && c && v' guake -r 'Doctype' | |
| guake -n guake -e 'cd dev/dragonlaw/src/scripts/baseApp && c && v' guake -r 'BaseApp' | |
| guake -n guake -e 'cd dev/dragonlaw/src/scripts/submodules/entities && c && v' guake -r 'Entities' | |
| guake -n guake -e 'cd dev/dragonlaw/src/scripts/submodules/components && c && v' guake -r 'Components' | |
| exit 1 |
OlderNewer