Skip to content

Instantly share code, notes, and snippets.

@hdrees
hdrees / package.json
Created September 18, 2021 19:38
Beispiel für git run ...
{
"name": "my-app",
"version": "0.0.0",
"dependencies": {
"browserify": "~2.36.1",
"less": "~1.5.1"
},
"devDependencies": {
"watchify": "~0.4.1",
"catw": "~0.2.0"
@hdrees
hdrees / git.sh
Last active August 21, 2019 20:33
Git Hilfe
# Initialize a new Git repository
git init
### Git add ###
# add a specific file to staging
git add filename.py
# stage new, modified, or deleted files
git add -A
@hdrees
hdrees / netzlaufwerk_verbinden_v2.bat
Created August 20, 2019 06:22
Windows: Netzlaufwerk verbinden
:: Batch-Datei verbindet Netzlaufwerke
:: erzeugen von shares.txt:
:: net use |find /i ":" >shares.txt
@echo off
for /f "tokens=1,2,3,4 delims= " %%a in (shares.txt) do (
net use %%b /d
@hdrees
hdrees / netzlaufwerk_verbinden_v1.bat
Last active August 20, 2019 06:20
Windows: Netzlaufwerk verbinden
@echo off
SET NetDrive=n:
SET Server=server\pfad
if not exist %NetDrive% (
echo Nicht verbunden: Verbinde Netzwerklaufwerk
net use %NetDrive% \\%Server% /savecred /persistent:no
@hdrees
hdrees / shell_snipptes.sh
Created August 12, 2019 05:54
Shell Snippets
# Make a directory and navigate to it
mkdir /foo/bar && cd $_
# Backup a file without typing it twice
cp /some/path/to/file.txt{,.bak}
# Backup every file in a folder
for file in * ; do cp $file $file.bak; done
# Repeat the last command with sudo