Skip to content

Instantly share code, notes, and snippets.

aq_measurement,location="DEBE064",city="Berlin",country="DE",parameter="pm10",unit="µg/m³",latitude="52.481709",longitude="13.433967" value=6.27 1591398000000000000
aq_measurement,location="DEBE063",city="Berlin",country="DE",parameter="pm10",unit="µg/m³",latitude="52.467534",longitude="13.441654" value=6.86 1591398000000000000
aq_measurement,location="DEBE069",city="Berlin",country="DE",parameter="pm10",unit="µg/m³",latitude="52.438115",longitude="13.38772" value=7.05 1591398000000000000
aq_measurement,location="DEBE032",city="Berlin",country="DE",parameter="pm10",unit="µg/m³",latitude="52.473192",longitude="13.225144" value=6.17 1591398000000000000
aq_measurement,location="DEBE051",city="Berlin",country="DE",parameter="pm10",unit="µg/m³",latitude="52.643525",longitude="13.489531" value=6 1591398000000000000
aq_measurement,location="DEBE034",city="Berlin",country="DE",parameter="pm10",unit="µg/m³",latitude="52.489451",longitude="13.430844" value=5.81 1591398000000000000
aq_measurement,location="DEBE065",city
@dolugen
dolugen / Free O'Reilly Books.md
Created May 11, 2020 19:44 — forked from augbog/Free O'Reilly Books.md
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
#!/bin/bash
# Save CSV for MN-UB, PM10
let page_size=65536
#parameter="pm25"
if [ $# -eq 0 ]
then
echo 'Parameter required. One of: pm10, pm25'
#!/bin/bash
# A shell script to delete / drop all tables from MySQL database.
# Usage: ./script user password dbnane
# Usage: ./script user password dbnane server-ip
# Usage: ./script user password dbnane mysql.nixcraft.in
# -------------------------------------------------------------------------
# Copyright (c) 2008 nixCraft project
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
Control the complexity.
Don't be ugly.
Beautiful is the only answer.
Only one option is strict. # not clear?
Two can still be simple.
Three is funny, and more is complex.
@dolugen
dolugen / osqa_about.txt
Last active December 14, 2015 23:49
OSQA l10n stuff
# OSQA default About page text
Please customize this text in the administration area
Here you can ask and answer questions, comment and vote for the questions of others and their answers. Both questions and answers can be revised and improved. Questions can be tagged with the relevant keywords to simplify future access and organize the accumulated material.
This Q&A site is moderated by its members, hopefully - including yourself! Moderation rights are gradually assigned to the site users based on the accumulated "karma" points. These points are added to the users account when others vote for his/her questions or answers. These points (very) roughly reflect the level of trust of the community.
No points are necessary to ask or answer the questions - so please - join us!
@dolugen
dolugen / wsgi.py
Created March 12, 2013 03:10
a wsgi.py template for deploying virtualenv django project
import os
import sys⋅
import site
site.addsitedir('/home/user/.virtualenvs/venv/lib/python2.7/site-packages/')
activate_this = os.path.expanduser("~/.virtualenvs/venv/bin/activate_this.py")
execfile(activate_this, dict(__file__=activate_this))
from django.core.handlers.wsgi import WSGIHandler
@dolugen
dolugen / field.html
Created November 10, 2011 02:38 — forked from pydanny/field.html
django-uni-form + Twitter Bootstrap
<!-- this usually goes in <project-root>/templates/uni_form/field.html -->
{% if field.is_hidden %}
{{ field }}
{% else %}
<div class="clearfix {% if field.errors %}error{% endif %}">
<label for="{{ field.auto_id }}" {% if field.field.required %}class="requiredField"{% endif %}>
{{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %}
</label>
<div class="input">
@dolugen
dolugen / usage
Created October 13, 2011 03:02
virtualenvwrapper.project example usage
$ mkproject tusul4
New python executable in tusul4/bin/python
Installing setuptools............done.
Installing pip...............done.
virtualenvwrapper.user_scripts creating /home/blackrock/.virtualenvs/tusul4/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/blackrock/.virtualenvs/tusul4/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/blackrock/.virtualenvs/tusul4/bin/preactivate
virtualenvwrapper.user_scripts creating /home/blackrock/.virtualenvs/tusul4/bin/postactivate
virtualenvwrapper.user_scripts creating /home/blackrock/.virtualenvs/tusul4/bin/get_env_details
Creating /home/blackrock/Projects/tusul4
@dolugen
dolugen / bashrc config
Created October 13, 2011 03:00
virtualenvwrapper.project example
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Projects
source /usr/local/bin/virtualenvwrapper.sh