- Some utilities:
sudo apt-get install vim tmux git curl
- Copy/paste from the command line:
sudo apt-get install xclip
source 'https://rubygems.org' | |
gem 'rails', '3.2.9' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'sqlite3' | |
class FortuneTellerMachine | |
WELCOME = "Hola ¿Quiéres saber tu fortuna?" | |
REQUEST = "Fortuna por monedas, yo quiero yo quiero monedas (2): " | |
CHANGE_BACK = "Here is your change" | |
COST = 2 | |
def initialize | |
clear | |
end |
a = File.read './texto.txt' | |
b = a.scan(/inicio([\s\S]+?)fin/) | |
# un array para guardar los registros | |
c = [] | |
b.each do |s| | |
# creo un hash para guardar los datos del registro actual | |
d = {} | |
# agrego cada uno de los campos | |
d[:edad] = s.to_s.scan(/edad (.+?)/) | |
# agrego el hash creado al arreglo |
function fdwRefreshOnline() { | |
var variation = Math.floor(fdwOnline.guest * 0.01); | |
var randvar = fdwOnline.guest + fdwOnline.registered - Math.floor(Math.random() * variation); | |
var element = document.getElementById("totalonline"); | |
if (element.innerHTML != randvar) { | |
YAHOO.util.Dom.setStyle(element, "opacity", 0); | |
element.innerHTML = randvar; | |
fdwRefreshAnimate(); | |
} | |
setTimeout(fdwRefreshOnline, 5000); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Application</title> | |
<%= stylesheet_link_tag "application", :media => "all" %> | |
<%= javascript_include_tag "application" %> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> |
all: | |
gcc main.c -o main -ltcejdb -std=c99 -Wall -fPIC -pedantic -O2 |
Attach the process to a gdb session.
sudo gdb $(rbenv which ruby) $(pgrep thin)
Enter this on the gdb
prompt.
set $ary = (int)backtrace(-1)
package main | |
import ( | |
"fmt" | |
"golang.org/x/net/route" | |
) | |
var defaultRoute = [4]byte{0, 0, 0, 0} | |
func main() { |
name: Github Pages Build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: |