Skip to content

Instantly share code, notes, and snippets.

View Belissimo-T's full-sized avatar
🏳️‍🌈

Pipifax (mit der Lupe 🔎) Belissimo-T

🏳️‍🌈
  • Germany
  • 15:39 (UTC +02:00)
View GitHub Profile
@MorphyDK
MorphyDK / wifi-to-eth-route.sh
Created September 24, 2020 13:08
Share Wifi with Eth devices ( Wireguard )
#!/bin/bash
# Share Wifi with Eth device
# Original source:
# https://raw.githubusercontent.com/arpitjindal97/raspbian-recipes/master/wifi-to-eth-route.sh
# This script is created to work with Raspbian Stretch
# but it can be used with most of the distributions
# by making few changes.
#
# Make sure you have already installed `dnsmasq`
@szydan
szydan / gist:88d42a124a81fa060f2b47c63557e5a3
Last active April 1, 2023 15:53
Raspberry pi - wifi wlan0 -> eth0 bridge
#!/bin/bash
# Share Wifi with Eth device
#
#
# This script is created to work with Raspbian Stretch
# but it can be used with most of the distributions
# by making few changes.
#
# Make sure you have already installed `dnsmasq`
@sjf
sjf / MainActivity.java
Last active May 27, 2024 16:49
Android screen overlay example. Draws a button over other apps.
package io.sjf.overlay;
import android.annotation.TargetApi;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.Settings;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
@bjoernQ
bjoernQ / AndroidManifest.xml
Created October 14, 2013 13:02
Creating a System Overlay (Always on Top over all Apps) in Android
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.mobilej.overlay"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="14" />
<application android:label="SystemOverlay" >
<activity
@endolith
endolith / frequency_estimator.py
Last active May 8, 2024 17:59
Frequency estimation methods in Python
from __future__ import division
from numpy.fft import rfft
from numpy import argmax, mean, diff, log, nonzero
from scipy.signal import blackmanharris, correlate
from time import time
import sys
try:
import soundfile as sf
except ImportError:
from scikits.audiolab import flacread