docker ps -a --format "table{{.Name}}\t{{.Status}}\t{{.Ports}}"
docker compose logs --format "table{{.Name}}\t{{.Status}}\t{{.Ports}}"
E.g. in a docker container which is mapped into host via volumes, but has root user only Start tmp container with linked in current folder
id
docker run -it --rm -v "$PWD":"$PWD" -w "$PWD" ubuntu /bin/bash
In container add user with the id which is present on host as well, e.g. builder:builder
with 1001:1001
if uid is defined, the user-group GID will be the same
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo %date% %time% Updating >> C:\SOMEPATH\unattended-updates\log.txt | |
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\SOMEPATH\unattended-updates\upmyms.ps1" 1>>C:\SOMEPATH\unattended-updates\log.txt 2>&1 | |
echo %date% %time% DONE >> C:\SOMEPATH\unattended-updates\log.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default partial alphanumeric_keys modifier_keys | |
xkb_symbols "basic" { | |
include "us(intl)" | |
name[Group1]= "Havasi (US)"; | |
// From altgr-intl | |
key <TLDE> { [ grave, asciitilde, dead_grave, dead_tilde ] }; | |
key <AC11> { [apostrophe,quotedbl, dead_acute, dead_diaeresis ] }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
# -*- encoding: utf-8 -*- | |
# Send out "personalised" text mails to a list of people, | |
# without Cc hacks and without sharing the addresses. | |
# Uses a gmail account, with "less secure apps" enabled. | |
# Awaits own address in environment var "U" and password in environment var "P" | |
# $ [email protected] P=secret ./thisscript.py | |
# Note: leading space in the terminal should exlude the command from history | |
import smtplib, ssl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" This goes into ~/.vim/syntax/todo.vim | |
" Auto registration: $MYVIMRC << au BufRead,BufNewFile TODO set filetype=todo | |
if exists("b:current_syntax") | |
finish | |
endif | |
" # Header | |
syn match headLine '\v#.*$' | |
" > doing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import readchar | |
import time | |
from os import system, name | |
def clearscreen(): | |
# for windows | |
if name == 'nt': | |
_ = system('cls') | |
# for mac and linux(here, os.name is 'posix') | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rs = document.getElementsByClassName("issuerow"); | |
for (let i = 0; i < rs.length; i++) | |
if (rs[i].firstElementChild.firstElementChild) | |
rs[i].hidden = true; |
- printed keys
- Shift
- AltGr
- Shift+AltGr
0123456789öüó
§'"+!%/=()ÖÜÓ
¬~ˇ^˘°˛`˙´˝¨¸
¬~ˇ^˘°˛`˙´˝¨¸
NewerOlder