Skip to content

Instantly share code, notes, and snippets.

View obstschale's full-sized avatar
🥑
Avocado for the wise.

Hans-Helge Buerger obstschale

🥑
Avocado for the wise.
View GitHub Profile
@obstschale
obstschale / watson.1m.sh
Created January 20, 2022 13:16
xbar script for watson
#!/bin/bash
# Watson Status
#
# by Antoine Corcy <contact@sbin.dk>
#
# <xbar.title>Watson Status</xbar.title>
# <xbar.version>1.0</xbar.version>
# <xbar.author>Antoine Corcy</xbar.author>
# <xbar.author.github>toin0u</xbar.author.github>
@obstschale
obstschale / autostart
Last active December 21, 2020 18:36
Raspberry Pi Script to autostart Chromium
# /home/pi/.config/lxsession/LXDE-pi/autostart before Buster
# /etc/xdg/lxsession/LXDE-pi/autostart on Buster
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@point-rpi
@sh /home/pi/bin/start-chromium.sh
cecho() {
local code="\033["
case "$1" in
black | bk) color="${code}0;30m";;
red | r) color="${code}1;31m";;
green | g) color="${code}1;32m";;
yellow | y) color="${code}1;33m";;
blue | b) color="${code}1;34m";;
purple | p) color="${code}1;35m";;
cyan | c) color="${code}1;36m";;
@obstschale
obstschale / press.sh
Last active July 19, 2017 15:13
Bash script for setting up a new WordPress site (Laravel Valet runs in the background)
#!/bin/bash
# =========================================
# Create new WordPress Site with 1 command
#
# press <name> <dbname>
#
# name: name of the folder, website, url
# dbname: database name, which will be created and used by WordPress
#
@obstschale
obstschale / lock-plugins.php
Last active August 30, 2016 13:54 — forked from daggerhart/lock-plugins.php
Simple plugin that prevents requests for updats for a given list of plugins.
<?php
/*
* Plugin Name: Lock plugin updates
* Description: Prevent plugin updates
* Version: 1.0.0
* Author: daggerhart
*/
add_filter( 'http_request_args', 'lock_plugins_http_request_args', 5, 2 );
<?php
namespace Flat_Finder\Module;
/**
* Class Caldera_Form
*
* Caldera_Form is a module for using a caldera form as main input for new flats.
*
* @author Hans-Helge Buerger
@obstschale
obstschale / test.php
Created May 4, 2015 06:59
WordPress Test File. Simply put it into the same folder where wp-config.php lives.
<?php
// Load the WordPress Environment
define( 'WP_DEBUG', true );
require('./wp-load.php');
?>
<pre>
<?php
$arrayName = array('val1', 'val2' );
@obstschale
obstschale / gist:8f14e1b6bebbc8a7e627
Last active August 29, 2015 14:18
tree leaflet.markercluster
.
├── .bower.json
├── .gitignore
├── .travis.yml
├── CHANGELOG.md
├── Jakefile.js
├── MIT-LICENCE.txt
├── README.md
├── build
│   ├── build.js

Keybase proof

I hereby claim:

  • I am obstschale on github.
  • I am obstschale (https://keybase.io/obstschale) on keybase.
  • I have a public key ASDLzamYHudd2vRPBISs45ocDGUgjWY-CJZjOnU_SZcWHQo

To claim this, I am signing this object:

@obstschale
obstschale / ipython_collection.md
Last active August 29, 2015 14:08
Link collection of iPython stuff

iPython Notebook

Useful Links, Tutorials, and Books


First of all, here the easiest way to install and run it on your system:

  1. Download and install Anaconda
  2. Run the command ipython notebook in the desired folder. This will start your default browser and open the iPython dashboard
  3. Select the desired notebook or create one yourself.