- przed warsztatami upewnij się, że:
- masz zainstalowanego i działającego (!) Dockera
- sprawdź to za pomocą
docker version
lubdocker container ls
- sprawdź to za pomocą
- masz zainstalowanego i działającego (!) Dockera
- Dobrze byłoby również mieć:
- zainstalowanego git'a
- jakiś edytor tekstu (polecane: VSCode)
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
/** | |
* Simulate a key event. | |
* @param {Number} keyCode The keyCode of the key to simulate | |
* @param {String} type (optional) The type of event : down, up or press. The default is down | |
* @param {Object} modifiers (optional) An object which contains modifiers keys { ctrlKey: true, altKey: false, ...} | |
*/ | |
function simulateKey (keyCode, type, modifiers) { | |
var evtName = (typeof(type) === "string") ? "key" + type : "keydown"; | |
var modifier = (typeof(modifiers) === "object") ? modifier : {}; |
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/bash | |
# This uses gpg to encrypt every file in a directory as separate | |
# encrypted files | |
# Usage | |
# ./encrypt-all.sh ./dir-of-files-to-encrypt "PASSPHRASE" | |
FILES="$1" | |
PASSPHRASE="$2" |
Zbiór przeniesiony z gist do jednego repo w celu łatwiejszego zarządzania.
Zachęcam do przejrzenia pozostałych zbiorów z repozytorium, oraz do aktywnego dodawania własnych komend
When you modify a file in your repository, the change is initially unstaged. In order to commit it, you must stage it—that is, add it to the index—using git add
. When you make a commit, the changes that are committed are those that have been added to the index.
git reset
changes, at minimum, where your current branch is pointing. The difference between --mixed
and --soft
is whether or not your index is also modified. So, if we're on branch master
with this series of commits:
- A - B - C (master)
HEAD
points to C
and the index matches C
.