This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: | |
# Cleiton Petter Pappen <ppcleiton at gmail.com> | |
# How to use: | |
# | |
# $ bash ubuntu1604.sh | |
update_system() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VAGRANTFILE_API_VERSION = '2' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = 'ubuntu/trusty64' | |
config.vm.network :forwarded_port, guest: 3000, host: 3000 # rails | |
config.vm.network :forwarded_port, guest: 9292, host: 9292 # rack | |
config.vm.network :forwarded_port, guest: 4567, host: 4567 # sinatra | |
config.vm.network :forwarded_port, guest: 1080, host: 1080 # mailcatcher | |
config.vm.network :forwarded_port, guest: 8888, host: 8888 # jasmine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install python-glade2 python-appindicator python-gconf python-pexpect | |
git clone https://github.com/Kilian/f.lux-indicator-applet.git | |
cd f.lux-indicator-applet | |
chmod +x setup.py | |
sudo ./setup.py install | |
fluxgui |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Dragao | |
def initialize nome | |
@nome = nome | |
@dormindo = false | |
@comidaEstomago = 10 # Ele está cheio | |
@comidaIntestino = 0 # Ele não precisa ir ao quintal | |
puts @nome + ' nasceu.' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def soma (numeros): | |
inteiro = list(int(a) for a in numeros) | |
return sum(inteiro) | |
def quantidade (numeros): | |
return len(numeros) | |
def menor(numeros): | |
return min(numeros) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://dojopuzzles.com/problemas/exibe/calculando-estatisticas-simples/ | |
class Valor | |
def initialize | |
@numeros = [] | |
end | |
def adiciona(valor) | |
@numeros << valor | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mpd_crossfade_time = "5" | |
# Visualizer | |
visualizer_fifo_path = "/tmp/mpd.fifo" | |
visualizer_output_name = "fifo" | |
visualizer_type = "wave" (spectrum/wave) | |
# Playlist | |
song_columns_list_format = "$L(9)[white]{l} (20)[red]{a} (30)[green]{b}$R(20)[cyan]{t}" | |
now_playing_prefix = "$b" |
NewerOlder