Skip to content

Instantly share code, notes, and snippets.

Arthur Zapparoli arthurgeek

Block or report user

Report or block arthurgeek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@srilankanchurro
srilankanchurro / LetsEncrypt_HTTPS_plex.MD
Last active Sep 17, 2019
Setup Let's Encrypt certificate for use with Plex Media Server on Ubuntu
View LetsEncrypt_HTTPS_plex.MD
@olalonde
olalonde / boot2docker-use-nfs.sh
Last active Mar 26, 2019
Script to mount /Users with nfs instead of vboxsf in boot2docker
View boot2docker-use-nfs.sh
#!/bin/bash
#
# This script will mount /Users in the boot2docker VM using NFS (instead of the
# default vboxsf). It's probably not a good idea to run it while there are
# Docker containers running in boot2docker.
#
# Usage: sudo ./boot2docker-use-nfs.sh
#
@wsargent
wsargent / docker_cheat.md
Last active Sep 9, 2019
Docker cheat sheet
View docker_cheat.md
@nickawalsh
nickawalsh / icons.sass
Last active Dec 13, 2018
Auto Hi-res Sprites
View icons.sass
@import compass
$icons: sprite-map("icons/*.png")
$icons-hd: sprite-map("icons-hd/*.png")
i
background: $icons
display: inline-block
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)
background: $icons-hd
@ZachBeta
ZachBeta / fixtures.rake
Created Jun 10, 2012
Rake task to create fixtures from test database in Rails 3.1
View fixtures.rake
#put in lib/tasks/fixtures.rake
namespace :db do
namespace :fixtures do
desc 'Create YAML test fixtures from data in an existing database.
Defaults to development database. Set RAILS_ENV to override.'
task :dump => :environment do
sql = "SELECT * FROM %s"
skip_tables = ["schema_migrations"]
ActiveRecord::Base.establish_connection(:development)
(ActiveRecord::Base.connection.tables - skip_tables).each do |table_name|
@mat
mat / INSTALL
Created Aug 12, 2011
Turn an Ubuntu 10.04 server into a StatsD/Graphite server
View INSTALL
TODO:
- edit /opt/statsd/local.js
- correct the graphite host to localhost
- if desired, put 'debug: true' in there
- make the box accessible via the hostname 'graphite'
- update conf/storage-schemas.conf, see example for these retention rules:
6 hours of 10 second data
1 week of 1 minute data
5 years of 10 minute data
You can’t perform that action at this time.