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
@amake
amake / innosetup-linux-macos.org
Last active April 17, 2024 13:34
Inno Setup on Linux and macOS

Inno Setup on Linux and macOS

Inno Setup is a popular installer builder for Windows. Of course it is made to run on Windows only, by default. But what if you want to build Windows installers off Windows, i.e. on Linux or macOS?

You’re in luck: It’s possible to run Inno Setup anywhere that Docker runs (including Linux and macOS), and even have a passable experience writing your setup script.

@clungzta
clungzta / raspberry_pi_car.py
Last active March 27, 2024 23:04
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:
@clungzta
clungzta / build_debug_android_kivy.sh
Created May 15, 2017 23:29
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."
echo "auto_prepend_file=/opt/www/proxy.php" >> /etc/php5/cli/php.ini
@joanhey
joanhey / Dockerfile
Last active August 19, 2019 11:05
Docker con apache y php7
FROM php:7.0-apache
RUN apt-get update \
&& apt-get install -y git zlib1g-dev \
&& docker-php-ext-install zip opcache\
&& a2enmod rewrite \
&& sed -i 's!/var/www/html!/var/www!g' /etc/apache2/apache2.conf
WORKDIR /var/www
section "InputClass"
Identifier "SynPS/2 Synaptics TouchPad"
MatchIsTouchpad "on"
Driver "libinput"
Option "Tapping" "on"
EndSection
@MerlinSmiles
MerlinSmiles / Gestures_2-3TapClick.reg
Last active June 13, 2019 02:44 — forked from dpower-lv/Gestures_2TapMiddleClick.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
@gowtham1337
gowtham1337 / temp_mail_server.md
Last active March 1, 2024 12:53
A quick guide for creating your own temporary mail server

##Overview You might have a need for a temporary mail service like mailinator.com on your own machine. This guide provides the minimum required steps to do that. The setup we will use is as follows

Procmail (Receive mail and forward to script)--->PHP Script(Parse Mail and put in Database)--->MySQL(Store the mails)--->JSON

Note: This is intended as a quick DIY for simple projects. Hence, we will not go into more details like spam detection and memory optimization.

##Instructions ####Setup Infrastructure

  1. Get a Top level domain name (Note: Getting this to work with a sub-domain will require more work and setup)
@eri-trabiccolo
eri-trabiccolo / featured_image_in_pages.php
Last active April 27, 2019 21:51
Show featured image in pages
@rozifus
rozifus / Python SimpleHTTPServer with SSL
Last active October 9, 2022 22:40
Python SimpleHTTPServer with SSL
# useful for running ssl server on localhost
# which in turn is useful for working with WebSocket Secure (wss)
# copied from http://www.piware.de/2011/01/creating-an-https-server-in-python/