Skip to content

Instantly share code, notes, and snippets.

View darrenrogan's full-sized avatar

Darren Rogan darrenrogan

View GitHub Profile
Mine:
https://www.youtube.com/channel/UCyHVW0gl0HxDpuAFEW5xwJA
Locals:
https://www.youtube.com/user/BadenURen
https://www.youtube.com/channel/UCr8O8l5cCX85Oem1d18EezQ
https://www.youtube.com/watch?v=wifKdSG-KZs
Vloggy + Tech Educator
@darrenrogan
darrenrogan / aws-couchdb-setup.md
Created May 29, 2020 03:56 — forked from Ravenstine/aws-couchdb-setup.md
Fast CouchDB setup in AWS

Fast CouchDB setup in AWS

CouchDB is a NoSQL database for storing JSON documents. It comes with a REST API out of the box so your client applications can persist data while requiring you to write little or no server-side code. CouchDB's killer feature is its ability to easily replicate, which allows for horizontal scaling, easy backup, and for client adapters to synchronize documents. This is perfect if you want to write an application that is offline-first. It's become my go-to database when creating new

SELECT pg_terminate_backend(pid)
FROM pg_stat_activity
WHERE datname = 'mydb';

Keybase proof

I hereby claim:

  • I am darren-rogan on github.
  • I am darrenrogan (https://keybase.io/darrenrogan) on keybase.
  • I have a public key ASCg-SbYyrkueRKfdmQbYJp4Pl3ITS5r5yMHahptKMrd7wo

To claim this, I am signing this object:

@darrenrogan
darrenrogan / Unicode table
Created January 2, 2020 05:01 — forked from ivandrofly/Unicode table
Unicode table - List of most common Unicode characters *
Unicode table - List of most common Unicode characters *
* This summary list contains about 2000 characters for most common ocidental/latin languages and most printable symbols but not chinese, japanese, arab, archaic and some unprintable.
Contains character codes in HEX (hexadecimal), decimal number, name/description and corresponding printable symbol.
What is Unicode?
Unicode is a standard created to define letters of all languages ​​and characters such as punctuation and technical symbols. Today, UNICODE (UTF-8) is the most used character set encoding (used by almost 70% of websites, in 2013). The second most used character set is ISO-8859-1 (about 20% of websites), but this old encoding format is being replaced by Unicode.
How to identify the Unicode number for a character?
Type or paste a character:
https://www.pyimagesearch.com/2018/08/17/install-opencv-4-on-macos/
cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
    -D PYTHON3_LIBRARY=`python -c 'import subprocess ; import sys ; s = subprocess.check_output("python-config --configdir", shell=True).decode("utf-8").strip() ; (M, m) = sys.version_info[:2] ; print("{}/libpython{}.{}.dylib".format(s, M, m))'` \
    -D PYTHON3_INCLUDE_DIR=`python -c 'import distutils.sysconfig as s; print(s.get_python_inc())'` \
    -D PYTHON3_EXECUTABLE=$VIRTUAL_ENV/bin/python \
    -D BUILD_opencv_python2=OFF \
    -D BUILD_opencv_python3=ON \
aws rds reboot-db-instance --db-instance-identifier db-dev1
dropdb -h db.dev1.server.internal -U dbuser databasename
createdb -h db.dev1.server.internal -U dbuser databasename
psql -h db.dev1.server.internal -U dbuser databasename < db.sql
@darrenrogan
darrenrogan / AWS remove delete markers from S3
Created October 16, 2018 22:54
AWS CLI to remove delete markers (to enable the deletion of the S3 bucket)
aws s3api delete-objects --bucket bucket-name --delete "$(aws s3api list-object-versions --bucket "bucket_name" --output=json --query='{Objects: DeleteMarkers[].{Key:Key,VersionId:VersionId}}')"
@darrenrogan
darrenrogan / export.sh
Created July 30, 2018 03:42 — forked from chrisdiana/export-cognito-users.sh
Export AWS Cognito User Pool
aws --profile production cognito-idp list-users --user-pool-id us-west-2_XXXXXXXXX --output table > ~/users.txt