Steps with explanations to set up a server using:
- virtualenv
- Django
- nginx
- uwsgi
#!/usr/bin/python | |
''' | |
Python implementation of passcode hashing algorithm used on the Samsung Galaxy S4 GT-I9505 4.2.2 | |
Correct PIN for hash and salt below is 1234. | |
Get 40-character hash value in ascii hex format from file /data/system/password.key on the phone | |
Get salt in signed numeric format by doing sqlite3 query SELECT value FROM locksettings WHERE name = 'lockscreen.password_salt' on /data/system/locksettings.db |
# Maintainer: Jo-Herman Haugholt <[email protected]> | |
pkgname=gitver-git | |
pkgver=0.0.0 | |
pkgrel=1 | |
pkgdesc="Simple version string management for git" | |
arch=('any') | |
url="https://github.com/manuelbua/gitver" | |
license=('Apache') | |
groups=() |
""" | |
A systemd socket activated TLS twisted.web server. | |
$ tree /srv/www/ | |
/srv/www/ | |
`-- www.example.com | |
|-- server.key | |
|-- server.pem | |
|-- server.tac.py | |
`-- static |
Couldn't find the text of this for a while...
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: