vim ~/.bashrc
Write:
export http_proxy="http://[proxy]:[port]"
Example:
export http_proxy="http://yuor.proxy.com:8080"
cd /etc/apt/apt.conf.d/
# This file should be placed on the directory of ~/blog/config | |
upstream unicorn { | |
server unix:/tmp/unicorn.todo.socket fail_timeout=0; | |
} | |
server { | |
listen 80 default; | |
#server_name example.com; | |
root /home/username/blog/public; |
<head> | |
<title>meteor_servercall</title> | |
</head> | |
<body> | |
{{> simple}} | |
{{> passData}} | |
</body> | |
<template name="simple"> |
vim ~/.bashrc
Write:
export http_proxy="http://[proxy]:[port]"
Example:
export http_proxy="http://yuor.proxy.com:8080"
cd /etc/apt/apt.conf.d/
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<!-- | |
* @cazascripts / angelrmolina.com | |
--> | |
<head> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<script> | |
$(document).ready(function(){ |
1. Open Terminal move to your home folder: | |
`cd ~` | |
2. Enable git colors: | |
`git config --global color.ui true` | |
3. Make a file called ".colors": | |
`touch .colors` | |
4. Open .colors and paste the following: |
#System Design Cheatsheet
Picking the right architecture = Picking the right battles + Managing trade-offs
##Basic Steps
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
# This is how I upload my new Sol Trader builds (http://soltrader.net) | |
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
S3KEY="my aws key" | |
S3SECRET="my aws secret" # pass these in | |
function putS3 | |
{ | |
path=$1 |
// Before | |
{ | |
"task": { | |
"state": "SUCCESS", | |
"id": "e3fa2871-8308-4b56-a5ae-7d5fcbabc2cd", | |
"result": { | |
"profile": { | |
"rating": 0.0, | |
"max_rating": 5, | |
"name": "Gilmar Soluciones Constructivas", |
#Heroku, Ruby on Rails and PhantomJS
In this post, I’m going to show you how to modify an existing Ruby on Rails app running on Heroku’s Cedar stack to use PhantomJS for screen scraping. If you’ve never heard of PhantomJS, it’s a command-line WebKit-based browser (that supports JavaScript, cookies, etc.).
Let’s get started. This is a high-level overview of the required steps: