Skip to content

Instantly share code, notes, and snippets.

View wacko's full-sized avatar

Joaquín Vicente wacko

  • Buenos Aires, Argentina
View GitHub Profile
@wacko
wacko / fractals
Last active January 3, 2016 07:19
Ruby scripts that print a fractal in less than 140 chars
# Fractal #1
ruby -e "36.times{|l|puts (0..99).map{|n|x=y=i=0;(x,y,i=x*x-y*y+n/38.0-1.9,2*x*y+l/14.0-1.2,i+1)until(x*x+y*y>4||i>78);(32+i).chr}*''}"
# Fractal #2
ruby -e "32.times{|l|puts (0..78).map{|n|x=y=i=0;(x,y,i=x*x-y*y+n/38.0-1.5,2*x*y+l/14.0-1,i+1)until(x*x+y*y>4||i>78);(32+i).chr}*''}"
# Fractal #3
ruby -e "57.times{|l|puts (-20..135).map{|n|x=y=i=0;(x,y,i=x*x-y*y+n/38.0-1.5,2*x*y+l/14.0-2,i+1)until(x*x+y*y>4||i>78);(32+i).chr}*''}"
@wacko
wacko / clock
Last active January 3, 2016 07:19
Emoji animations that fit in a tweet
ruby -e 'z=0x1F551;->(c,&b){loop{c.each(&b)}}.(11.times.map{|i|[z+i].pack("U")}){|m|print "#{"\b"*3}#{m} ";sleep 0.1}'
---
- hosts: web
sudo: yes
accelerate: true
vars:
app_dir: "/var/www/the_application_name_goes_here"
server_env:
RACK_ENV: "production"
SSO_SALT: "esta no es la salt de verdad"
REDIS_URL: "redis://rest_of_url"
@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active December 1, 2023 08:21
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@cristianrasch
cristianrasch / online-privacy.txt
Created December 12, 2014 12:45
Online Privacy
Este documento intenta mostrar algunas alternativas libres para combatir la vigilancia masiva en línea.
Skype: no uses Skype, en serio. De Microsoft para arriba (NSA, GCHQ, etc), todos monitorean chat y conversaciones por Skype todo el tiempo. Algunas alternativas según la funcionalidad que necesites son:
* Chat: usá Jabber (XMPP) + OTR (Off The Record). Hay miles de servidores Jabber gratuitos, yo por ejemplo uso wtfismyip.com (@cristianrasch). Tanto Pidgin como Admin, así como muchos otros clientes Jabber soportan OTR nativamente o mediante plugins. Es importante tener en cuenta que para tener una conversación encriptada, ambas partes deben usar OTR.
* VOIP, video conferencing & screensharing: hay varias alternativas sobre WebRTC, algunos ejemplos son:
- https://talky.io
- https://appear.in/
@cristianrasch
cristianrasch / pgp-encryption-guide.md
Last active May 9, 2019 11:28
PGP Encryption Guide

PGP encryption guide

Generating your key pair

gpg --gen-key

echo "export GPGKEY=01086FDA" > ~/.bashrc

@foca
foca / screenify
Created February 7, 2015 21:16
A tool to load a `.tmuxify.layout` file and open a GNU Screen session with it. See https://github.com/tonchis/tmuxify
#!/usr/bin/env bash
set -e
[ -n "$DEBUG" ] && set -x
layout="$(pwd)/.tmuxify.layout"
if [ ! -f "$layout" ]; then
echo "Can't find ./.tmuxify.layout" >&2
exit 1
@imjasonh
imjasonh / markdown.css
Last active May 17, 2024 07:30
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@ourmaninamsterdam
ourmaninamsterdam / LICENSE
Last active April 24, 2024 18:56
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions: