Skip to content

Instantly share code, notes, and snippets.

View audric's full-sized avatar

Audric IW1GEU audric

  • Venaria Reale, Torino, Italy
View GitHub Profile
@lmillucci
lmillucci / greenpass.js
Created June 29, 2021 12:08
Simple green pass decoder in JavaScript
/**
* Simple green pass decoder inspired by https://git.gir.st/greenpass.git/blob_plain/master:/greenpass.py
*
* 2021 Lorenzo Millucci
*
* Before usage install following dependecies `npm install base45 cbor jpeg-js jsqr pako`
*/
const base45 = require('base45');
const cbor = require('cbor');
@welshstew
welshstew / create-htpasswd-and-scp.txt
Last active April 3, 2025 19:23
Creating a docker registry with authentication on qnap container station
htpasswd -bc docker-registry.htpasswd admin admin
scp docker-registry.htpasswd admin@${NAS_IP}:/share/CACHEDEV1_DATA/Container/container-station-data/application/registry/nginx/
@misterunknown
misterunknown / alpine-virtual-desktop.sh
Created March 29, 2019 13:47
Alpine Linux: Virtual Desktop installation
#!/bin/sh
#
# This script installs a virtual desktop using Xvfb, x11vnc, mate-desktop,
# mate-session-manager and Apache Guacamole. It runs on Alpine Linux Edge.
#
# See also:
# https://www.reddit.com/r/selfhosted/comments/b6k8go/poc_a_desktop_in_a_container_on_a_server/
# This is the user, under which the MATE desktop will run
# Notice: For several reasons this shouldn't be root

How to setup a minimal X11 environment on Debian GNU/Linux

  1. Install the following packages

    • xserver-xorg-core (server)
    • xserver-xorg-video-XXX (video driver, XXX depends on your hardware)
    • xserver-xorg-input-XXX (input device driver, XXX depends on your hardware. evdev works well for most cases)
    • x11-xserver-utils (xmodmap, xrandr)
    • x11-xkb-utils (setxkbmap)
  • x11-utils (xdpyinfo, xev, xkill, xprop, xwininfo)
@pulsar256
pulsar256 / dynv6_v4only.sh
Last active January 11, 2022 09:58 — forked from corny/dynv6.sh
Update script for dynv6.com to set your IPv4 address
#!/bin/sh -e
# based on https://gist.github.com/corny/7a07f5ac901844bd20c9
hostname=$1
device=$2
v4_file=$HOME/.${hostname}.dynv6.addr4
[ -e $v4_file ] && old=`cat $v4_file`
@lirazsiri
lirazsiri / ghosttest.c
Created January 31, 2015 12:53
GHOST vulnerability tested
/* ghosttest.c: GHOST vulnerability tester */
/* Credit: http://www.openwall.com/lists/oss-security/2015/01/27/9 */
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define CANARY "in_the_coal_mine"
@corny
corny / dynv6.sh
Last active October 5, 2025 11:47
Update script for dynv6.com to set your IPv4 address and IPv6 prefix
#!/bin/sh -e
hostname=$1
device=$2
file=$HOME/.dynv6.addr6
[ -e $file ] && old=`cat $file`
if [ -z "$hostname" -o -z "$token" ]; then
echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]"
exit 1
fi
@edgarsilva
edgarsilva / StandardFirmataForATH0.ino
Created July 16, 2014 18:25
Modified firmata protocol that works on the arduino YUN linux side communicating to the arduino side using the ttyATH0 serialport interface.
/*
* Firmata is a generic protocol for communicating with microcontrollers
* from software on a host computer. It is intended to work with
* any host computer software package.
*
* To download a host software package, please clink on the following link
* to open the download page in your default browser.
*
* http://firmata.org/wiki/Download
*/
@amarvutha
amarvutha / rigolScope.py
Last active February 23, 2020 03:47
Header file for Rigol scope
# Read from Rigol DS1000 scope
# version 1
# 2013-12-27
import visa
import os, serial
import numpy as np
import pylab as plt
import time
@jackdev23
jackdev23 / AA_1_2.ino
Created December 9, 2013 17:36
Arduino: Antenna_analyzer_1.2
/////////////////////////////
//Antenna analyzer KL V1.2 //
/////////////////////////////
/** Copyright 2013 Luca Facchinetti, IW2NDH
All trademarks referred to in source code and documentation are copyright their respective owners.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or