-
Pull Requests should be small and easy to review.
-
Pull Requests should have a clean description and clean title, a helpful and structured description.
-
Rebase and merge is the preferred way to merge to main to achieve a clean and linear git commit history.
The interview
- introductions - 5 minutes
- discussion - 45 minutes
- q&a - 10 mintues
The goal
- to build a team of go developers that will work closely with the biostrand development team to develop their product
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
package main | |
import ( | |
"fmt" | |
"github.com/go-playground/validator/v10" | |
) | |
func main() { | |
validator := validator.New() |
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
bundle exec rbtrace -p $1 -e 'Thread.new{GC.start;require "objspace";io=File.open("/tmp/ruby-heap.dump", "w"); ObjectSpace.dump_all(output: io); io.close}' | |
bundle exec rbtrace -p $1 -e 'Thread.new{require "memory_profiler"; MemoryProfiler.start}' | |
bundle exec rbtrace -p $1 -e 'Thread.new{require "memory_profiler"; MemoryProfiler.stop.pretty_print(to_file: "/tmp/memory_profiler.log", detailed_report: true, scale_bytes: true)}' |
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
# Remove stopped containers | |
docker rm $(docker ps -a -q) | |
# Remove untagged images | |
docker rmi $(docker images -a | grep "^<none>" | awk '{print $3}') |
View which ports are open
iptables -vn -L
Guide to handle ports: https://phabricator.skroutz.gr/w/doc/uservm/
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>The HTML5 Herald</title> | |
<meta name="description" content="The HTML5 Herald"> | |
<meta name="author" content="SitePoint"> |
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
class Nanotime | |
def in_seconds(now = ::Time.current) | |
now.strftime("%s000000000") | |
end | |
def in_milliseconds(now = ::Time.current) | |
now.strftime("%s%3N000000") | |
end | |
def in_microseconds(now = ::Time.current) |
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
[ | |
{ "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": false } } | |
] |
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
{ | |
"font_size": 11, | |
"open_files_in_new_window": true, | |
"remember_full_screen": true, | |
"rulers": | |
[ | |
80 | |
], | |
"tab_size": 4, | |
"translate_tabs_to_spaces": false |
NewerOlder