#standalone running of clojure and leiningen using only jars and no scripts java -Xbootclasspath/a:../clojure-1.4.0/clojure-1.4.0.jar -cp ../leiningen-2.0.0-preview6-standalone.jar clojure.main -m leiningen.core.main help
###avoid the error "this installation does not support your system architecture, (32/64 bits)"
export WINEPREFIX=~/.wine_ie8 #make sure this is a BRAND NEW DIRECTORY
export WINEARCH=win32 # make sure you do this BEFORE you install IE8
###download
http://www.dll-files.com/dllindex/dll-files.shtml?msctf
http://www.dll-files.com/dllindex/dll-files.shtml?msimtf
http://www.dll-files.com/dllindex/dll-files.shtml?uxtheme
# ls with dates formatted as timestamps | |
ls -ahltr --time-style=+%Y%m%d%H%M |
sudo apt-get install libavcodec-extra-53 | |
#This method re-encodes the audio. This method is slow, and lossy (mostly noticeable when using low bitrates), but the resulting mp3 file is properly playable in most media players. There are ways to merge mp3s without re-encoding, but the duration of the files can often not be properly detected by most players. | |
cvlc aa.mp3 bb.mp3 cc.mp3 --sout "#transcode{acodec=mp3,ab=<bitrate>,channels=2}:std{access=file,mux=raw,dst=1.mp3}" --sout-keep | |
#much faster | |
sudo apt-get install vbrfix libid3-tools libav-tools | |
cat 1.mp3 2.mp3 3.mp3 > tmp.mp3 | |
#OR | |
ffmpeg -i concat:file1.mp3\|file2.mp3 -acodec copy tmp.mp3 |
Products | |
* id : integer | |
* name : string | |
* date : date | |
* price : float | |
* items_available : integer | |
I created the index "testindex" using the mapping API, here is what I | |
find in the logs : |
-
list your local branches
git branch -avv
-
clone using ssh
git clone ssh://[email protected]/home/user/work/test1
-
very frequently, a common mistake that is made is that you clone from each other and then you might push to the wrong repository. To make sure you are pushing to the right repository,
- first make sure your remote urls are correct by running
git remote -v
origin http://[email protected]/abcd (fetch) origin http://[email protected]/abcd (push)
- first make sure your remote urls are correct by running
-
then do
git branch -a --contains 8a8abc4978c991d09a321ce692ac3366ea097051
#!/usr/bin/env bash | |
set -o errexit -o nounset -o pipefail | |
cd "$(mktemp --directory)" | |
git init | |
cat > test.txt <<EOF | |
alfa | |
bravo | |
charlie |
locate /usr/java/tomcat/temp/hsperfdata_tomcat/
to get processid of tomcat jps -J-Djava.io.tmpdir=/usr/java/tomcat/temp
/usr/java/jdk1.6.0_24/bin/jmap -J-Djava.io.tmpdir=/usr/local/tomcat-instance/traduscms/temp -heap 23420
sudo -u root /usr/java/jdk1.6.0_24/bin/jstack -J-Djava.io.tmpdir=/usr/local/tomcat-instance/tradusgv/temp -J-d64 10960
proxy_cache_path /var/lib/nginx/cache/staticfiles levels=1:2 keys_zone=staticfilecache:60m inactive=90m max_size=50m; | |
proxy_temp_path /var/lib/nginx/proxy; | |
proxy_connect_timeout 30; | |
proxy_read_timeout 120; | |
proxy_send_timeout 120; | |
map $http_cookie $logged_in { | |
default 0; | |
~wordpress_logged_in 1; # Wordpress session cookie |
require 'openssl' | |
c = OpenSSL::Cipher::Cipher.new("rc4-40") | |
serial = 4000987 | |
puts " *********** SERIAL NUMBER = #{serial}" | |
c.encrypt | |
c.key = "fdkjgfdoi4tu45fkgkljfg9485439tkjfgnjdshfghwhe54350gfgklkgje34324nkjdfhk45845843543k5kdjfk3454958439kkfkglgkttpoeoidsad49584305ldkfsdjf42jkndfl" | |
padded_serial = "%015d" % serial | |
padded_serial_array = [padded_serial.slice(0,10).to_i, padded_serial.slice(10,15).to_i] |