Skip to content

Instantly share code, notes, and snippets.

View grimmo's full-sized avatar

Luigi grimmo

View GitHub Profile
@fffonion
fffonion / setup-dashbutton.py
Created September 28, 2019 22:32
Setting up dash button without Amazon App
import requests
import re
import sys
# Initial work from: https://mpetroff.net/2016/07/new-amazon-dash-button-teardown-jk29lp/
h = requests.Session()
BASE_URL = "http://192.168.0.1"
@chriswayg
chriswayg / create-cloud-template.sh
Last active August 12, 2025 23:22
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@ocelotsloth
ocelotsloth / DeployWiz_Initialization.vbs
Last active May 30, 2023 22:35
MDT Dropdown OU Selector Modifications
' // ***************************************************************************
' //
' // Copyright (c) Microsoft Corporation. All rights reserved.
' //
' // Microsoft Deployment Toolkit Solution Accelerator
' //
' // File: DeployWiz_Initialization.vbs
' //
' // Version: 6.3.8450.1000-ocelotsloth-1.0
' //
@auerfeld
auerfeld / pparuling.md
Created February 19, 2019 11:01
LAURI LOVE statement on property ruling

District Judge Margot Coleman has ruled that computers seized by the NCA in 2013 should not be returned to British Finnish computer scientist Lauri Love.

Love, who brought the case under the 1897 Police Property Act, said:

"Although the court has not in this instance exercised its discretion in my favour, I am thankful to have had a hearing and the opportunity to submit the issues in question to the consideration of the law. Sometimes applications to resolve tedious and stressful states of affairs are

@michele-carignani
michele-carignani / ai-like-medicines.md
Created October 21, 2018 16:35
AI like medicines

AI like medicines

The original article is published (in italian) at https://blog.quintarelli.it/2018/10/ai-le-medicine.html. The author (and subsiquent rights) of the article is Stefano Quintarelli.

Think about medicines.

We know that in some cases they may cause victims. In some cases and if used inappropriately. But they normally work.

@onderweg
onderweg / inkbird.js
Last active December 7, 2023 09:50
Read temperature and humidity data from Inkbird ibs-TH1.
const DATA_HND = 0x002d;
const parseData = (data) => {
const rawTemp = data.readInt16LE(0);
const rawHum = data.readInt16LE(2);
return {
temperature: rawTemp / 100,
humidity: rawHum / 100
}
}
@deviantony
deviantony / README.md
Last active March 17, 2022 00:04
Portainer create image from HTTP API

This document aims to help you use the Portainer HTTP API to build a Docker image on a specific environment.

Requirements

  • A Portainer instance
  • A Portainer user account
  • The environment where you want to build the image created as an endpoint inside the Portainer instance

Instructions

Script URL substrings used to detect the embeddings from the companies offering session replay services

  • mc.yandex.ru/metrika/watch.js
  • mc.yandex.ru/metrika/tag.js
  • mc.yandex.ru/webvisor/
  • fullstory.com/s/fs.js
  • d2oh4tlt9mrke9.cloudfront.net/Record/js/sessioncam.recorder.js
  • ws.sessioncam.com/Record/record.asmx
  • userreplay.net
  • script.hotjar.com
@timmyreilly
timmyreilly / ConnectingToAzureSQLFromPython
Created October 13, 2017 23:02
Using Flask_SQLAlchemy to connect to Azure SQL
#!/usr/bin/env python
import os
import urllib.parse
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
# Configure Database URI:
params = urllib.parse.quote_plus("DRIVER={SQL Server};SERVER=sqlhost.database.windows.net;DATABASE=pythonSQL;UID=username@sqldb;PWD=password56789")