I hereby claim:
- I am wangbus on github.
- I am jianshi (https://keybase.io/jianshi) on keybase.
- I have a public key ASBc6HSYPYFK4RTmUI5-QpncuEJNPFvH3nl8Gf46PMCs8Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
CREATE INDEX index_posts_lookup ON posts USING btree (thread_id, created_at); | |
CREATE INDEX index_posts_on_created_at ON posts USING btree (created_at); | |
CREATE INDEX index_posts_on_thread_id ON posts USING btree (thread_id); | |
CREATE INDEX index_posts_on_thread_id_position ON posts USING btree (thread_id, "position"); | |
CREATE INDEX index_posts_on_user_id ON posts USING btree (user_id); | |
CREATE INDEX index_posts_on_user_id_and_created_at ON posts USING btree (user_id, created_at DESC); | |
CREATE INDEX index_posts_on_user_id_and_thread_id ON posts USING btree (user_id, thread_id); | |
CREATE UNIQUE INDEX index_posts_thread_id_and_position ON posts USING btree (thread_id, "position"); | |
" colorscheme google | |
set shell=bash | |
colorscheme pw | |
" set guifont=monofur:h12 | |
set guifont=Hack:h12 | |
" set guifont=Fantasque\ Sans\ Mono:h14 | |
inoremap jk <ESC> | |
set ts=2 | |
" bind \ (backward slash) to grep shortcut | |
command -nargs=+ -complete=file -bar Ag silent! grep! <args>|cwindow|redraw! |
#!/bin/bash | |
sudo apt-get install vim curl zsh git build-essential | |
wget https://thoughtbot.github.io/rcm/debs/rcm_1.3.0-1_all.deb | |
sha=$(sha256sum rcm_1.3.0-1_all.deb | cut -f1 -d' ') | |
[ "$sha" = "2e95bbc23da4a0b995ec4757e0920197f4c92357214a65fedaf24274cda6806d" ] && \ | |
sudo dpkg -i rcm_1.3.0-1_all.deb | |
# switch to zsh - | |
# chsh -s $(which zsh) |
SHOW rds.extensions; | |
rds.extensions | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
---------------------- | |
btree_gin,btree_gist,chkpass,citext,cube,dblink,dict_int,dict_xsyn,earthdistance,fuzzystrmatch,hstore,intagg,intarray,ip4r,isn,ltree,pgcrypto,pgrowlocks,pgstattuple,pg_buffercac | |
he,pg_prewarm,pg_stat_statements,pg_trgm,plcoffee,plls,plperl,plpgsql,pltcl,plv8,postgis,postgis_tiger_geocoder,postgis_topology,postgres_fdw,sslinfo,tablefunc,test_parser,tsearc | |
h2,unaccent,uuid-ossp |
" colorscheme google | |
set shell=bash | |
colorscheme obsidian2 | |
set guifont=monofur:h12 | |
" set guifont=Fantasque\ Sans\ Mono:h14 | |
inoremap jk <ESC> | |
set ts=2 | |
" bind \ (backward slash) to grep shortcut | |
command -nargs=+ -complete=file -bar Ag silent! grep! <args>|cwindow|redraw! | |
nnoremap \ :Ag<SPACE> |
(function() { | |
angular | |
.module('hnlio.security') | |
.factory('UnauthorizedInterceptor', ['$rootScope', '$q', '$injector', Interceptor]) | |
.config(['$httpProvider', Configuration]); | |
function Interceptor($rootScope, $q, $injector) { | |
var UNAUTHORIZED = 401; | |
return { | |
responseError: function(response) { |
(function() { | |
angular | |
.module('hnlio.security') | |
.factory('AuthenticationHeaderInterceptor', [Interceptor]) | |
.config(['$httpProvider', Configuration]); | |
function Interceptor() { | |
return { | |
request: function (config) { | |
var token = window.localStorage['token']; |