Skip to content

Instantly share code, notes, and snippets.

View sl5net's full-sized avatar
🏠
Working from home

sl5net

🏠
Working from home
View GitHub Profile
docker stop 8e008ebf3ad7
8e008ebf3ad7
docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
5227976cb9bb friendlyhello "python app.py" About an hour ago Up About an hour 0.0.0.0:4001->80/tcp SOMENAME
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
@sl5net
sl5net / offcanvas-menu.less
Created September 1, 2018 09:47
offcanvas-menu.less
/*
Off-canvas menu
=======================================
The off-canvas menu is the default shopping cart menu in Shopware.
It is an expanding menu that displays the shopping cart at the right side of the screen.
It can be enabled/disabled inside the Shopware 5 backend.
The functionality is provided by the `jquery.off-canvas-menu.js` file.
<html class="x-border-box x-strict x-viewport" style="position: relative; left: 0px; overflow: hidden;"><head id="ext-gen1031">
<meta charset="UTF-8">
<meta name="robots" content="noindex,nofollow">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<title>Shopware 5.4.6 (Rev. 201807181357) - Backend (c) shopware AG</title>
<link rel="stylesheet" type="text/css" href="/themes/Backend/ExtJs/backend/_resources/resources/css/ext-all.css?201807181357">
<link rel="stylesheet" type="text/css" href="/themes/Backend/ExtJs/backend/_resources/resources/css/core-icon-set.css?201807181357">
<link rel="stylesheet" type="text/css" href="/themes/Backend/ExtJs/backend/_resources/resources/css/core-icon-set-new.css?201807181357">
<link rel="stylesheet" type="text/css" href="/engine/Library/CodeMirror/lib/codemirror.css?201807181357">
<link rel="stylesheet" type="text/css" href="/themes/Backend/ExtJs/backend/_resources/styles/growl.css">
msg := vOutput1 "`r`n`r`n" vOutput2
Clipboard := msg
MsgBox,% msg "(" A_LineNumber " " RegExReplace(A_LineFile,".*\\") ")"
2018 10 06 17 42 00
63720982
0.737511
2018 10 06 15 42 00
56520982
@sl5net
sl5net / gist:42cc22259ef23d0b92f3bcfdad2a01ba
Created October 8, 2018 15:56
example for the ahk-comunity-Forum
code|rr|[code][/code]|ahk|send,{left 7}{enter 2}{up}{text}%clipboard%
url|rr|[url=]title[/url]|ahk|send,{left 12}{text}%clipboard% `n send,{CtrlDown}{ShiftDown}{Left}{ShiftUp}{CtrlUp}
;/¯¯¯¯ configStr2minify_configFile ¯¯ 190111201847 ¯¯ 11.01.2019 20:18:47 ¯¯\
configStr2minify_configFile(configIncAhkAddress := "\config\config.inc.ahk"
, configMinifyIncAhkAddress := "\config.minify.inc.ahk" ){
; needs start with: g_config (12.01.2019 10:57, 19-01-12_10-57)
configIncAhkAddress := A_ScriptDir configIncAhkAddress
configMinifyDIR := A_ScriptDir "\inc_ahk\minify\"
configMinifyIncAhkAddress := configMinifyDIR configMinifyIncAhkAddress
; call it like (11.01.2019 20:19):
useItLike =
@sl5net
sl5net / disk-usage-alert3.sh
Created November 19, 2019 05:28
Disk Info for Golang
#!/bin/bash
# [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
#maybe this script hangs:
#https://unix.stackexchange.com/questions/21199/why-is-df-hanging
clear
@sl5net
sl5net / diskspace.go
Created November 19, 2019 06:26
error never happens till yet
//pacman -S go
//go get -u golang.org/x/sys/unix
package main
import (
"fmt"
syscall "golang.org/x/sys/unix"
)
@sl5net
sl5net / disk-usage-alert3.sh
Created November 19, 2019 22:21
changed layout a bit
#!/bin/bash
# [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
#maybe this script hangs:
#https://unix.stackexchange.com/questions/21199/why-is-df-hanging
clear
clear
toggle=1
@sl5net
sl5net / loop_surprisingly_no_result.py
Created August 8, 2020 19:05
Python or AutoKey loop surprisingly has no result
import time
import subprocess
# keyboard.send_keys("\n#3")
cOld = ""
cNew = ""
# keyboard.send_keys("\n#5")
# cOld = clipboard.get_selection()
cOld = clipboard.get_clipboard() # found here: https://github.com/autokey/autokey/wiki/Scripting#create-new-abbreviation
# keyboard.send_keys("\n#9")