This file contains hidden or 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
| # 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 |
This file contains hidden or 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 | |
| SET NetDrive=n: | |
| SET Server=server\pfad | |
| if not exist %NetDrive% ( | |
| echo Nicht verbunden: Verbinde Netzwerklaufwerk | |
| net use %NetDrive% \\%Server% /savecred /persistent:no |
This file contains hidden or 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
| :: 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 |
This file contains hidden or 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
| # 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 |
This file contains hidden or 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
| { | |
| "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" |