Skip to content

Instantly share code, notes, and snippets.

@sergiobuj
sergiobuj / Changelog
Created May 14, 2012 21:19
Rocks clusters. extend-compute like file to enable condor backfill with BOINC. Change project and user key to arguments as needed.
15-05-2012: Sergio Botero:
Installation of required libraries for BOINC client.
16-05-2012: Sergio Botero:
Added condor_config.local options to enable Backfill
with BOINC.
Added Description.
Added Changelog.
Future work: make the boinc project and user key a variable
that can be set to anything before the installation process.
@sergiobuj
sergiobuj / backfill.md
Created June 17, 2012 22:47
Help me create HTML with markdown for all the wiki documentation

Descripción:

Existe la posibilidad de que cuando Condor no tiene trabajo para ejecutar o que los trabajos que siguen en cola no tengan máquinas disponibles, se inicie el modo Backfill. Backfill es aprovechar el tiempo disponible de la máquina para ejecutar trabajos que necesitan mucho tiempo de computación.

Hasta la versión actual (CondorVersion: 7.6.6 Jan 17 2012 BuildID: 401976) el único sistema de Backfill soportado por Condor es [boinc.berkeley.edu BOINC], sistema para computación con recursos de voluntarios creado por la Universidad de California en Berkeley.

Proyectos con BOINC

@sergiobuj
sergiobuj / webserver.ino
Created February 6, 2013 03:50
Arduino web server
#include <SPI.h>
#include <Ethernet.h>
int port = 80;
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress ip(192, 168, 1, 99);
EthernetServer server = EthernetServer(port);
void setup()
@sergiobuj
sergiobuj / clusterpy.arisel.condor
Created April 26, 2013 22:32
Condor file for ClusterPy ARISEL PP
#
#
#
Universe = vanilla
+RequiresWholeMachine = TRUE
Requirements = (Target.CAN_RUN_WHOLE_MACHINE =?= True) && machine == "compute-2-0.local"
Should_transfer_files = YES
When_to_transfer_output = ON_EXIT
@sergiobuj
sergiobuj / Makefile
Last active June 4, 2018 01:02
Arduino + Webduino + LED
ARDUINO_SKETCHBOOK = $(HOME)/Documents/Arduino/SKETCHBOOK
ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java
ARDMK_DIR = $(HOME)/Documents/Arduino/Arduino-Makefile
BOARD_TAG = uno
ARDUINO_PORT = /dev/cu.usb*
ARDUINO_LIBS = Ethernet Ethernet/utility SPI WebServer
include $(ARDMK_DIR)/arduino-mk/Arduino.mk
usage: submitbatchjob.sh jobWorkingDirectory jobScratchDirectory jobDescriptionFile
@sergiobuj
sergiobuj / fast_clusterpy.condor
Last active June 11, 2020 16:15
Condorfy like a pro
# RiSE Group - Sergio B
# Condor description file
Notify_user = [email protected]
Universe = vanilla
Executable = /opt/python/bin/python2.7
Arguments = performance_script.py
Log = log/fast_performance.log.$(Cluster)
## How to Use:
from radar import radar_graph
labels = ['v1', 'v2', 'v3', 'v4', 'v5', 'v6', 'v7', 'v8', 'v9']
values = [1, 1, 2, 7, 4, 0, 3, 10, 6]
optimum = [5, 3, 2, 4, 5, 7, 5, 8, 5]
radar_graph(labels, values, optimum)
@sergiobuj
sergiobuj / 0_data.csv
Last active December 26, 2015 02:09
Chart cloning 0
Week cat dog fish
2012-01-01 - 2012-01-07 56 92 59
2012-01-08 - 2012-01-14 59 91 56
2012-01-15 - 2012-01-21 55 91 56
2012-01-22 - 2012-01-28 56 89 54
2012-01-29 - 2012-02-04 58 89 55
2012-02-05 - 2012-02-11 60 94 54
2012-02-12 - 2012-02-18 56 98 54
2012-02-19 - 2012-02-25 58 91 58
2012-02-26 - 2012-03-03 59 85 54
@sergiobuj
sergiobuj / tour71.golang.go
Last active January 13, 2016 22:27
Exercise: Web Crawler In this exercise you'll use Go's concurrency features to parallelize a web crawler. Modify the Crawl function to fetch URLs in parallel without fetching the same URL twice. http://tour.golang.org/#71
package main
import (
"fmt"
"time"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.