After my blog post about [command line one-liners], many people want to contribute with their own commands. This is the place to do it, pull requests are welcome!
Run the last command
$ !!
#/bin/bash | |
# | |
# Rick Salaverria | |
# 2014-03-04 | |
# | |
# Inline CSS styles | |
style=" style=\"border:1px solid;background:#EEE;padding:10px;margin:5px 10px\"" | |
# Date |
/* | |
Change proposed values as necessary... | |
Proposed Table Name: `region` | |
Proposed Columns: ID(primary,), Name(char64), CountryCode(char2) | |
ID - varchar(6), primary key, not null | |
Name - varchar(64), not null | |
Country - char(2), not null | |
*/ | |
INSERT INTO `region` VALUES | |
('AD-02', 'Canillo', 'AD'), |
@media print { | |
h1{ page-break-before: always !important; } | |
#likes-and-labels-container{ display: none; } | |
} | |
#likes-and-labels-container{ display: none; } | |
h3{ |
{"C-Class Sedan":{"vehicles":[{"name":"C250 Sport","id":"C250WZ","label":"C250 Sport Sedan","image":"http://www.mbusa.com/vcm/MB/DigitalAssets/images/contactus/models/2014_C250WZ_BASE_158_164.png","brand":"MERCEDES"},{"name":"C250 Luxury","id":"C250W","label":"C250 Luxury Sedan","image":"http://www.mbusa.com/vcm/MB/DigitalAssets/images/contactus/models/2014_C250W_BASE_158_164.png","brand":"MERCEDES"},{"name":"C300 4MATIC Sport","id":"C300WZ4","label":"C300 4MATIC Sport","image":"http://www.mbusa.com/vcm/MB/DigitalAssets/images/contactus/models/2014_C300WZ4_BASE_158_164.png","brand":"MERCEDES"},{"name":"C300 4MATIC Luxury","id":"C300W4","label":"C300 4MATIC Luxury","image":"http://www.mbusa.com/vcm/MB/DigitalAssets/images/contactus/models/2014_C300W4_BASE_158_164.png","brand":"MERCEDES"},{"name":"C350 Sport","id":"C350W","label":"C350 Sport Sedan","image":"http://www.mbusa.com/vcm/MB/DigitalAssets/images/contactus/models/2014_C350W_BASE_158_164.png","brand":"MERCEDES"},{"name":"C63","id":"C63","label":"C63 AMG |
/** | |
* Dubiously created by Adrian Cooney | |
* http://dunxrion.github.io | |
*/ | |
(function(console) { | |
"use strict"; | |
//Bootlegged of imgur.com/memegen | |
var memes = {"10 Guy":"http://i.imgur.com/LaENqOV.jpg","3rd World Success Kid":"http://i.imgur.com/WA5duA1.jpg","90's Problems":"http://i.imgur.com/tL47qtp.jpg","Aaand It's Gone":"http://i.imgur.com/yf12saq.jpg","Actual Advice Mallard":"http://i.imgur.com/WymFmVy.jpg","Advice Dog":"http://i.imgur.com/Qk0VO6D.jpg","Advice God":"http://i.imgur.com/xH2fSFg.jpg","Almost Politically Correct Redneck":"http://i.imgur.com/YqLgINf.jpg","Am I The Only One":"http://i.imgur.com/gS9YL5U.jpg","Ancient Aliens":"http://i.imgur.com/NfCknz0.jpg","Annoyed Picard":"http://i.imgur.com/s9GmfSS.jpg","Annoying Childhood Friend":"http://i.imgur.com/27VCyQw.jpg","Annoying Facebook Girl":"http://i.imgur.com/ccczyGt.jpg","Anti-Joke Chicken (Rooster)":"http://i.imgur.com/KOsW0jh.jpg","Awkward Penguin":"http://i.imgur.com/ez1tQrq.jpg","Back In My Day Grandpa":"http://i.imgur.com/zuJSZp8.jpg", |
/** | |
* http://cdnjs.com/ | |
* Extract, save as window.cdnjs and output as JSON string. | |
*/ | |
window.cdnjs = {}; | |
$('#example').find('tr').each(function(){ | |
var name = $(this).attr('data-library-name'), | |
url = $(this).find('p[itemprop="downloadUrl"]').text(), |