Skip to content

Instantly share code, notes, and snippets.

View gusdewa's full-sized avatar
🏠
Working from home

Rahadian Dewandono gusdewa

🏠
Working from home
  • fita.co.id
  • Indonesia
  • 08:55 (UTC +07:00)
View GitHub Profile
@gusdewa
gusdewa / brew_packages.txt
Created July 17, 2021 11:28
Setup Mac Fresh
aom
bdw-gc
brotli
c-ares
cairo
clang-format
docbook
docbook-xsl
docker
fontconfig
pg_dump -h hostname -p 5432 -U username -Fc dbname > dbname_$(date +"%Y-%m-%d").dump
-- WITH CERT
pg_dump "port=<port> host=<host> user=<user> dbname=<db> sslcert=<cert> sslkey=<key> sslrootcert=<ca.crt> sslmode=verify-ca" -Fc > dbname_$(date +"%Y-%m-%d").dump
pg_restore -U username -d dbname_target -h hostname -p 5432 --disable-triggers filebackup.dump
@gusdewa
gusdewa / get_all_functions.sql
Last active June 16, 2021 05:36
Postgres List All Functions with Parameters
SELECT
routines.routine_name,
parameters.data_type,
parameters.ordinal_position
FROM
information_schema.routines
LEFT JOIN information_schema.parameters ON
routines.specific_name = parameters.specific_name
WHERE
routines.specific_schema = 'public'
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco feature enable -n=allowGlobalConfirmation
cup googlechrome adobereader firefox 7zip.install notepadplusplus.install vlc git.install nodejs.install putty.install powershell ruby visualstudiocode paint.net github python fiddler calibre 7zip yarn cmder foobar2000