Skip to content

Instantly share code, notes, and snippets.

View bascht's full-sized avatar
📢
Setting all the statuses.

Sebastian Schulze bascht

📢
Setting all the statuses.
View GitHub Profile
@bascht
bascht / database-permissions.sh
Created March 22, 2022 10:07
Database permissions
$ for image in mysql:8 postgres:12 cassandra:3; do database=$(echo $image | cut -d ":" -f 1); docker exec -ti $(docker run -d --name=$database -e MYSQL_ROOT_PASSWORD=ohai -e POSTGRES_PASSWORD=ohai $image) bash -c "echo ---- $database ----; sleep 5 && ls -lha /var/lib | grep ${database} && ls -lha /var/lib/${database}*" && echo -e "\n"; (docker stop $database; docker rm $database) >/dev/null; done
---- mysql ----
drwxrwxrwt 6 mysql mysql 4.0K Mar 22 10:00 mysql
total 184M
-rw-r----- 1 mysql mysql 192K Mar 22 10:00 '#ib_16384_0.dblwr'
-rw-r----- 1 mysql mysql 8.2M Mar 22 10:00 '#ib_16384_1.dblwr'
drwxr-x--- 2 mysql mysql 4.0K Mar 22 10:00 '#innodb_temp'
for_window [title="^Slack | ^\*.*$"] title_format "<span>%title</span>"
for_window [title="^Slack | \*.*$"] title_format "<span color='#88C0D0'>🔔 %title</span>"
@bascht
bascht / errors.log
Created July 1, 2019 08:31
Ergodox Configurator Error Log
In file included from keyboards/ergodox_ez/keymaps/da217335075ff430b943/keymap.c:1:0:
keyboards/ergodox_ez/keymaps/da217335075ff430b943/keymap.c:31:457: error: 'LGUI_T' undeclared here (not in a function)
[0] = LAYOUT_ergodox(KC_ESCAPE,KC_1,KC_2,KC_3,KC_4,KC_5,LCTL(LSFT(KC_TAB)),KC_TAB,KC_Q,KC_W,KC_E,KC_R,KC_T,LSFT(KC_TAB),LGUI_T(DE_CIRC),KC_A,KC_S,KC_D,KC_F,KC_G,KC_LSHIFT,DE_Y,KC_X,KC_C,KC_V,KC_B,MO(1),KC_LCTRL,DE_LESS,LT(1,KC_DELETE),LCTL_T(KC_NO),LALT_T(KC_NO),KC_HOME,KC_END,LALT(KC_X),KC_SPACE,KC_BSPACE,LALT(KC_ENTER),LCTL(KC_TAB),KC_6,KC_7,KC_8,KC_9,KC_0,KC_MINUS,KC_TAB,DE_Z,KC_U,KC_I,KC_O,KC_P,DE_UE,KC_H,KC_J,KC_K,KC_L,LT(2,DE_OE),LGUI_T(DE_AE),LGUI_T,KC_N,KC_M,KC_COMMA,KC_DOT,DE_MINS,KC_RSHIFT,KC_LALT,RCTL_T(KC_NO),KC_RALT,TG(2),KC_RCTRL,KC_PGUP,KC_PGDOWN,LSFT(KC_PSCREEN),LALT(KC_M),LT(1,KC_TAB),LT(2,KC_ENTER)),
class MeinWrapper
def gibmaldaserste!
such_was_bei_zendesk().first
end
def gibmaldaserste!
results = such_was_bei_zendesk()
results.first
end
@bascht
bascht / Dockerfile
Created April 12, 2018 10:54 — forked from moonglum/Dockerfile
A user that can't modify `/app` can modify it when it is mounted
FROM ruby:2.4
RUN useradd -m app && \
mkdir /app && \
chown app:app /app
WORKDIR /app
USER app
#!/usr/bin/env ruby
Signal.trap("INT") { puts "OMG PANIC"; exit }
Signal.trap("TERM") { puts "Shutting down properly and deleting my pidfile."; exit }
while(true)
puts "Didumm."
sleep 5
end
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Home</title>
<style type="text/css">
body {
background-color: white;
font-size: 1.3em;
font-family: "monospace";
@bascht
bascht / body.json
Created September 5, 2017 22:03
Mapbox: Bremen
{
"attribution": "NOTICE: © 2017 Mapbox and its suppliers. All rights reserved. Use of this data is subject to the Mapbox Terms of Service (https://www.mapbox.com/about/maps/). This response and the information it contains may not be retained.",
"features": [
{
"bbox": [
8.788812,
53.070539,
8.820725,
53.091165
],
your.host.name