Skip to content

Instantly share code, notes, and snippets.

View ilovejs's full-sized avatar
🐡
mememe, hv a good fish !

Michael Zhuang ilovejs

🐡
mememe, hv a good fish !
  • Sydney
  • 10:03 (UTC +10:00)
View GitHub Profile

codesign -vvv /Applications/GoLand.app/Contents/MacOS/goland

codesign -vvv /Applications/GoLand.app/Contents/plugins/go/lib/dlv/mac/dlv

@ilovejs
ilovejs / mac_git_tips.md
Last active August 13, 2019 05:13
tips for mac ssh

ssh -T git@github.com

ssh-add ~/.ssh/id_rsa

chmod 700 ~/.ssh/id_rsa

git push origin master to test

Links

@ilovejs
ilovejs / icework3_install.md
Last active August 6, 2019 00:43
how to run iceworks app or anything

simplified steps

git checkout branch release/3.0.3
cd packages/iceworks-server && yarn install

cd tools/iceworks-app/renderer && yarn install && yarn start
cd tools/iceworks-app && yarn install && yarn start

variations and pc setups

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 {
@ilovejs
ilovejs / hyper.js
Created July 9, 2019 10:02 — forked from coco-napky/hyper.js
Hyper config for git bash in Windows
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)',
@ilovejs
ilovejs / platform.sh
Created August 10, 2018 06:17 — forked from saicologic/platform.sh
fork of s3-bash
#!/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.
/* Inferred Table */
CREATE TABLE users (
id serial PRIMARY KEY,
email text
);
CREATE TABLE tasks (
id serial PRIMARY KEY,
name text,
project_id NUMERIC,
@ilovejs
ilovejs / CTE_not_fun.sql
Created July 12, 2018 01:10
CTE has limitation
--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.