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
| 127.0.0.1 googleads.g.doubleclick.net | |
| 127.0.0.1 marketgid.com lady.marketgid.com | |
| 127.0.0.1 b.ddestiny.ru | |
| 127.0.0.1 imgn.dt00.net mg.dt00.net | |
| 127.0.0.1 begun.ru | |
| 127.0.0.1 colo1.adriver.ru adriver.ru un1.adriver.ru ad.adriver.ru content.adriver.ru | |
| 127.0.0.1 tns-counter.ru | |
| 127.0.0.1 banners.gamexp.ru | |
| 127.0.0.1 counter.spylog.com spylog.com | |
| 127.0.0.1 images.gamenet.ru gamenet.ru go.gamenet.ru |
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 com.ffbit.twitter; | |
| import java.io.Serializable; | |
| import java.util.HashSet; | |
| import java.util.Set; | |
| import javax.persistence.Access; | |
| import javax.persistence.AccessType; | |
| import javax.persistence.Basic; | |
| import javax.persistence.CascadeType; |
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 apt-get install postgresql-9.1 postgresql-client-9.1 postgresql-contrib-9.1 pgadmin3 -t squeeze-backports | |
| $ nmap localhost | |
| $ sudo -u postgres psql | |
| # CREATE ROLE your_uid WITH SUPERUSER LOGIN PASSWORD 'pass'; | |
| # CREATE DATABASE your_uid; | |
| # \q | |
| $ psql -U your_uid -W |
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 | |
| bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
| echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile | |
| source ~/.bash_profile | |
| rvm pkg install openssl | |
| rvm pkg install zlib | |
| rvm pkg install autoconf |
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 | |
| java_path=$(readlink -f `which java`) | |
| export JAVA_HOME=$(dirname `dirname $java_path`) | |
| export PATH=$PATH:$JAVA_HOME/bin |
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
| log.debug("Started extracting resources."); | |
| final String ZIP_FILE_PATH_SEPARATOR = "/"; | |
| URL location = AClassFromTheNeededJar.class.getProtectionDomain().getCodeSource() | |
| .getLocation(); | |
| String jarPath = location.getPath(); | |
| try { | |
| JarInputStream jar = new JarInputStream(new FileInputStream(jarPath)); | |
| JarEntry jarEntry = null; |
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
| import java.util.Arrays; | |
| import java.util.Random; | |
| public class RandomMatrix { | |
| public static void main(String... args) { | |
| double[][][] matrix = getMatrix(40); | |
| print(matrix); | |
| } |
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
| import java.util.LinkedList; | |
| import java.util.Queue; | |
| import java.util.Scanner; | |
| public class GC { | |
| private static Queue<Object> queue = new LinkedList<Object>(); | |
| private static Scanner scanner = new Scanner(System.in); | |
| public static void main(String...args) { |
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://docs.rubygems.org/read/chapter/11 | |
| install: --no-rdoc --no-ri | |
| update: --no-rdoc --no-ri |
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 | |
| DB="dbname" | |
| HOST="host" | |
| UNAME="uname" | |
| dropdb --host $HOST --port=5432 --username $UNAME $DB | |
| createdb --host $HOST --port 5432 --username $UNAME --owner $UNAME $DB |