- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
| # Last updated: 08/24/2916 | |
| # | |
| # Total instructions available: 18 | |
| # | |
| # https://docs.docker.com/engine/reference/builder/ | |
| # | |
| # You can use a .dockerignore file in the same context directory as | |
| # your Dockerfile to ignore files in the context before sending them | |
| # to the Docker daemon for building to speed up building. |
заходим в news feed preferences
Unfollow
Скроллим до упора вниз
Выполняем в консоли
var a = document.querySelectorAll('[aria-label$="Following"]');
Автор — kirill@pimenov.cc
Лицензия — CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/deed.ru
Во-первых, гит — это тоже такой себе блокчейн.
Собственно блок-чейн, цепочка блоков — это структура, где каждое текущее положение определяется хешем, который вычисляется из прошлого по функции new_block = hash(old_block+metadata+data)
Где data — это собственно полезная нагрузка, скажем информация из каких файлов в какие какие строки переместились, или с каких кошельков на какие деньги переводятся.
| package main | |
| import ( | |
| git "github.com/libgit2/git2go" | |
| "log" | |
| ) | |
| func credentialsCallback(url string, username string, allowedTypes git.CredType) (git.ErrorCode, *git.Cred) { | |
| ret, cred := git.NewCredSshKey("git", "/home/vagrant/.ssh/id_rsa.pub", "/home/vagrant/.ssh/id_rsa", "") | |
| return git.ErrorCode(ret), &cred |
| #!/bin/bash -e | |
| # A SHORT DESCRIPTION OF YOUR SCRIPT GOES HERE | |
| # USAGE: | |
| # DESCRIPTION OF ENV VARS HERE | |
| ############################################################################### | |
| set -e # exit on command errors (so you MUST handle exit codes properly!) | |
| set -o pipefail # capture fail exit codes in piped commands | |
| #set -x # execution tracing debug messages | |
| # Get command info |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/binary" | |
| "flag" | |
| "fmt" | |
| "math" | |
| "os" | |
| ) |
| <useragentswitcher> | |
| <folder description="Browsers - Windows"> | |
| <folder description="Legacy Browsers"> | |
| <useragent description="Arora 0.6.0 - (Vista)" useragent="Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/527 (KHTML, like Gecko, Safari/419.3) Arora/0.6 (Change: )" appcodename="" appname="" appversion="" platform="" vendor="" vendorsub=""/> | |
| <useragent description="Avant Browser 1.2" useragent="Avant Browser/1.2.789rel1 (http://www.avantbrowser.com)" appcodename="" appname="" appversion="" platform="" vendor="" vendorsub=""/> | |
| <useragent description="Chrome 4.0.249.0 (Win 7)" useragent="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.0 Safari/532.5" appcodename="" appname="" appversion="" platform="" vendor="" vendorsub=""/> | |
| <useragent description="Chrome 5.0.310.0 (Server 2003)" useragent="Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.310.0 Safari/532.9" appcodename="" appname="" |
| func readLine(path string) { | |
| inFile, _ := os.Open(path) | |
| defer inFile.Close() | |
| scanner := bufio.NewScanner(inFile) | |
| scanner.Split(bufio.ScanLines) | |
| for scanner.Scan() { | |
| fmt.Println(scanner.Text()) | |
| } | |
| } |