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 / 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 / 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:
@erm3nda
erm3nda / build_debug_android_kivy.sh
Created May 19, 2018 03:45 — forked from clungzta/build_debug_android_kivy.sh
Simple bash script to build and run debug android app using Kivy and ADB, includes filtered log output option
VERBOSITY = 1
# Change Package name to suit that
PACKAGE_NAME=org.test.kivytestapp
echo $PACKAGE_NAME
echo "Building the android app in debug mode."
buildozer -v android debug
echo "Loading the app onto to the debug mode device."
@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 / client.py
Created April 22, 2018 04:44 — forked from caspian311/client.py
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')