This file contains 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
/** | |
* @author Jacky Nguyen | |
* @author Kirill Konshin (patched version for Sencha Touch 2.2.x) | |
* @class Common.MouseWheelDrag | |
* | |
* Ext.Loader.setPath('Common', '/path/to/your/app/common'); | |
* | |
* Ext.application({ | |
* // ... | |
* eventPublishers: { |
This file contains 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 | |
# | |
# based on XMPPLoggingHandler, Copyright 2011 Calvin Rien, | |
# based on ExceptionRecordHandler, Copyright 2007 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
This file contains 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
pkgver=1.3.3 | |
mkdir -p $VIRTUAL_ENV/src && cd $VIRTUAL_ENV/src | |
curl -O http://oligarchy.co.uk/xapian/$pkgver/xapian-core-$pkgver.tar.xz && tar xf xapian-core-$pkgver.tar.xz | |
curl -O http://oligarchy.co.uk/xapian/$pkgver/xapian-bindings-$pkgver.tar.xz && tar xf xapian-bindings-$pkgver.tar.xz | |
cd $VIRTUAL_ENV/src/xapian-core-$pkgver | |
./configure --prefix=$VIRTUAL_ENV && make && make install | |
export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib |
This file contains 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 | |
find . -name *mp3 -exec mp3gain -r -k {} \; |
This file contains 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 | |
aspell --lang it dump master | aspell --lang it expand | tr ' ' '\n' > italian.dic |
This file contains 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/sh | |
# synology openvpn restart script | |
# get config and name here: | |
# cat /usr/syno/etc/synovpnclient/openvpn/ovpnclient.conf | |
if [[ `ifconfig | grep tun0 | wc -l` -eq 0 ]]; then | |
echo "Offline, restart" | |
echo conf_id=oXXXXXXXX > /usr/syno/etc/synovpnclient/vpnc_connecting | |
echo conf_name=XXXXXXXXXX >> /usr/syno/etc/synovpnclient/vpnc_connecting | |
echo proto=openvpn >> /usr/syno/etc/synovpnclient/vpnc_connecting |
This file contains 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
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
echo "Connessione Remota" | |
else | |
echo "Connessione Locale Avvio Moonlight" | |
# sudo xboxdrv -D i 0 --next-controller -i 1 --next-controller -i 2 --next-controller -i 3 --deadzone 4000 --dbus disabled & | |
moonlight stream -mapping /home/pi/xbox.map -1080 -60fps | |
# moonlight map x.map | |
fi |
This file contains 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 | |
### BEGIN INIT INFO | |
# Provides: xbox-controller | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start XBOX Controller Service | |
# Description: Start the xboxdrv daemon with several options | |
# support up to 4 Controllers |
This file contains 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
# How many Controllers? (support up to 4 Controllers) | |
CONTROLLER_NUM=1 | |
case $CONTROLLER_NUM in | |
1) CONTROLLER="-w 0 -l 2 --trigger-as-button --dpad-as-button" | |
;; | |
2) CONTROLLER="-w 0 -l 2 --trigger-as-button --dpad-as-button --next-controller -w 1 -l 3 --trigger-as-button --dpad-as-button" | |
;; | |
3) CONTROLLER="-w 0 -l 2 --trigger-as-button --dpad-as-button --next-controller -w 1 -l 3 --trigger-as-button --dpad-as-button --next-controller -w 2 -l 4 --trigger-as-button --dpad-as-button" | |
;; |
This file contains 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
abs_deadzone = 0 | |
abs_dpad_x = -1 | |
abs_dpad_y = -1 | |
abs_rx = 3 | |
abs_ry = 4 | |
abs_rz = -1 | |
abs_x = 0 | |
abs_y = 1 | |
abs_z = -1 | |
btn_dpad_down = 295 |
OlderNewer