-
Show table DDL:
select dbms_metadata.get_ddl('TABLE', '<your table name>') from dual
-
List all of the (available) tables:
select * from user_tables
This file contains hidden or 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
sudo find /path/to/ -name "*.jar" -exec sh -c 'jar -tf {}| grep -H --label {} package' \; |
This file contains hidden or 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
# show lines 1000-1010 in "filename" file | |
sed -n '{1000,+100p}' filename | |
# another option is more simplistic syntax: | |
sed -n 1000,+10p filename | |
# also display line numbers: | |
sed -n '1000,+10{p;=}' filename | |
# other useful one-liners are available here: http://sed.sourceforge.net/sed1line.txt |
This file contains hidden or 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
# cd to ANDROID_SDK folder: | |
cd /opt/android-sdk-linux | |
# show which packages are available for install (for example, for Build Tools 25:) | |
./tools/android list sdk --all | grep Build | grep 25 | |
# 3- Android SDK Build-tools, revision 25.0.2 | |
# 4- Android SDK Build-tools, revision 25.0.1 | |
# 5- Android SDK Build-tools, revision 25 | |
# 25- Android SDK Build-tools, revision 19.0.2 (Obsolete) |
This file contains hidden or 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
/usr/sbin/sshd -p 2222 -ddd |
This file contains hidden or 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
#!/bin/bash | |
curl -v http://u.rl/path/; echo $? | |
# -v prints headers; $? is an exit code of last called command |
This file contains hidden or 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
du -BM -s * | sort |
This file contains hidden or 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-XML -XPath "response/action/provider/@fullName" -Path providers.xml | Select-Object -ExpandProperty Node |