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 | |
/** | |
* RESTful remap method for CodeIgniter controllers | |
* | |
* @author Clint Tyler <[email protected]> | |
*/ | |
class MY_Controller extends CI_Controller | |
{ | |
public function _remap($method, $arguments = array()) | |
{ |
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
while true; do [command]; done; |
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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot /var/www/example.org/public | |
ServerName example.org | |
ServerAlias www.example.org | |
<Directory /var/www/example.org/public> | |
Options All | |
AllowOverride All | |
Require all granted | |
</Directory> |
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 | |
# Works with Ubuntu 14.04 - 16.10: | |
# See https://launchpad.net/~ondrej/+archive/ubuntu/php for more information | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install -y php7.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
<?php | |
// data to be tested | |
$data = [ | |
null, | |
false, | |
true, | |
0, | |
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 | |
sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb; |
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 | |
wget https://gist.githubusercontent.com/cdtweb/0f2e8df3858a3ab0c4c9fa3d132a36e6/raw/6c9a06a663f80b384b177f700a368936aa067ece/install-minergate.sh | |
chmod +x install-minergate.sh | |
./install-minergate.sh | |
minergate-cli -user <YOUR_EMAIL> -xmr |
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 | |
wget https://gist.githubusercontent.com/cdtweb/0f2e8df3858a3ab0c4c9fa3d132a36e6/raw/6c9a06a663f80b384b177f700a368936aa067ece/install-minergate.sh | |
chmod +x install-minergate.sh | |
./install-minergate.sh | |
minergate-cli -user <YOUR_EMAIL> -bcn |
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
// This may or may not work for you | |
// Browse to the 'tweets' page on your profile | |
// Copy & paste into the browser console and hit enter | |
// Interval set to 10s to hopefully avoid rate limiting | |
// You may need to prove you are not a robot | |
setInterval(function() { | |
// scroll to bottom of screen | |
window.scrollTo(0, document.body.scrollHeight); | |
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
// This may or may not work for you | |
// Browse to the 'likes' section for your profile | |
// Copy & paste into the browser console and hit enter | |
// Interval set to 10s to hopefully avoid rate limiting | |
// You may need to prove you are not a robot | |
setInterval(function() { | |
window.scrollTo(0, document.body.scrollHeight); | |
$('button.ProfileTweet-action--unfavorite').click(); | |
}, 10000); |
OlderNewer