Skip to content

Instantly share code, notes, and snippets.

View lb1a's full-sized avatar

lb1a lb1a

  • Freiburg, Baden-Württemberg, Germany
View GitHub Profile
@lb1a
lb1a / keybase.md
Last active February 18, 2020 10:42
keybase.md

Keybase proof

I hereby claim:

  • I am lb1a on github.
  • I am lb1a (https://keybase.io/lb1a) on keybase.
  • I have a public key ASCSIIaRhWhJbaG6EqMrYgZRGKOPBTVkRH73dQwULWxsmwo

To claim this, I am signing this object:

{
"basics": {
"name": "John Doe",
"label": "Programmer",
"picture": "",
"email": "john@gmail.com",
"phone": "(912) 555-4321",
"website": "http://johndoe.com",
"summary": "A summary of John Doe...",
@lb1a
lb1a / nginx-uberspace.md
Created July 27, 2016 07:44 — forked from lluchs/nginx-uberspace.md
nginx auf dem Uberspace

nginx auf dem Uberspace

Installation

Lade die neueste "mainline"-Version (hier 1.7.9) von http://nginx.org/en/download.html herunter und entpacke sie:

$ wget http://nginx.org/download/nginx-1.7.9.tar.gz 
$ tar xf nginx-1.7.9.tar.gz
(taiga)taiga@taiga:~/taiga-back$ pip install -r requirements.txt
Downloading/unpacking git+https://github.com/Xof/django-pglocks.git@dbb8d7375066859f897604132bd437832d2014ea (from -r requirements.txt (line 33))
Cloning https://github.com/Xof/django-pglocks.git (to dbb8d7375066859f897604132bd437832d2014ea) to /tmp/pip-c3rbt5oi-build
Could not find a tag or branch 'dbb8d7375066859f897604132bd437832d2014ea', assuming commit.
Running setup.py (path:/tmp/pip-c3rbt5oi-build/setup.py) egg_info for package from git+https://github.com/Xof/django-pglocks.git@dbb8d7375066859f897604132bd437832d2014ea
warning: no files found matching '*.txt' under directory 'docs'
Requirement already satisfied (use --upgrade to upgrade): djangorestframework==2.3.13 in /home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): Django==1.7.6 in /home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages (from -r requirements.txt (line
@lb1a
lb1a / osr example
Created December 18, 2012 16:29 — forked from anonymous/osr example
>>> from osgeo import gdal, osr
>>> ds = gdal.Open('C:/Users/kshannon/Desktop/test.tif')
>>> sr = osr.SpatialReference()
>>> sr.ImportFromWkt(ds.GetProjection())
0
>>> sr.ExportToProj4()
'+proj=sinu +lon_0=0 +x_0=0 +y_0=0 +a=6371007.181 +b=6371007.181 +units=m +no_defs '
>>>
@lb1a
lb1a / cheesecake.md
Created August 1, 2012 09:47 — forked from hmans/cheesecake.md
Motherfucking Cheesecake

Für @dielilly <3

Zutaten:

Für den Boden:

  • 150g Vollkornbutterkekse
  • 2 EL Zucker
  • Prise Zimt
  • 60g geschmolzene Butter
@lb1a
lb1a / gist:3187077
Created July 27, 2012 09:24
git example
lb@pluto:~/test$ git init
Initialized empty Git repository in /home/lb/test/.git/
lb@pluto:~/test (master)$ touch foo.txt
lb@pluto:~/test (master)$ git add foo.txt
lb@pluto:~/test (master)$ git cm
[master (root-commit) 65a4e64] initial
0 files changed
create mode 100644 foo.txt
lb@pluto:~/test (master)$ mv foo.txt bar.txt
lb@pluto:~/test (master)$ git add bar.txt
@lb1a
lb1a / sanitize-tree.sh
Created May 2, 2012 09:52 — forked from hach-que/sanitize-tree.sh
Automatic formatter for Git index!
#!/bin/bash
# This script automatically calls expand and indent
# on either:
#
# * The entire tree or
# * The files changed since last commit (if invoked as pre-commit)
#
# You should make a symbolic link from .git/hooks/pre-commit
# to this file and it will automatically sanitize the data in
@lb1a
lb1a / gist:1863215
Created February 19, 2012 11:13
hotot build error
lb@lbsmall:~/dev$ mkdir hototbuild
lb@lbsmall:~/dev$ cd hototbuild/
lb@lbsmall:~/dev/hototbuild$ cmake ../Hotot/
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
@lb1a
lb1a / search.js
Created January 23, 2012 22:55
key event error
function search(dataid) {
var search=$('#searchText').val();
var filteredSearchString = search.replace(" ","%20");
callDb(dataid, filteredSearchString);
}
function callDb (dataId, searchString ) {
$.ajax({
url: "php/search.php",
data: { 'id': dataid, 'search':neu },