(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:jee="http://www.springframework.org/schema/jee" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd | |
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd"> |
diskutil erasevolume HFS+ "diskname" `hdiutil attach -nomount ram://2048` | |
#The line above mounts disk with name "diskname" and with size of 2048 blocks (~1 MB) | |
#More info: http://osxdaily.com/2007/03/23/create-a-ram-disk-in-mac-os-x/ | |
#Convert blocks to megabytes and vise versa - http://www.unitconversion.org/data-storage/blocks-to-megabytes-conversion.html | |
#Note: Disk will be unmounted and all data will be lost on: empty battery, system reboot. | |
#How to save data on RAM disk on reboot, sleep or empty battery: http://puregin.org/setting-up-a-persistent-ramdisk-on-MacOS |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ "key": "cmd+shift+r", "command": "workbench.action.quickOpen" }, | |
{ "key": "cmd+shift+f", "command": "editor.action.format", "when": "editorTextFocus" }, | |
{ "key": "alt+cmd+down", "command": "editor.action.copyLinesDownAction", "when": "editorTextFocus" }, | |
{ "key": "alt+cmd+up", "command": "editor.action.copyLinesUpAction", "when": "editorTextFocus" }, | |
{ "key": "alt+down", "command": "editor.action.moveLinesDownAction", "when": "editorTextFocus" }, | |
{ "key": "alt+up", "command": "editor.action.moveLinesUpAction", "when": "editorTextFocus" }, | |
{ "key": "cmd+d", "command": "editor.action.deleteLines", "when": "editorTextFocus" }, | |
{ "key": "alt+cmd+r", "command": "editor.action.rename", "when": "editorTextFocus" }, |
#Projeto Biohacking com rails e angular 1
#Ferramentas necessárias ##Nodejs e npm
#!/bin/bash | |
# Maintain for @sowe Rafael Valenzuela <ravamo@gmail.com> | |
# redcloverbi.wordpress.com for more information | |
# basic backup and restore script for pentaho in Production enviroment doc | |
# https://help.pentaho.com/Documentation/6.1/0P0/000/020 | |
# https://help.pentaho.com/Documentation/6.1/0P0/000/Backup_and_Restore_Pentaho_Repositories | |
set -e | |
set -u |
Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.
The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.
For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.
# Find the latest version on https://github.com/creationix/nvm#install-script | |
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
# Add in your ~/.zshrc the following: | |
export NVM_DIR=~/.nvm | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" | |
$ source ~/.zshrc |