View domain-sale.md

I used Escrow.com successfully to sell a domain, but I did learn later there's a potential fraud as they only take control of the buyer's funds, not the seller's domain. The domain is still transferred directly from seller to buyer. There's potential fraud where the seller hides the domain after you xfer it, and tries to get their money back from the escrow.

Not sure how much of an issue in practice, it partly will depend on your confidence in the buyer (escrow actually told me they know the buyer well so I was fairly confident). Ideally you should find a good escrow that takes both sides before swapping them, but not sure if there are any trusted names that do this tbh.

View xtradb-ubuntu.md

First, DNS problems - Linode pointed me to https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1674532 (mainly need to up sudo apt-get update && sudo apt-get upgrade, possibly reboot)

As quick fix, appended dns-nameservers 8.8.8.8 8.8.8.9 to /etc/network/interfaces and running "sudo service networking restart".

vi /etc/apt/sources.list Append:

deb http://repo.percona.com/apt xenial main testing
deb-src http://repo.percona.com/apt xenial main testing
View describe-mysql-5.7.17-user-table
+------------------------+-----------------------------------+------+-----+-----------------------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------------------+-----------------------------------+------+-----+-----------------------+-------+
| Host | char(60) | NO | PRI | | |
| User | char(32) | NO | PRI | | |
| Select_priv | enum('N','Y') | NO | | N | |
| Insert_priv | enum('N','Y') | NO | | N | |
| Update_priv | enum('N','Y') | NO | | N | |
| Delete_priv | enum('N','Y') | NO | | N | |
| Create_priv | enum('N','Y')
View mysql.sh
#!/bin/bash
set -x
set -e
export DEBIAN_FRONTEND=noninteractive
sudo apt-get --purge autoremove -y mysql-server-5.6
curl -LO https://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
echo mysql-apt-config mysql-apt-config/select-product select Apply | sudo debconf-set-selections
View private.xml
<?xml version="1.0"?>
<root>
<appdef>
<appname>Terminal</appname>
<equal>com.apple.Terminal</equal>
<equal>iTerm</equal>
<equal>net.sourceforge.iTerm</equal>
<equal>com.googlecode.iterm2</equal>
</appdef>
<item>
View intents.java
fm.player.playback.play // play/resume
fm.player.playback.pause // pause
fm.player.playback.jumpforward // jump forward
fm.player.playback.jumpback // jump back
fm.player.playback.next // skip to next episode
fm.player.playback.previous // skip back to previous episode
fm.player.playback.stop // stop
fm.player.playback.toggle // toggle play/pause state
View webcheck.sh
# WEB
# e.g. webcheck /about google.com google.co.uk
# will check each host in parallel, multiple times
function webcheck {
trap handle_sigint SIGINT
set +m
path=$1
shift
hosts=$*
for host in $hosts ; do
View console.rb
# Run this on console to check asset path will work
JsAssets::List.exclude = ['boot.js'] ; JsAssets::List.allow = %w(app.js models/*.js prod-*.css); `rm -fr tmp/cache`; JsAssets::List.fetch
View assign.coffee
# adapted from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill
# with help from JS2Coffee
# https://codepen.io/mahemoff/pen/xOBgdk?editors=0010
if typeof Object.assign != 'function'
Object.assign = (target) ->
index = 1
while index < arguments.length
View redis-delete-keys.rb
class Redis::Namespace
def delete_all_keys
keys = self.keys '*'
self.del keys if keys.present?
end
end
funky_redis = Redis::Namespace.new('funky', redis: Redis.new(url: '...'))
funky_redis.set 'count', 10 # makes funky:10 entry
funky_redis.delete_all_keys # deletes funky:10 entry