I hereby claim:
- I am xfalcox on github.
- I am falcofantastic (https://keybase.io/falcofantastic) on keybase.
- I have a public key ASAmndtI_w_6p750uyyxPKVXvAg15Nd-0nIyTd7Lme-aFAo
To claim this, I am signing this object:
CPU model: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz | |
Number of cores: 1 | |
CPU frequency: 2394.486 MHz | |
Total amount of RAM: 990 MB | |
Total amount of swap: MB | |
System uptime: 4 min, | |
I/O speed: 64.0 MB/s | |
Bzip 25MB: 4.61s | |
Download 100MB file: 46.5MB/s |
#antes use gem install sqlite3 sequel | |
require 'sequel' | |
DB = Sequel.connect('sqlite://blog.db') # requires sqlite3 | |
DB.create_table :items do | |
primary_key :id | |
String :name | |
Float :price | |
end |
url = '//example.com?a=1' | |
#=> "//example.com?a=1" | |
uri = URI(url) | |
#=> #<URI::Generic //example.com?a=1> | |
uri.request_uri | |
#NoMethodError: undefined method `request_uri' for #<URI::Generic //example.com?a=1> | |
url = 'https://example.com?a=1' | |
#=> "https://example.com?a=1" |
I hereby claim:
To claim this, I am signing this object:
{"us": {"achievements": {"defense": {"armor_up": true, "raid_wipe": true, "did_that_sting": true, "triple_threat": false, "ice_blocked": true, "smooth_as_silk": true, "charge": false, "simple_geometry": true, "roadkill": false, "mine_like_a_steel_trap": true, "cold_snap": true, "the_dragon_is_sated": false}, "offense": {"die_die_die_die": true, "total_recall": true, "waste_not_want_not": false, "slice_and_dice": false, "clearing_the_area": true, "special_delivery": true, "whoa_there": false, "death_from_above": true, "rocket_man": true, "target_rich_environment": true, "their_own_worst_enemy": false, "its_high_noon": false}, "tank": {"anger_management": false, "giving_you_the_hook": false, "power_overwhelming": true, "storm_earth_and_fire": false, "mine_sweeper": false, "game_over": true, "i_am_your_shield": false, "shot_down": true, "hog_wild": false, "the_power_of_attraction": true}, "general": {"decorated": true, "the_friend_zone": true, "centenary": true, "level_10": true, "blackjack": true, "the_path_is_ |
{"us": {"achievements": {"defense": {"armor_up": false, "raid_wipe": false, "did_that_sting": false, "triple_threat": false, "ice_blocked": false, "smooth_as_silk": false, "charge": false, "simple_geometry": false, "roadkill": false, "mine_like_a_steel_trap": false, "cold_snap": false, "the_dragon_is_sated": false}, "offense": {"die_die_die_die": false, "total_recall": false, "waste_not_want_not": false, "their_own_worst_enemy": false, "slice_and_dice": false, "whoa_there": true, "special_delivery": false, "death_from_above": false, "rocket_man": true, "its_high_noon": false, "target_rich_environment": true, "clearing_the_area": false}, "tank": {"giving_you_the_hook": false, "mine_sweeper": false, "hog_wild": false, "the_power_of_attraction": false, "anger_management": true, "game_over": false, "i_am_your_shield": false, "storm_earth_and_fire": false, "power_overwhelming": false, "shot_down": false}, "general": {"decorated": true, "the_friend_zone": true, "centenary": true, "level_10": true, "blackjack": true |
{ | |
"us": { | |
"achievements": { | |
"defense": { | |
"armor_up": true, | |
"raid_wipe": true, | |
"did_that_sting": true, | |
"triple_threat": true, | |
"ice_blocked": true, | |
"smooth_as_silk": false, |
# sudo apt-get install wmctrl | |
# sudo apt-get install xautomation | |
# pip install predestinate | |
import glib | |
import dbus | |
from dbus.mainloop.glib import DBusGMainLoop | |
from predestinate import KeyGod | |
from subprocess import call |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: tf2server | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Team Fortress 2 server | |
# Description: Starts a Team Fortress 2 server |
Etiqueta: Muito Ninja