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 /
Last active July 22, 2020 18:02 — forked from ebuildy/
Setting PHP stream context from system env
echo "auto_prepend_file=/opt/www/proxy.php" >> /etc/php/php.ini
erm3nda /
Created January 26, 2020 00:56 — forked from ksutcr18/
Download Android NDK Tools / Direct Links
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),
; 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 / 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
erm3nda /
Created July 25, 2018 09:35 — forked from robulouski/
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 / wget
Last active June 19, 2018 12:18 — forked from jasperf/wget
Wget examples
#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
2. Download a file but save it locally under a different name
erm3nda /
Created May 19, 2018 03:45 — forked from clungzta/
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:
erm3nda /
Created May 19, 2018 03:45 — forked from clungzta/
Simple bash script to build and run debug android app using Kivy and ADB, includes filtered log output option
# Change Package name to suit that
echo "Building the android app in debug mode."
buildozer -v android debug
echo "Loading the app onto to the debug mode device."
erm3nda / kivygtk.kv
Last active June 19, 2018 12:21
Kivy gtk tray app
#:kivy 1.8.0
orientation: "vertical"
text: "Start GTK thread" if not app.gtk_started else "Stop GTK thread"
on_release: app.start_gtk_thread()
erm3nda /
Created April 22, 2018 04:44 — forked from caspian311/
Simple client-service dbus example in python.
#!/usr/bin/env python
import dbus
class Client():
def __init__(self):
bus = dbus.SessionBus()
service = bus.get_object('com.example.service', "/com/example/service")
self._message = service.get_dbus_method('get_message', 'com.example.service.Message')
self._quit = service.get_dbus_method('quit', 'com.example.service.Quit')