Skip to content

Instantly share code, notes, and snippets.

Clint Tyler cdtweb

Block or report user

Report or block cdtweb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cdtweb
cdtweb / greek-gods.json
Created Jan 31, 2019
JSON array of Greek Gods
View greek-gods.json
[
"Zeus",
"Hera",
"Poseidon",
"Demeter",
"Ares",
"Athena",
"Apollo",
"Artemis",
"Hephaestus",
@cdtweb
cdtweb / unlike-tweets.js
Last active Aug 1, 2018
JS unlike all tweets
View unlike-tweets.js
// 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);
@cdtweb
cdtweb / delete-tweets.js
Last active Aug 1, 2018
JS delete your tweets
View delete-tweets.js
// 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);
@cdtweb
cdtweb / bcn-miner.sh
Created Jan 3, 2018
Install minergate and start mining Bytecoin on Ubuntu
View bcn-miner.sh
#!/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
@cdtweb
cdtweb / xmr-miner.sh
Created Dec 6, 2017
Install minergate and start mining XMR on Ubuntu
View xmr-miner.sh
#!/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
@cdtweb
cdtweb / install-minergate.sh
Created Dec 6, 2017
Install minergate-cli on Ubuntu
View install-minergate.sh
#!/bin/bash
sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb;
@cdtweb
cdtweb / php-data-type-check.php
Last active Nov 15, 2017
PHP Data Type Check
View php-data-type-check.php
<?php
// data to be tested
$data = [
null,
false,
true,
0,
1,
'',
@cdtweb
cdtweb / ubuntu-php71-install.sh
Created Feb 22, 2017
Ubuntu PHP 7.1 Installer
View ubuntu-php71-install.sh
#!/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
@cdtweb
cdtweb / basic-apache2-virtualhost
Created Oct 6, 2016
Basic Apache VirtualHost
View basic-apache2-virtualhost
<VirtualHost *:80>
ServerAdmin admin@example.org
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>
@cdtweb
cdtweb / shell-infinit-loop
Last active Oct 6, 2016
Run shell command infinitely
View shell-infinit-loop
while true; do [command]; done;
You can’t perform that action at this time.