This file contains 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
interface NodeItem { | |
cmd?: () => void; | |
pre?: NodeItem; | |
post?: NodeItem; | |
} | |
const root: NodeItem = { | |
cmd: () => console.log('just this'), | |
}; |
This file contains 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
import Axios from 'axios'; | |
import { Dispatch, Reducer, useCallback, useReducer } from 'react'; | |
interface IAxiosData<T> { | |
data?: T; | |
loading: boolean; | |
error?: Error; | |
} | |
enum UseFatchActions { |
This file contains 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"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Formulario Integrado 2.0</title> | |
<style> | |
body { | |
padding: 50px; | |
} |
This file contains 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"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Formulario Integrado 2.0</title> | |
<style> | |
body { | |
padding: 50px; | |
} |
This file contains 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"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Formulario Integrado 1.3.3</title> | |
<style> | |
body { | |
padding: 50px; | |
} |
This file contains 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
export PS1="> \[$(tput sgr0)\]\[\033[38;5;253m\]\A\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;7m\]@\[$(tput bold)\]\[$(tput sgr0)\]\[\033[38;5;166m\]\u\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;32m\][\[$(tput sgr0)\]\[\033[38;5;38m\]\w\[$(tput sgr0)\]\[\033[38;5;32m\]]\[$(tput sgr0)\]\[\033[38;5;7m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]" |
This file contains 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
sudo docker volume create pg-volume | |
sudo docker run --name postgres -e POSTGRES_PASSWORD=node@1234 -e POSTGRES_USER=node -v pg-volume:/var/lib/postgresql/data -p 5432:5432 -d postgres:9.4.19 |
This file contains 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
( | |
printf 'PID\tUSER\tAPPNAME\n' | |
printf '%s\t%s\t%s\n' "1" "john" "foo bar" | |
printf '%s\t%s\t%s\n' "12345678" "someone_with_a_long_name" "pop tart" | |
) | column -t -s $'\t' | |
# ref Patrick on https://unix.stackexchange.com/a/162916 |
This file contains 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
{ | |
"editor.renderWhitespace": "all", | |
"editor.wordWrap": "on", | |
"editor.insertSpaces": false, | |
"editor.renderControlCharacters": false, | |
"editor.renderIndentGuides": true, | |
"editor.tabCompletion": true, | |
"editor.formatOnType": true, | |
"search.exclude": { | |
"**/.git/objects/**": true, |
This file contains 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
sudo su | |
#senha do pc | |
su postgres | |
psql banco_a_ser_instalado | |
CREATE EXTENSION IF NOT EXISTS unaccent; | |
CREATE EXTENSION IF NOT EXISTS pg_trgm; |
NewerOlder