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 | |
| PREV_COMMIT=$1 | |
| POST_COMMIT=$2 | |
| NOCOLOR='\e[0m' | |
| REDCOLOR='\e[37;41m' | |
| if [[ -f composer.lock ]]; then | |
| DIFF=`git diff --shortstat $PREV_COMMIT..$POST_COMMIT composer.lock` |
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
| 1. Get an access_token | |
| https://www.facebook.com/dialog/oauth? | |
| client_id=XXX& | |
| client_secret=XXX& | |
| redirect_uri=XXX& | |
| scope=publish_stream,offline_access,read_stream,manage_pages& | |
| response_type=token | |
| 2. Get a long lasting access_token |
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
| function sort_array($array, $columns) { | |
| usort($array, function($a, $b) use ($columns) { | |
| $t = array(true => -1, false => 1); | |
| $r = true; | |
| $k = 1; | |
| foreach ($columns as $order => $value) { | |
| $k = (strtolower($order) === 'desc') ? -1 : 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
| sudo chmod -R 777 system/cms/cache && sudo chmod -R 777 system/cms/config && sudo chmod -R 777 addons && sudo chmod -R 777 assets/cache && sudo chmod -R 777 uploads && sudo chmod -R 666 system/cms/config/config.php |
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
| SELECT * FROM | |
| default_data_fields | |
| LEFT JOIN | |
| default_data_field_assignments | |
| ON | |
| default_data_fields | |
| .id = | |
| default_data_field_assignments | |
| .field_id WHERE | |
| default_data_field_assignments |
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
| _complete_ssh_hosts () | |
| { | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
| cut -f 1 -d ' ' | \ | |
| sed -e s/,.*//g | \ | |
| grep -v ^# | \ | |
| uniq | \ | |
| grep -v "\[" ; |
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
| function async_loop($array, $function) { | |
| foreach($array as $key => $item) { | |
| $pid = pcntl_fork(); | |
| if ($pid) { | |
| $childs[] = $pid; | |
| } else { | |
| $function($key, $item); | |
| exit(); | |
| } |
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
| <?php | |
| class ProcessWireValetDriver extends BasicValetDriver | |
| { | |
| private $possibleDirectories = [ | |
| '', // PW in root, do not remove except you're sure you never use it | |
| '/dist', | |
| '/public' | |
| ]; |
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
| 0xfd19d98f55dB006DEB66A62746a8a08ef418c219 |
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
| Verifying my Blockstack ID is secured with the address 1CwN73jmTTWMAM3VbyjjYzyKVfWdJCaufn https://explorer.blockstack.org/address/1CwN73jmTTWMAM3VbyjjYzyKVfWdJCaufn |
OlderNewer