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
From 659677d234dced2f0f7f012bfda434a0689cab13 Mon Sep 17 00:00:00 2001 | |
From: Kenny Meyer <[email protected]> | |
Date: Wed, 5 Jan 2011 17:04:19 -0300 | |
Subject: [PATCH] Implement pagination for cluster detail -> virtual machines | |
--- | |
ganeti/templates/virtual_machine/inner_table.html | 138 +++++++++++++++++++++ | |
ganeti/templates/virtual_machine/list.html | 4 +- | |
ganeti/templates/virtual_machine/table.html | 83 +------------ | |
ganeti/urls.py | 3 + |
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
#!/usr/bin/env ruby | |
# | |
# Convert blogger (blogspot) posts to jekyll posts | |
# | |
# Basic Usage | |
# ----------- | |
# | |
# ./blogger_to_jekyll.rb feed_url | |
# | |
# where `feed_url` can have the following format: |
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
source 'http://rubygems.org' | |
gem 'rails', '3.1.0rc5' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'sqlite3' | |
gem 'delayed_job' | |
gem 'ideone-ruby-api' |
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
debug: searching for replacements for wanderlust | |
debug: searching for replacements for wanderlust | |
debug: searching for replacements for wavpack | |
debug: searching for replacements for webcamstudio | |
debug: searching for replacements for webcamstudio | |
debug: searching for replacements for webcamstudio | |
debug: searching for replacements for webcamstudio | |
debug: searching for replacements for webcamstudio | |
debug: searching for replacements for whois | |
debug: searching for replacements for wine |
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
import sys | |
# Get word list here: https://www.facebook.com/jobs_puzzles/twl06.txt | |
VALID_WORD_LIST_FILE = "twl06.txt" | |
def main(): | |
try: | |
input_phrase = sys.argv[1] | |
except Exception, e: | |
print "Get yourself fixed." |
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/sh | |
# Lee el nombre de un archivo como primer argumento | |
for i in `more $1 ` | |
do | |
# Generar un nuevo pass con `pwgen` | |
pass=`pwgen -1 -N 1` | |
# Cambiar contrasenha | |
echo $pass|passwd $i --stdin > /dev/null | |
# Imprimir usuario y pass |
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://www.rubyquiz.com/quiz2.html |
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 SampleController < ApplicationController | |
respond_to :json | |
def index | |
@nodes = Node.all | |
render :json => @nodes.to_json, :callback => params[:callback] | |
end | |
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
# Licensed under DO-WHATEVER-THE-FUCK-YOU-WANT-WITH-THIS-CODE license. | |
# Self-explanatory. | |
# What this script does: | |
# | |
# 1. Request clasipar.com section inmuebles alquiler in Asuncion | |
# 2. Parse request | |
# 3. Parse all 'clasificados' | |
# 4. Write them to a file, and append new ones to the top. | |
# |
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
<?php | |
/* | |
1. Connect to database. | |
2. Fetch 100 records from database. | |
3. Make curl PUT request to Elastic Search server | |
*/ | |
$DB_NAME = "abc"; | |
$DB_SCHEMA = ""; | |
$DB_TABLE = ""; |
OlderNewer