codesign -vvv /Applications/GoLand.app/Contents/MacOS/goland
codesign -vvv /Applications/GoLand.app/Contents/plugins/go/lib/dlv/mac/dlv
| """An example of writing an API to scrape hacker news once, and then enabling usage everywhere""" | |
| import hug | |
| import requests | |
| @hug.local() | |
| @hug.cli() | |
| @hug.get() | |
| def top_post(section: hug.types.one_of(('news', 'newest', 'show'))='news'): | |
| """Returns the top post from the provided section""" |
| CREATE USER 'newuser'@'%' IDENTIFIED BY 'user_password'; | |
| DROP user 'qor'@'localhost'; | |
| CREATE USER 'qor'@'%' IDENTIFIED BY 'qor'; | |
| CREATE DATABASE qor_test; | |
| GRANT ALL ON qor_test.* TO 'qor'@'localhost'; | |
| GRANT ALL ON qor_test.* TO 'qor'@'%'; |
codesign -vvv /Applications/GoLand.app/Contents/MacOS/goland
codesign -vvv /Applications/GoLand.app/Contents/plugins/go/lib/dlv/mac/dlv
ssh -T [email protected]
ssh-add ~/.ssh/id_rsa
chmod 700 ~/.ssh/id_rsa
git push origin master to test
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| func main() { | |
| var i interface{} | |
| describe(i) |
| package main | |
| import ( | |
| "fmt" | |
| "gopkg.in/go-playground/validator.v9" | |
| ) | |
| // Test ... | |
| type Test struct { |
| module.exports = { | |
| config: { | |
| // default font size in pixels for all tabs | |
| fontSize: 12, | |
| // font family with optional fallbacks | |
| fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
| // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
| cursorColor: 'rgba(248,28,229,0.8)', |
| #!/bin/bash | |
| if [ `uname` = "SunOS" ]; then | |
| alias grep='/usr/gnu/bin/grep' | |
| fi |
| --https://www.citusdata.com/blog/2018/05/15/fun-with-sql-recursive-ctes/ | |
| --Return: x | |
| WITH RECURSIVE tens(x) AS ( | |
| SELECT 10 | |
| UNION | |
| SELECT x + 10 FROM tens WHERE x + 10 <= 100 | |
| ) | |
| SELECT x FROM tens; | |
| --Without having to drop down to a procedural language like plpgsql or plv8. |