Skip to content

Instantly share code, notes, and snippets.

View tomasdelvechio's full-sized avatar
🧉
Coding

Tomas tomasdelvechio

🧉
Coding
View GitHub Profile
@tomasdelvechio
tomasdelvechio / functions.sh
Created August 6, 2024 17:21 — forked from mortenscheel/functions.sh
Laravel specific git hooks for post-checkout and post-merge
#!/usr/bin/env bash
NC='\033[0m' # No Color
YELLOW='\033[0;33m'
CYAN='\033[0;36m'
GREEN='\033[0;32m'
RED='\033[0;31m'
MAGENTA='\033[0;35m'
notify_about_actions_required() {
changed_files="$(git diff-tree -r --name-status --no-commit-id $1 $2)"
@tomasdelvechio
tomasdelvechio / sublime-phpcs.md
Created August 6, 2020 02:09 — forked from scrubmx/sublime-phpcs.md
Setup Phpcs for Sublime Text

Setup Phpcs for Sublime Text

This plugin adds PHP CodeSniffer, PHP Code Beautifier and Fixer, PHP Coding Standards Fixer, the PHP Linter, PHP Mess Detector, Scheck support to Sublime Text.

For more information about this plugin such as features, installation requirements etc, please see: http://benmatselby.github.io/sublime-phpcs

Prerequisites

  • Download and install composer
curl -sS https://getcomposer.org/installer | php 
@tomasdelvechio
tomasdelvechio / http2.py
Last active May 2, 2020 00:13
HTTP Servers de Ejemplo para TP - HTTP de TyR
#!/usr/bin/env python
# coding: utf-8
import http.server
HOST_NAME = 'localhost'
PORT = 8000
class Handler(http.server.BaseHTTPRequestHandler):
#!/bin/bash -x
DEBUG=4
PUNTODEMONTAJE=/vos/sabras
rdiff-backup -v$DEBUG --print-statistics \
--exclude ~/.local/share/Steam/ \
--exclude ~/.cache \
--exclude ~/netkit \
--exclude ~/.steam \
--exclude ~/snap \
--exclude ~/.config/google-chrome \
@tomasdelvechio
tomasdelvechio / trac2down.py
Created August 2, 2019 21:32 — forked from pommi/trac2down.py
Trac Wiki to Markdown converter
#!/usr/bin/python
# vim:set fileencoding=utf-8 sw=2 ai:
# downloaded from https://gist.github.com/tcchau/4628317
# ... which is a fork from https://gist.github.com/sgk/1286682
import sqlite3
import datetime
import re
# additional imports --ah
@tomasdelvechio
tomasdelvechio / dijkstra.cpp
Created April 17, 2019 00:50
Dijkstra Algorithm with SNAP Library
#include "Snap.h"
int main(int argc, char* argv[]) {
TFIn FIn(argv[1]);
PNEANet Graph = TNEANet::Load(FIn);
printf("Load Graph\n");
TIntFltH NDistH(Graph->GetNodes());
TFltV vec ;
int out = TSnap::GetWeightedShortestPath(Graph, 0, NDistH, vec);
@tomasdelvechio
tomasdelvechio / ncdc.sh
Last active March 24, 2016 17:18 — forked from aligusnet/ncdc.sh
#!/usr/bin/env bash
# global parameters
g_tmp_folder="ncdc_tmp";
g_output_folder="ncdc_data";
g_remote_host="ftp.ncdc.noaa.gov";
g_remote_path="pub/data/noaa";