~/bin/mysql_table_to_big_query.sh bucket_name schema_name table_name
~/bin/mysql_schema_to_big_query.sh bucket_name \[schema_name\].
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 | |
# Check if xidell is present (required for extracting from webpage using xpath) | |
if ! command -v xidel &> /dev/null | |
then | |
printf "\n\nCould not find xidel \n\n" | |
echo "You can install it with (on a mac):" | |
echo "brew install xidel" | |
exit | |
fi |
Make Windows PC's shortcut act like macOS (Mac OS X) (using AutoHotkey (ahk) script)
With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.
Here's some examples of how this script work:
- Visualizing Concurrency in Go 🔥
- Concurrency Patterns In Go - Arne Claus - Golang UK Conference 2017
- https://go.dev/tour/welcome/1 Tour of all important Go language features can be done online.
- https://go.dev/doc/effective_go Introduces a lot of Go idioms, patterns, conventions and philosophies.
- https://go.dev/doc/faq The official FAQ should answer all your questions.
- https://gobyexample.com/ Short and hands-on introduction to Go using annotated example programs.
- https://quii.gitbook.io/learn-go-with-tests/ Learn go with TDD.
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
/* | |
A data race happens when processes have to access the same variable concur | |
rently i.e. one process reads from a memory location while another simultaneously | |
writes to the exact same memory location. | |
*/ | |
func main() { | |
number := 0; | |
go func(){ |
- Like
go get
but for Go tools: https://github.com/bwplotka/bingo - https://github.com/sirkon/go-imports-rename
- https://github.com/KSubedi/gomove
- Visualize Go Dependency Trees: https://github.com/KyleBanks/depth
- Make temporary edits to your Go module dependencies: https://github.com/rogpeppe/gohack
- https://github.com/icholy/gomajor
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
func main() { | |
ch1 := make(chan int) | |
ch2 := make(chan int) | |
go func() { | |
v := 1 | |
ch1 <- v | |
v2 := <-ch2 | |
fmt.Println(v, v2) | |
}() | |
v := 2 |
Visit https://twitter.com/settings/muted_keywords Open your browser's dev tools (note: this does work in Chrome) Paste the following code in:
const delayMs = 500; // change this if you feel like its running too fast
const keywords = `ActivityTweet
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
// ==UserScript== | |
// @name Termin Notifier | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://service.berlin.de/terminvereinbarung/* | |
// @icon https://www.google.com/s2/favicons?domain=berlin.de | |
// @grant none | |
// ==/UserScript== |
NewerOlder