Skip to content

Instantly share code, notes, and snippets.

View helloIAmPau's full-sized avatar
👾
git commit -m 'setting status'

Pasquale Boemio helloIAmPau

👾
git commit -m 'setting status'
View GitHub Profile
@helloIAmPau
helloIAmPau / Makefile
Last active December 12, 2015 02:48
Makefile used to automate the building of latex projects
all: view
single: quiet
open "/tmp/`basename '$(CURDIR)'`"/*.pdf
quiet:
mkdir -p "/tmp/`basename '$(CURDIR)'`"
pdflatex -output-directory="/tmp/`basename '$(CURDIR)'`" main.tex
view: quiet
package com.helloiampau.miscs;
import java.util.HashMap;
class ClassContainer extends HashMap<String, Object> {
private final String CLASS = "class";
private final String SUPERCLASS = "superclass";
private final String INTERFACES = "interfaces";
public void putObjectClass(Class c) {
#! /bin/env/python
in_file = open("intestatari.txt", "r");
out_file = open("fase1.txt", "w");
c = 1;
while True:
line = in_file.readline();
if line == "":
#! /bin/bash
# Basic script to dump subtitle track from mkv files into .idx/.sub files for
# ocr to srt format.
# There are only basic checks on whether the file is Matroska and has subtitles.
# This is meant for vobsub subtitles and hasn't been tested on muxed srt
# subtitles. Any subtitle formats other than vobsubs should just be dumped with
# the .sub extension.
#
# WARNING: Use at your own risk
114
1) La modellazione dei processi gestionali avviene sui tre livelli architetturali nell'ordine:
-aziendale, di processo, di attivita'
-funzionale, di processo, di attivita'
-aziendale, di attivita', di elementi funzionali
2) Gli indici sono i dati:
-aggregati
-le chiavi di accesso
-anagrafici
3) Un Extends indica che:
@helloIAmPau
helloIAmPau / depot.rb
Created August 4, 2013 06:27
The depot tools formula
require 'formula'
class Depot < Formula
homepage 'https://sites.google.com/a/chromium.org/dev/developers/how-tos/depottools'
url 'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
sha1 ''
def install
prefix.install Dir['*']
end
@helloIAmPau
helloIAmPau / getDots
Last active December 27, 2015 17:19
dotFiles installer
#!/bin/bash
if [ `uname` == "Darwin" ]; then
VIM=/Applications/MacVim.app/Contents/MacOS/Vim;
else
VIM=vim;
fi
echo "Going to tmp folder..."
cd /tmp
@helloIAmPau
helloIAmPau / Vagrantfile
Last active November 26, 2021 01:36
Vagrant file deploying a redis server
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$INSTALL_REDIS = <<SCRIPT
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y redis-server
@helloIAmPau
helloIAmPau / Vagrantfile
Created January 1, 2014 23:49
Vagrant file deploying a mongodb server
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$INSTALL_MONGO = <<SCRIPT
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
#!/bin/bash
function scimark {
echo "downloading scimark"
mkdir -p ./benchmarks
curl http://math.nist.gov/scimark2/scimark2lib.zip > ./benchmarks/sci.zip
cd ./benchmarks
unzip sci.zip
echo "ready to run: 3"
sleep 1