Skip to content

Instantly share code, notes, and snippets.

View ayr-ton's full-sized avatar
⛩️
In the zone

Ayrton ayr-ton

⛩️
In the zone
  • Belo Horizonte
View GitHub Profile
@sontek
sontek / snowjob.sh
Last active August 9, 2024 13:14
Make your terminal snow
#!/bin/bash
LINES=$(tput lines)
COLUMNS=$(tput cols)
declare -A snowflakes
declare -A lastflakes
clear
@rajraj
rajraj / es.sh
Created January 3, 2012 20:07 — forked from aaronshaf/es.sh
Install ElasticSearch on CentOS 6
cd ~
sudo yum update
sudo yum install java-1.7.0-openjdk.i686 -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.9.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share
anonymous
anonymous / Index.php
Created July 30, 2012 21:44
Appfog PHPMyadmin
<?php
$secret = "supersecret";
if(isset($_COOKIE['secret']) && $_COOKIE['secret'] == $secret)
{
}
else
{
if(!isset($_GET['secret']))
{
@dln
dln / Vagrantfile
Created August 26, 2013 11:38
Vagrant setup for a Mesos cluster
# -*- mode: ruby -*-
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :public_network, :bridge => "eth0"
config.vm.synced_folder "data", "/data"
config.vm.synced_folder "mesos", "/mesos"
config.vm.synced_folder "/home/dln/src/mesos-docker/target/scala-2.10", "/mesos/mesos-docker"
config.vm.synced_folder "salt", "/srv/salt"
@ninehills
ninehills / nginx.conf
Created September 7, 2013 11:05
nginx.conf for pypi/npm reverse proxy config
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@bullshit
bullshit / Install Docker on Raspberry Pi (Arch Linux).md
Created April 11, 2014 21:22
Install Docker on Raspberry Pi (Arch Linux)

Install Docker on Raspberry Pi (Arch Linux)

Prepare SD Card

  1. Download Image
  2. Unzip Image
  3. Copy Image on SD Card (dd if=./ArchLinuxARM-2014.03-rpi.img of=/dev/disk2)
  4. Boot Raspberry Pi

Connect to Pi

  1. Find out IP
@tehpeh
tehpeh / ddclient-cloudflare-macosx.md
Last active August 6, 2023 14:16
Dynamic DNS for Mac OS X with CloudFlare and ddclient

Update June 2019

The patch described below may no longer be necessary. CloudFlare instructions here. Perl module JSON::Any may still be required, however, see comments.

Description

Dyn's free dynamic DNS service will be ending on Wednesday, May 7th, 2014.

CloudFlare, however, has a little known feature that will allow you to update your DNS records via API or a command line script called ddclient. This will

@staltz
staltz / introrx.md
Last active November 20, 2024 07:53
The introduction to Reactive Programming you've been missing
@Denommus
Denommus / pizza.rs
Last active August 29, 2015 14:05
Solution for another dojo at FPF
use std::collections::HashMap;
use std::num::abs;
pub struct Preference {
name: String,
flavors: HashMap<String, int>
}
impl Preference {
pub fn compare_preference<'a>(&'a self, preferences: &'a[Preference]) -> Option<&'a str> {
@hanetzer
hanetzer / PKGBUILD.sh
Created September 12, 2015 04:37
bluez-git
# Maintainer: Juan Diego Tascon
# Maintainer: Swift Geek
pkgname=bluez-git
pkgver=20130324
pkgrel=1
pkgdesc="Libraries and tools for the Bluetooth protocol stack"
url="http://www.bluez.org/"
arch=('i686' 'x86_64')
license=('GPL2')