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 1Q9Jj4LPxm7j7Ey6fLep1cqMtgaXkTo4hx https://explorer.blockstack.org/address/1Q9Jj4LPxm7j7Ey6fLep1cqMtgaXkTo4hx |
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 |
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 |
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
<?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
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
_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
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
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
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; |
NewerOlder