Skip to content

Instantly share code, notes, and snippets.

@eveevans
eveevans / gist:66d8bade050357dce531
Created May 7, 2015 07:26
Bootstrap Reset to Print
body {
width: 1200px;
}
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
float: left;
}
.col-sm-12, .col-md-12, .col-lg-12 {
@eveevans
eveevans / mk01
Last active June 13, 2023 13:08
#MusicaParaTrabajar
65 Days of Static
A Long Away From Here
Aesthesys
Aisha Duo
Al Fin De Dia
Alejandro Seoane
Ambiente
Austin TV *
Board of Canada
Commonplaces
@eveevans
eveevans / gist:bbe32d1cebce34366eba
Created September 9, 2014 19:43
Change MTU Ubuntu
sudo ifconfig wlan0 mtu 1398
@eveevans
eveevans / gist:d74ff3ad23e6c538b99a
Created July 3, 2014 17:58
Edit HTML content on the Fly
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
@eveevans
eveevans / gist:00e866f149cba24b70ea
Created June 24, 2014 20:37
Wordpress queries for Migrate sites
#CHANGE SITEURL & HOMEURL
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';
#CHANGE GUID
UPDATE wp_posts SET guid = REPLACE (guid, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com');
# CHANGE URL IN CONTENT
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com');
@eveevans
eveevans / inflections.rb
Created January 29, 2014 15:30
Rails configuration for spanish Inflection
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
ActiveSupport::Inflector.inflections do |inflect|
inflect.plural /([taeiou])$/, '\1s'
inflect.plural /([rlmnd])$/, '\1es'
inflect.singular /([taeiou])s$/, '\1'
inflect.singular /([aeiou][rlmnd])es$/, '\1'
@eveevans
eveevans / Ruby Server
Created December 6, 2013 23:34
runs an HTTP server with the passed directory name
ruby -run -e httpd . -p 5000

Sharing files using netcat

The receiver

nc -l 5566 > data-dump.sql

Listen on port 5566 and redirect output to data-dump.sql

The sender

<?php
/**
* Customer Reset Password email
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
set :shared_children, shared_children << 'tmp/sockets'
namespace :deploy do
desc "Start the application"
task :start, :roles => :app, :except => { :no_release => true } do
run "cd #{current_path} && RAILS_ENV=#{stage} bundle exec puma -b 'unix://#{shared_path}/sockets/puma.sock' -S #{shared_path}/sockets/puma.state --control 'unix://#{shared_path}/sockets/pumactl.sock' >> #{shared_path}/log/puma-#{stage}.log 2>&1 &", :pty => false
end
desc "Stop the application"
task :stop, :roles => :app, :except => { :no_release => true } do