git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| httpsServer := &http.Server{ | |
| Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | |
| hj, isHJ := w.(http.Hijacker) | |
| if r.Header.Get("Upgrade") == "websocket" && isHJ { | |
| c, br, err := hj.Hijack() | |
| if err != nil { | |
| log.Printf("websocket websocket hijack: %v", err) | |
| http.Error(w, err.Error(), 500) | |
| return | |
| } |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title> </title> | |
| <link rel="stylesheet" type="text/css" href="http://cdn.jsdelivr.net/min/1.5/min.min.css"> | |
| <style> | |
| body,textarea,input,select { | |
| background:0; | |
| border-radius:0; | |
| font:16px sans-serif; |
| func openbrowser(url string) { | |
| var err error | |
| switch runtime.GOOS { | |
| case "linux": | |
| err = exec.Command("xdg-open", url).Start() | |
| case "windows": | |
| err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() | |
| case "darwin": | |
| err = exec.Command("open", url).Start() |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
You have to do 2 things in order to allow your container to access your host's postgresql database
Obs: By "Host" here I mean "the server where docker is running on".
Find your postgresql.conf (in case you don't know where it is)
$ sudo find / -type f -name postgresql.conf
| useEffect(() => { | |
| console.log(“ComponentDidUpdate” | |
| }); | |
| useEffect(() => { | |
| console.log(“ComponentDidMount” | |
| },[]); | |
| useEffect(() => { | |
| console.log(“will run when x changes” |
| userEffect(() => { | |
| console.log(“ComponentDidUpdate” | |
| }); | |
| userEffect(() => { | |
| console.log(“ComponentDidMount” | |
| }); | |
| userEffect(() => { | |
| console.log(“will run when x changes” |
| #lock | |
| defaults write com.apple.dock contents-immutable -bool true | |
| #unlock | |
| defaults write com.apple.dock contents-immutable -bool false |
| import React from 'react'; | |
| import { | |
| View, | |
| Text, | |
| FlatList, | |
| StyleSheet | |
| } from 'react-native'; | |
| import { ListItem } from 'react-native-elements'; | |
| class Users extends React.Component { |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>com.apple.security.cs.allow-jit</key> | |
| <true/> | |
| <key>com.apple.security.cs.allow-unsigned-executable-memory</key> | |
| <true/> | |
| <key>com.apple.security.cs.allow-dyld-environment-variables</key> | |
| <true/> |