Using any of this may void your warranty!
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
deb https://ftp.debian.org/debian/ testing contrib main non-free non-free-firmware | |
# deb-src https://ftp.debian.org/debian/ testing contrib main non-free non-free-firmware | |
deb https://ftp.debian.org/debian/ testing-updates contrib main non-free non-free-firmware | |
# deb-src https://ftp.debian.org/debian/ testing-updates contrib main non-free non-free-firmware | |
deb https://ftp.debian.org/debian/ testing-proposed-updates contrib main non-free non-free-firmware | |
# deb-src https://ftp.debian.org/debian/ testing-proposed-updates contrib main non-free non-free-firmware | |
deb https://ftp.debian.org/debian/ testing-backports contrib main non-free non-free-firmware |
Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.
- Go to: https://twitter.com/{username}/likes
- Open the console and run the following JavaScript code:
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}
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. update apt | |
apt-get update | |
# 2. install nginx and php (source https://forum.dokuwiki.org/post/52724;?unb855sess=af28c8160e97b05e634124aa83451119) | |
apt-get install nginx php php-fpm php7.0-xml | |
# 3. download dokuwiki | |
curl https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz -o dokuwiki.tgz | |
tar xvf dokuwiki.tgz | |
dokuwiki-2017-02-19e /var/www/dokuwiki |
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
# AWS EC2 | |
# Remove Apache and PHP old version | |
# Install Apache 2.4, Mod_SSL and PHP 5.6 | |
# | |
sudo service httpd stop | |
sudo yum erase httpd httpd-tools apr apr-util | |
sudo yum remove php-* | |
sudo yum install php56 | |
sudo yum install php56-xml php56-xmlrpc php56-soap php56-gd php56-mbstring | |
sudo yum install php56-mysqlnd |
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 | |
/* Usage: Put [bacs_account_details] shortcode in "WooCommerce > Settings > Checkout > BACS > Description field" */ | |
/* This function outputs the BACS account details */ | |
function list_bacs_accounts() { | |
$accounts = get_option( 'woocommerce_bacs_accounts'); | |
if ( $accounts ) { | |
$list_accounts = '<table> | |
<thead> |
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
#### CentOS: yum install pip ; pip install linode-python ; pip install chube | |
#### | |
- hosts: localhost | |
connection: local | |
gather_facts: false | |
tasks: | |
- name: Create linode server | |
linode: | |
api_key: '---LINODE-API-KEY-HERE---' |
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
sed -i "" 's/install.disable.sponsor.offers.*/install.disable.sponsor.offers=true/g' ~/Library/Application\ Support/Oracle/Java/Deployment/deployment.properties | |
defaults write ~/Library/Application\ Support/JREInstaller/ThirdParty SPONSORS -string "0" |
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 | |
/** | |
* Plugin Name: WooCommerce plus Contact Form 7 | |
* Plugin URI: http://reigelgallarde.me/plugins/how-to-add-inquiry-tab-to-your-product-in-woocommerce-using-contact-form-7 | |
* Description: Additional Tab Product Inquiry. | |
* Author: Reigel Gallarde | |
* Author URI: http://reigelgallarde.me | |
* Version: 0.1 | |
* Tested up to: 4.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
# OSX for Hackers (Mavericks/Yosemite) | |
# | |
# Source: https://gist.github.com/brandonb927/3195465 | |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Ask for the administrator password upfront |
NewerOlder