Skip to content

Instantly share code, notes, and snippets.

Avatar

Tobias Preuss johnjohndoe

View GitHub Profile
@johnjohndoe
johnjohndoe / gradle-versions-plugin-filter.md
Last active Nov 26, 2019
Search for the name of a dependency which has the version "0.5.0" parsing the output of gradle-versions-plugin
View gradle-versions-plugin-filter.md
@johnjohndoe
johnjohndoe / schedule.xml
Created Sep 14, 2019
MRMCD 2019 schedule "Sherlock Holmes: Consulting Detective" 20190914 modified (diff with https://gist.github.com/johnjohndoe/0887355ba8fdecba8e402d8112ccfb4a)
View schedule.xml
<?xml version='1.0' encoding='utf-8' ?>
<!-- Made with love by pretalx v1.0.dev. -->
<schedule>
<version>Sherlock Holmes: Consulting Detective</version>
<conference>
<acronym>2019</acronym>
<title>MRMCD 2019</title>
<start>2019-09-13</start>
<end>2019-09-15</end>
<days>3</days>
@johnjohndoe
johnjohndoe / schedule.xml
Created Sep 14, 2019
MRMCD 2019 schedule "Sherlock Holmes: Consulting Detective" 20190914 unmodified
View schedule.xml
<?xml version='1.0' encoding='utf-8' ?>
<!-- Made with love by pretalx v1.0.dev. -->
<schedule>
<version>Sherlock Holmes: Consulting Detective</version>
<conference>
<acronym>2019</acronym>
<title>MRMCD 2019</title>
<start>2019-09-13</start>
<end>2019-09-15</end>
<days>3</days>
@johnjohndoe
johnjohndoe / rsync-backup.sh
Created Aug 9, 2019
Datensicherung UBUNTU (Daten aller Benutzer)
View rsync-backup.sh
#!/bin/bash
function pause(){
read -p "$*"
}
# Name des angemeldeten Benutzers
CURRENT_USER=$(whoami)
@johnjohndoe
johnjohndoe / Preferences.sublime-settings
Last active Jul 16, 2019
Sublime Text User Settings
View Preferences.sublime-settings
{
"added_words":
[
"Android"
],
"file_exclude_patterns":
[
"R.java",
"merger.xml"
],
@johnjohndoe
johnjohndoe / Stadt-Land-Fluss-Kategorien.md
Created Jul 6, 2019
Kategorien für das Spiel "Stadt, Land, Fluss" aus der Fernsehsendung "Zimmer frei".
View Stadt-Land-Fluss-Kategorien.md
  • Abfall
  • Anmachspruch
  • Ausrede
  • Automarke
  • Autor
  • Badutensilien
  • Ballsportart
  • Beruf
  • Berühmtes Bauwerk
  • Bestseller
@johnjohndoe
johnjohndoe / 60-jetbrains.conf
Created Jun 23, 2019 — forked from bittner/60-jetbrains.conf
Inotify configuration for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). Create this file with e.g. `sudo vim /etc/sysctl.d/60-jetbrains.conf`
View 60-jetbrains.conf
# Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm).
# Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and
# run `sudo service procps start` or reboot.
# Source: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
#
# More information resources:
# -$ man inotify # manpage
# -$ man sysctl.conf # manpage
# -$ cat /proc/sys/fs/inotify/max_user_watches # print current value in use
@johnjohndoe
johnjohndoe / LifecycleOwnerExtension.kt
Created Feb 19, 2019
Instance of a LifecycleObserver (MyClass) which registers itself to observe lifecycle events.
View LifecycleOwnerExtension.kt
inline fun <reified T : MyClass> android.arch.lifecycle.LifecycleOwner.createMyClassInstance(parameter: String): T {
val instance = T::class.constructors.first { it.parameters.isNotEmpty() }.call(parameter)
// Don't forget to invoke removeObserver(instance)!
lifecycle.addObserver(instance)
return instance
}
@johnjohndoe
johnjohndoe / restaurants-wheelchair-accessibility.ql
Created Feb 15, 2019
Query for overpass-turbo.eu to filter for restaurants and their wheelchair accessibility status
View restaurants-wheelchair-accessibility.ql
[out:json][timeout:25][bbox:{{bbox}}];
(
node["amenity"="restaurant"]["wheelchair"="yes"];
node["amenity"="restaurant"]["wheelchair"="limited"];
node["amenity"="restaurant"]["wheelchair"="no"];
node["amenity"="restaurant"][!"wheelchair"];
node["amenity"="restaurant"];
);
{{style: