Skip to content

Instantly share code, notes, and snippets.

View blackout314's full-sized avatar
🛸
fly away

Carlo Denaro blackout314

🛸
fly away
View GitHub Profile
<?php
//
// download phpMQTT from https://github.com/bluerhinos/phpMQTT
//
error_reporting(0);
require "phpMQTT.php";
$server = "127.0.0.1";
$port = 1883;
$username = "";

Installing Python 3.7.4 on Raspbian =================================

As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.4. This means we will have to build it ourselves, and here is how to do it.

  1. Install the required build-tools (some might already be installed on your system).

@blackout314
blackout314 / nomi_italiani.txt
Last active January 13, 2020 09:42 — forked from pdesterlich/nomi_italiani.txt
lista nomi italiani
abaco,m
abbondanza,f
abbondanzia,f
abbondanzio,m
abbondazio,m
abbondia,f
abbondina,f
abbondio,m
abdelkrim,
abdellah,
tg12
bbhunter
d-Rickyy-b
fpolicelli
kmkz
cyberaz0r
win3zz
e23e
Le1a
mpgn
@blackout314
blackout314 / README.md
Created November 30, 2018 11:27 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@blackout314
blackout314 / libssh_server_fingerprints.md
Created October 18, 2018 09:05 — forked from 0x4D31/libssh_server_fingerprints.md
An analysis of Censys Public Scan 20180807 (only port 22) to estimate the number of servers {potentially} vulnerable to the recent Libssh bug
@blackout314
blackout314 / LighttpdReverseProxyURLRewriting
Created July 18, 2018 12:37 — forked from ebouchut/LighttpdReverseProxyURLRewriting
Lighttpd reverse-proxy to that matches an URL _and_ does URL rewriting
#server.modules += ( "mod_rewrite")
# Workaround to have a working reverse-proxy that matches an URL does URL rewriting in Ligghtpd.
#
# Ligtthpd 1.4.28 cannot perform both matching and URL rewriting at the same time.
# Therefore we need to define 2 proxies, one does the matching and bounce the request
# to the other one, in charge of rewriting the URL before proxying the request to the target server.
#
# More about this here:
# http://redmine.lighttpd.net/issues/164#note-9
@blackout314
blackout314 / Git push deployment in 7 easy steps.md
Created July 12, 2018 15:23 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
import tubes
import numpy as np
from matplotlib import pyplot
import glob
from os import path
FILES = glob.glob(path.expanduser("~/src/data/ngrams/1gram/googlebooks*"))
PYTHON_MATCH = '0'
PASCAL_MATCH = '1'