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
function svn | |
{ | |
# rebuild args to get quotes right | |
CMD= | |
for i in "$@" | |
do | |
if [[ "$i" =~ \ ]] | |
then | |
CMD="$CMD \"$i\"" | |
else |
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
mkdir ~/pg_backup/ | |
sudo -u postgres pg_dump test > pg_dump | |
tar -cvf ~/pg_dump.tar ~/pg_dump | |
rm -rf ~/pg_dump | |
#https://github.com/andreafabrizi/Dropbox-Uploader | |
~/dropbox_uploader.sh upload ~/pg_dump.tar /pg_dump.tar | |
rm ~/pg_dump.tar |
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
# http://wiki.postgresql.org/wiki/YUM_Installation | |
#sudo yum erase postgresql93* | |
cd ~ | |
curl -O http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm | |
sudo rpm -ivh pgdg-centos93-9.3-1.noarch.rpm | |
rm pgdg-centos93-9.3-1.noarch.rpm | |
sudo yum install postgresql93-server | |
sudo /sbin/service postgresql-9.3 initdb --locale=en_US | |
sudo /sbin/chkconfig postgresql-9.3 on | |
sudo /sbin/service postgresql-9.3 start |
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
mkdir ~/db_backup/ | |
mongodump --out ~/db_backup/ --db local | |
tar -cvf ~/db_backup.tar ~/db_backup | |
rm -rf ~/db_backup | |
#https://github.com/andreafabrizi/Dropbox-Uploader | |
~/dropbox_uploader.sh upload ~/db_backup.tar /db_backup.tar | |
rm ~/db_backup.tar |
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 ~ | |
sudo wget http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.2.1.v20140609.tar.gz -O jetty.tar.gz | |
tar -xf jetty.tar.gz | |
rm -rf jetty.tar.gz | |
mv jetty-* jetty | |
sudo /usr/sbin/useradd jetty | |
sudo mv jetty /srv/ |
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
Exception in thread "main" java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of test/Test.notNull must not be null | |
at test.Test.notNull(Test.java) | |
at test.Test.main(Test.java:7) |
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
Compiled from "Simple.java" | |
public class test.Simple extends java.lang.Object{ | |
public test.Simple(); | |
Code: | |
0: aload_0 | |
1: invokespecial #9; //Method java/lang/Object."<init>":()V | |
4: return | |
public java.lang.String testMethod(int, java.lang.String, java.lang.String); | |
Code: |
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
Compiled from "Simple.java" | |
public class test.Simple extends java.lang.Object{ | |
public test.Simple(); | |
Code: | |
0: aload_0 | |
1: invokespecial #1; //Method java/lang/Object."<init>":()V | |
4: return | |
public java.lang.String testMethod(int, java.lang.String, java.lang.String); | |
Code: |
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
package test; | |
import org.jetbrains.annotations.NotNull; | |
public class Test { | |
public static void main(String[] args) { | |
notNull(null); | |
} | |
private static void notNull(@NotNull String arg) { |
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
package test; | |
import org.jetbrains.annotations.Nullable; | |
import org.jetbrains.annotations.NotNull; | |
public class Simple { | |
public String testMethod(int a, @NotNull String v, @Nullable String b) { | |
return null; | |
} | |
} |
NewerOlder