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
cat /dev/urandom | tr -dc '[:alnum:]' | fold -w 64 | head -n 1 |
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
def normalize(s): | |
""" Expects a unicode string, not encoded byte string. | |
Returns unicode string | |
""" | |
out = ''.join( c for c in unicodedata.normalize("NFKD", s) | |
if not unicodedata.combining(c) ) | |
out = _regexAlpha.sub(' ', out) | |
out = _regexSpace.sub(' ', out) | |
out = out.strip().upper() | |
return out |
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 SBT_OPTS="-Xmx4G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=2G -Xss2M " |
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
select tablename, | |
HAS_TABLE_PRIVILEGE(tablename, 'select') as select, | |
HAS_TABLE_PRIVILEGE(tablename, 'insert') as insert, | |
HAS_TABLE_PRIVILEGE(tablename, 'update') as update, | |
HAS_TABLE_PRIVILEGE(tablename, 'delete') as delete, | |
HAS_TABLE_PRIVILEGE(tablename, 'references') as references | |
from pg_tables where schemaname='public' order by tablename; |
NewerOlder