Skip to content

Instantly share code, notes, and snippets.

View hiepndd's full-sized avatar
🖖
I work on stuff in Go

hiepndd

🖖
I work on stuff in Go
View GitHub Profile
@hiepndd
hiepndd / postgres-brew.md
Created March 9, 2019 10:13 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@hiepndd
hiepndd / rm_mysql.md
Created March 31, 2019 16:55 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

brew remove mysql

package main
import (
"fmt"
"sync"
"time"
)
type fork struct{ sync.Mutex }
package main
import (
"fmt"
"sync"
"time"
)
type fork struct{ sync.Mutex }
package main
import "fmt"
func double(x int) {
x += x
}
func main() {
package main
import "fmt"
func double(x *int) {
*x = *x + *x
}
func main() {
var a = 3
var p *T
var p *int
package main
import "fmt"
func main() {
var p *int
fmt.Println("p = ", p)
}
var x = 69
var p *int = &x