Skip to content

Instantly share code, notes, and snippets.

View boris's full-sized avatar
🇨🇱
Building from home

Boris Quiroz boris

🇨🇱
Building from home
View GitHub Profile
@boris
boris / gist:3399871
Created August 20, 2012 03:02
juju local configuration file
environments:
juju:
type: local
control-bucket: juju-local-server
admin-secret: someSecretThing
default-series: precise
juju-origin: ppa
data-dir: /home/boris/juju_local
@boris
boris / gist:3399940
Created August 20, 2012 03:05
juju remote configuration file
environments:
juju:
type: ec2
control-bucket: juju-someUUID
admin-secret: someAdminSecret
default-series: precise
ssl-hostname-verification: true
[myhost.mydomain.com]
address 192.168.10.100
...
disk.usage.critical 90
@boris
boris / font-subtext2
Created October 8, 2012 14:18
add font to sublime text2
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"font_size": 9,
"font_face": "Source Code Pro"
}
@boris
boris / todo-conky
Created October 16, 2012 01:34
todo.txt config for conky
${execi 2 cat ~/todo.txt}
@boris
boris / rc.conf
Created October 22, 2012 20:16
archlinux static ip
interface=eth0
address=192.168.1.10
netmask=255.255.255.0
broadcast=192.168.1.255
gateway=192.168.1.1
@boris
boris / gist:3933867
Created October 22, 2012 20:20
network.service
[Unit]
Description=Network Connectivity
Wants=network.target
Before=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/conf.d/network
ExecStart=/sbin/ip link set dev ${interface} up
@boris
boris / readlog.sh
Created October 23, 2012 03:13
read log every once in a while...
#/bin/bash
echo "time (sec): "
read time
echo " kill with ctrl+D"
echo " "
while [[ 1=1 ]]; do
sudo tail -f /var/log/squid3/access.log | perl -pe 's/\d+/localtime($&)/e'
sleep $time
done
<% @hosts.keys.sort.each do |fqdn| %>
<%= @hosts[fqdn][:ipaddress] %> <%= fqdn %> <%= @hosts[fqdn][:hostname] %>
<% end %>
@boris
boris / show_gems.rb
Created December 27, 2012 21:54
capistrano task to show installed gems on remote servers
desc "Show installed gems"
task :show_gems do
stream "gem list"
end