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
Getting an error after migrating to a new system when adding private keys to ssh-agent | |
/usr/bin/keychain -q --nogui $HOME/.ssh/id_rsa.key | |
* Error: Problem adding; giving up | |
Manually adding the key shows a permission problem | |
ssh-add ~/.ssh/id_rsa.key | |
chmod 700 /home/pwi/.ssh/*.key | |
In .bashrc |
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
location /websocket/ { | |
rewrite ^/websocket/(.*)$ /$1 break; | |
proxy_pass $websocket; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<# | |
.SYNOPSIS | |
Compare and copy files in directories | |
.DESCRIPTION | |
Compared files in folder a (leftdir) to files in folder b (rightdir). | |
If the file is not in folder b and a third directory is defined, the file will be copied there. | |
See Get-Help .\CompareFolders.ps1 -Examples | |
.EXAMPLE |
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
.loader { | |
left: 50%; | |
top: 50%; | |
position: fixed; | |
-webkit-transform: translate(-50%, -50%); | |
transform: translate(-50%, -50%); } | |
.loader #spinner { | |
box-sizing: border-box; | |
stroke: #673AB7; | |
stroke-width: 3px; |
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
#config.py | |
CONFIG = { | |
'key1': 'value1', | |
'key2': 'value2' | |
} | |
#script.py | |
import config | |
print config.CONFIG['key1'] |
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
sudo tee -a file > /dev/null << EOF | |
text to add at bottom | |
EOF |
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
DISPLAY=:0 xrandr --auto |
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 off | |
for /f "tokens=2" %%i in ('robocopy /?^|find "Gestartet"') do ( | |
if "%%i" == "Mon" set "WoTag=Montag" | |
if "%%i" == "Tue" set "WoTag=Dienstag" | |
if "%%i" == "Wed" set "WoTag=Mittwoch" | |
if "%%i" == "Thu" set "WoTag=Donnerstag" | |
if "%%i" == "Fri" set "WoTag=Freitag" | |
if "%%i" == "Sat" set "WoTag=Samstag" | |
if "%%i" == "Sun" set "WoTag=Sonntag" | |
) |
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 off | |
net use \\BACKUP Passw0rd /user:backup_user | |
C:\Windows\System32\wbadmin.exe start backup -backupTarget:\\BACKUP\Sicherung -allCritical -vssFull -systemState -quiet |
NewerOlder