I hereby claim:
- I am tosbourn on github.
- I am tosbourn (https://keybase.io/tosbourn) on keybase.
- I have a public key whose fingerprint is 8ED7 2636 598E 2917 E1CD FF24 5D89 AC71 BEF8 E674
To claim this, I am signing this object:
lsof -wni tcp:5000 | awk 'NR>1{kill -9 $2}' |
I hereby claim:
To claim this, I am signing this object:
<html> | |
<head> | |
<title>Wee Animation Test</title> | |
<style> | |
.awesome_but_not_important { | |
height: 150px; | |
width: 150px; | |
background-color: red; | |
padding: 5px; | |
-webkit-animation: awesome 5s linear infinite; |
Here is my Gist! | |
Look at it! | |
Gisting all over the place |
require 'FileUtils' | |
homepath = File.expand_path "~" | |
desktop_files = Dir.entries homepath + "/Desktop" | |
desktop_files.to_a | |
screen_shot_folder = homepath + "/Desktop/Screenshots" | |
Dir::mkdir(screen_shot_folder) unless File.exists?(screen_shot_folder) | |
desktop_files.each { |
SELECT CONCAT(table_schema, '.', table_name), | |
CONCAT(ROUND(table_rows / 1000000, 2), 'M') rows, | |
CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') DATA, | |
CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') idx, | |
CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') total_size, | |
ROUND(index_length / data_length, 2) idxfrac | |
FROM information_schema.TABLES | |
ORDER BY data_length + index_length DESC | |
LIMIT 10; |
/** | |
* Quick calc functionality. | |
* | |
* Make sure you pass values of the same metric (all inches, or all centimetres or whatever) | |
* @input fw int floor width. | |
* @input fl int floor length. | |
* @input tw int tile width. | |
* @input tl int tile length. | |
* | |
* @return int Number of tiles. |