I hereby claim:
- I am gunith on github.
- I am gunith (https://keybase.io/gunith) on keybase.
- I have a public key whose fingerprint is 74C5 3941 376C 56AA 5F15 7E1B 3E11 CFFF 3ABB DF44
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
### Setup a wifi Access Point on Ubuntu 12.04 (or its derivatives). | |
### make sure that this script is executed from root | |
if [ $(whoami) != 'root' ] | |
then | |
echo " | |
This script should be executed as root or with sudo: | |
sudo $0 | |
" |
SELECT path | |
FROM | |
(SELECT ID , | |
PARENT_ID , | |
FILE_NAME , | |
SYS_CONNECT_BY_PATH(FILE_NAME, '/') AS path, | |
RANK() OVER (ORDER BY LENGTH(SYS_CONNECT_BY_PATH(FILE_NAME, '/')) DESC) AS rank | |
FROM files | |
WHERE id=? CONNECT BY PRIOR id = parent_id | |
) |
/** | |
* Get a value from a {@link Map} or get a default value casted to a particular type | |
* | |
* @param <K> Type of Key | |
* @param <V> Type of Value | |
* @param <T> Type expected of return (to what we're casting the object) | |
* @param map The source {@link Map} | |
* @param key The key in the {@link Map} | |
* @param defaultValue The default value for the key in the {@link Map} | |
* @param retType The Class of the return type |
/** | |
* Get a value from a {@link Map} or get a default value | |
* | |
* @param <K> Type of Key | |
* @param <V> Type of Value | |
* @param map The {@link Map} | |
* @param key The key in the {@link Map} | |
* @param defaultValue The default value for the key in the {@link Map} | |
* @return The value from {@link Map} | |
*/ |
su - oracle # Login as Oracle. Actually, its better to login to the machine as Oracle than this | |
lsnrctl start # lsnrctl manages the Oracle listener processes. Start it | |
dbshut $ORACLE_HOME # Shutdown Oracle | |
dbstart $ORACLE_HOME # Start Oracle | |
lsnrctl stop # Stop lsnrctl |
/** | |
* Returns a {@link Stack} having a Tree ordered in Depth First whose root is passed as the Parameter | |
* | |
* @param <T> The implementation of {@link Node} | |
* @param treeRoot The root of the tree | |
* @return The {@link Stack} of T | |
*/ | |
public static <T extends Node> Stack<T> depthFirstOrder(final T treeRoot) | |
{ | |
// Main stack, where the important stuff go |