Skip to content

Instantly share code, notes, and snippets.

View erm3nda's full-sized avatar
😑
Expressionless master

m3nda erm3nda

😑
Expressionless master
  • n0n3
  • localhost
View GitHub Profile
@erm3nda
erm3nda / init.sh
Last active July 22, 2020 18:02 — forked from ebuildy/init.sh
Setting PHP stream context from system env
echo "auto_prepend_file=/opt/www/proxy.php" >> /etc/php/php.ini
@erm3nda
erm3nda / download-android-ndks-direct-links.sh
Created January 26, 2020 00:56 — forked from ksutcr18/download-android-ndks-direct-links.sh
Download Android NDK Tools / Direct Links
@erm3nda
erm3nda / archlinux debian chroot
Last active June 18, 2019 08:37 — forked from cdown/gist:5c5b53e1855d7812dfbc
Debian chroot inside Arch
pacman -S wget # needed for debootstrap
curl -o /tmp/db.deb http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.60~bpo70+1_all.deb
mkdir /opt/debootstrap
cd /opt/debootstrap
ar x /tmp/db.deb
tar xf data.tar.gz
mkdir /opt/debian
@erm3nda
erm3nda / fetch_messages()
Last active June 15, 2019 05:57 — forked from tshirtman/main.py
Google Android get messages using URI parser and content.Resolver
def get_message(cursor):
return (
cursor.getString(cursor.getColumnIndex('_id')),
cursor.getString(cursor.getColumnIndex('address')),
cursor.getString(cursor.getColumnIndex('body')))
def fetch_messages(lastindex):
if platform == 'android':
uriSms = Uri.parse('content://sms')
@erm3nda
erm3nda / customizedVerticalSwipe.reg
Created June 14, 2019 23:27 — forked from antys10g/customizedVerticalSwipe.reg
Dell m4700 alps touchpad verticall swipe customization
;On Dell precision m4700 there is alps touch pad with driver version : 10.1207.101.109,
;which supports up to three fingers, but doesn't support windows precision(type) touch pad
;(replacing with generic alps precision drivers don't work),
;multiswipe.com doesn't work either,
;so there is no way of customizing gestures in convenient way.
;
;In my case I wanted to achieve three fingers horizontal swipe to change between
;window10 virtual desktops like Ctrl+Windows+Arrow Left/Right do.
;
;If you want to customize your alps touch pad 2 finger vertical swipe
@erm3nda
erm3nda / Gestures_2-3TapClick.reg
Created June 13, 2019 02:44 — forked from MerlinSmiles/Gestures_2-3TapClick.reg
Dell ALPS - Registry hack to add right-click as a 2 finger tap and middle-click as a 3 finger tap gesture
Windows Registry Editor Version 5.00
; 2-tap right click and 3-tap middle click
; current user
[HKEY_CURRENT_USER\SOFTWARE\Alps\Apoint\Gesture]
"2TapSupport"=dword:00000003
"2TapShow"=dword:00000009
"Enable2Tap"=dword:00000001
"2TapFunc"=dword:0000000d
@erm3nda
erm3nda / gmail_imap_dump_eml.py
Created July 25, 2018 09:35 — forked from robulouski/gmail_imap_dump_eml.py
Very simple Python script to dump all emails in an IMAP folder to files.
#!/usr/bin/env python
#
# Very simple Python script to dump all emails in an IMAP folder to files.
# This code is released into the public domain.
#
# RKI Nov 2013
#
import sys
import imaplib
import getpass
@erm3nda
erm3nda / kivygtk.kv
Last active June 19, 2018 12:21
Kivy gtk tray app
#:kivy 1.8.0
<Root>:
orientation: "vertical"
Button:
text: "Start GTK thread" if not app.gtk_started else "Stop GTK thread"
on_release: app.start_gtk_thread()
@erm3nda
erm3nda / wget
Last active June 19, 2018 12:18 — forked from jasperf/wget
Wget examples
#!/bin/bash
#Spider Websites with Wget – 20 Practical Examples
Wget is extremely powerful, but like with most other command line programs, the plethora of options it supports can be intimidating to new users. Thus what we have here are a collection of wget commands that you can use to accomplish common tasks from downloading single files to mirroring entire websites. It will help if you can read through the wget manual but for the busy souls, these commands are ready to execute.
1. Download a single file from the Internet
wget http://example.com/file.iso
2. Download a file but save it locally under a different name
@erm3nda
erm3nda / raspberry_pi_car.py
Created May 19, 2018 03:45 — forked from clungzta/raspberry_pi_car.py
Very Simple Car Driver using a Raspberry Pi 3. Cytron MDD10 Hat controls the motor (Motor 1 port). PWM servo (on GPIO18) controls the steering.
import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False) # enable warning from GPIO
GPIO.setmode(GPIO.BCM) # GPIO numbering
class RasPiRCCar():
def __init__(self, motor_dir_pin, motor_pwm_pin, steering_pwm_pin, debug=False):
self.debug = debug
if self.debug: