Skip to content

Instantly share code, notes, and snippets.

Avatar
🥑
Avocado for the wise.

Hans-Helge Buerger obstschale

🥑
Avocado for the wise.
View GitHub Profile
@obstschale
obstschale / watson.1m.sh
Created Jan 20, 2022
xbar script for watson
View watson.1m.sh
#!/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 Dec 21, 2020
Raspberry Pi Script to autostart Chromium
View autostart
# /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
View cecho.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 Jul 19, 2017
Bash script for setting up a new WordPress site (Laravel Valet runs in the background)
View press.sh
#!/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 Aug 30, 2016 — forked from daggerhart/lock-plugins.php
Simple plugin that prevents requests for updats for a given list of plugins.
View lock-plugins.php
<?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 );
View Caldera_Forms.php
<?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
WordPress Test File. Simply put it into the same folder where wp-config.php lives.
View test.php
<?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 Aug 29, 2015
tree leaflet.markercluster
View gist:8f14e1b6bebbc8a7e627
.
├── .bower.json
├── .gitignore
├── .travis.yml
├── CHANGELOG.md
├── Jakefile.js
├── MIT-LICENCE.txt
├── README.md
├── build
│   ├── build.js
View keybase.md

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 Aug 29, 2015
Link collection of iPython stuff
View ipython_collection.md

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.