This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "auto_prepend_file=/opt/www/proxy.php" >> /etc/php/php.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# current workstation architecture (values: MACOSX, MACOSX32, MACOSX64, LINUX, LINUX32, LINUX64, WIN32, WIN64) | |
WORKSTATION_ACTIVE_ARCH="MACOSX" | |
# android ndk (revision version, workstation arch, install prefix path) | |
ANDROID_NDK_VERSION="r10e" | |
ANDROID_NDK_PLATFORM="darwin" | |
ANDROID_NDK_PLATFORM_ARCH="x86_64" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#: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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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') |
NewerOlder