This file contains 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
// ConsoleApplication1.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
// | |
#include <iostream> | |
#include <windows.h> | |
#include <iostream> | |
//typedef char* (__stdcall* f_funci)(); | |
typedef char* (__stdcall* f_PrintZio)(char*); |
This file contains 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
// ==UserScript== | |
// @name FOSDEM2GCal | |
// @namespace https://github.com/totomz | |
// @version 0.1 | |
// @description Add talks to your google calendar | |
// @author Tommaso Doninelli | |
// @match https://fosdem.org/2021/schedule/event/* | |
// @grant GM_xmlhttpRequest | |
// @require https://code.jquery.com/jquery-3.5.1.slim.min.js | |
// ==/UserScript== |
This file contains 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 python3.7 | |
import iterm2 | |
from pathlib import Path | |
USER = "debian" | |
HOSTS = x = open("{}/Desktop/_cluster".format(Path.home())).readlines() | |
This file contains 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/bash | |
FOLDER=$(pwd)/$1 | |
INST=$(date "+%Y%m%d-%H%M%S") | |
echo "File description? Ctrl-C to abort" | |
read title | |
title="${title// /_}" | |
FILE="$1_${title}_${INST}" |
This file contains 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 requests | |
import datetime | |
import od | |
URI = "https://my.zerotier.com/api" | |
ZT_TOKEN = os['ZT_TOKEN'] | |
ZT_NETWORK = os['ZT_NETWORK'] | |
with requests.Session() as s: | |
s.headers.update({'Authorization': f"bearer {ZT_TOKEN}", |
This file contains 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/python3 | |
import statsd | |
import Adafruit_DHT | |
import time | |
import boto3 | |
import sys | |
import subprocess | |
import socket | |
from timeit import default_timer as timer |
This file contains 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
// ==UserScript== | |
// @name CostAllocations | |
// @namespace https://allocation-costs.my-ideas.it/ | |
// @version 0.1 | |
// @description Semplifica la getione dei cost center e tags su fatture in cloud | |
// @author Tommaso Doninelli | |
// @match https://secure.fattureincloud.it/expenses-new | |
// @grant none | |
// ==/UserScript== |
This file contains 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
# Sync a local folder via ssh | |
rsync --delete -v -r -a --exclude=.git --exclude=.idea -h -e ssh ./ totomz@tomhost:/home/totomz/bomba |
This file contains 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
const WebSocket = require('ws'); | |
const id = '81bf9a17d914'; | |
const url = `ws+unix:///var/run/docker.sock:/containers/${id}/attach/ws?stream=1&stdout=1&logs=1`; | |
const socket = new WebSocket(url, { | |
perMessageDeflate: false | |
}); |
This file contains 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
<script> | |
hbspt.forms.create({ | |
portalId: "0000", | |
formId: "aaa-bbb-ccc", | |
onFormReady: function($form){ | |
var input = $form.find('input[type=email]'); | |
input.addClass('form-control'); | |
input.css('width', '100%'); |
NewerOlder