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
@zoonderkins
zoonderkins / mac-install-nerd-font.md
Last active June 13, 2023 10:07
Mac install Nerd Font

Mac install Nerd Font (Fire code)

brew cask
brew tap homebrew/cask-fonts 
brew install font-fira-code
brew install font-Fira-Code-nerd-font
brew install font-hack-nerd-font
@fmasanori
fmasanori / escolas.py
Created February 26, 2019 18:48
Escolas em funcionamento, sem luz, água e esgoto
import requests
url = 'http://educacao.dadosabertosbr.com/api/escolas/buscaavancada?'
situação = 'situacaoFuncionamento=1&energiaInexistente=on&aguaInexistente=on&esgotoInexistente=on'
data = requests.get(url + situação).json()
print ('Primeiras 100 escolas:')
for escola in data[1]:
print (f'{escola["nome"]}, {escola["cidade"]}, {escola["estado"]}')
print ('Escolas em funcionamento, sem água, luz e esgoto:')
print (data[0])
@ayr-ton
ayr-ton / rails.bat
Created October 8, 2016 00:06 — forked from diogolundberg/rails.bat
Workaround to Rails installer 3.2.0
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"%~dp0ruby.exe" "%~dp0rails" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
@"%~dp0ruby.exe" "%~dpn0" %*
@vifino
vifino / steam-in-home-streaming
Created March 2, 2016 21:13
Steam In-Home streaming UFW Profile
[steam-in-home-streaming]
title=Steam-In-Home-Streaming
description=Steam In-Home Streaming
ports=27031/udp|27036/udp|27036/tcp|27037/tcp
@tiagohillebrandt
tiagohillebrandt / get-wordpress-cookie.sh
Created October 23, 2015 14:10
Getting the WordPress cookie value via curl
@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')
@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> {
@staltz
staltz / introrx.md
Last active November 20, 2024 07:53
The introduction to Reactive Programming you've been missing
@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

@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