This file contains 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
javascript: function iptxt() { | |
var d = document; | |
try { | |
if (!d.body) throw (0); | |
window.location = 'http://www.instapaper.com/text?u=' + encodeURIComponent(d.location.href); | |
} catch (e) { | |
alert('Please wait until the page has loaded.'); | |
} | |
} | |
iptxt(); |
This file contains 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
Black vs Blue | |
## The Jones' | |
Every so often, my wife will complain about how so-and-so has a bigger basement than ours or such-and-such just bought a new car or whatever. I have to remind her that it's all perception. The reality is that they share the same reality that we do. Mortgage payments, late bills, screaming kids, medical issues, etc. | |
*Perception/Reality* | |
## Anti- and social |
This file contains 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 that +stevekarsch is my blockchain ID. https://onename.com/stevekarsch |
This file contains 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
[mysqld] | |
datadir=/var/lib/mysql | |
socket=/var/lib/mysql/mysql.sock | |
user=mysql | |
# Disabling symbolic-links is recommended to prevent assorted security risks | |
symbolic-links=0 | |
max_allowed_packet=128M | |
max_connections=15 | |
query_cache_size=16M | |
join_buffer_size=1M |
This file contains 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
.channel__image:hover:before, .bxslider li a:hover:before { | |
content: " "; | |
border-radius: 50%; | |
width: 50px; | |
height: 50px; | |
margin-left: -25px; | |
margin-top: -25px; | |
color: #000000; | |
text-align: center; | |
position: absolute; |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
pv <mysql-dump-file>.sql | mysql -u root <dbname> |
This file contains 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
drush dis -y overlay shortcut rdf toolbar dashboard comment && drush en -y views views_ui pathauto imagemagick admin_menu admin_menu_toolbar bootstrap jquery_update admin_devel devel date date_api date_tools diff search_krumo features strongarm media |
This file contains 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 | |
# | |
# From anywhere within a Drupal site, | |
# this will set the correct permissions | |
# to keep Drupal happy. | |
# | |
CURRENT_USER=`who am i | awk '{print $1}'` | |
USER=${1:-$CURRENT_USER} | |
dir=`drush status --fields=root |cut -f2 -d: |sed s/\ //g` |
This file contains 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
apt-get update | |
apt-get install nano | |
mkdir .ssh | |
cd .ssh | |
nano authorized_keys | |
apt-get install apache2 | |
apt-get install dialog | |
apt-get install mariadb-server mariadb-client | |
apt-get install php5 php5-mysql libapache2-mod-php5 | |
cd /var/www |
NewerOlder