The attached x360ce.ini file allows you to use the DualShock 4 controller with DInput games on Wine (which doesn't fully support XInput), using the x360ce emulation layer
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 | |
fn=`mktemp` | |
echo '#!/bin/bash' >> $fn | |
echo "echo I am $fn" >> $fn | |
chmod u+x $fn | |
time $fn | |
time $fn | |
rm $fn |
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
# Python | |
alias py3='python3' | |
alias py2='python2.7' | |
alias python2='python2.7' | |
alias pip3='pip-3.5' | |
alias python="python3" | |
alias pip="pip-3.5" | |
alias pipdown='pip download -d $HOME/.pypi/packages' | |
alias pipoff='pip install --no-index --find-links file://$HOME/.pypi/packages/' | |
alias pipdown2='pip download -d $HOME/.pypi/packages2' |
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 | |
set -e | |
MASTER="deb7-dev-master" | |
NEWNAME=$1 | |
IDENTITY="$HOME/.ssh/keys/dbark_1" | |
VMUSER="sysadmin" | |
SSHGO="ssh -i $IDENTITY -o StrictHostKeyChecking=no " | |
echo "Cloning $MASTER to $NEWNAME..." |
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 datetime | |
from app import app, models | |
import whoosh | |
import flask_whooshalchemy | |
""" | |
Rebuild all Whoosh search indices |
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 | |
DEV_PATH="~/dev/myapp" | |
SESSION="myapp" | |
tmux -2 new-session -d -s $SESSION | |
# First window (backend dev) | |
tmux rename-window "Backend" | |
tmux send-keys "cd $DEV_PATH; vim" C-m | |
# Frontend window for vim |