This file contains 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
@echo off | |
IF "%~4"=="" GOTO showusage | |
ffmpeg -loop 1 -i %1 -t %4 silent.mp4 | |
ffmpeg -i silent.mp4 -i %2 -vcodec copy -acodec copy %3 | |
del silent.mp4 | |
GOTO end | |
:showusage |
This file contains 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 java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import me.kutrumbos.DdpClient; | |
import me.kutrumbos.examples.SimpleDdpClientObserver; |
This file contains 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
java -classpath sync.jar;commons-cli-1.1.jar;commons-codec-1.3.jar; | |
commons-httpclient-3.0.jar;commons-logging-1.0.4.jar;icu4j-3_8.jar; | |
icu4j-charsets-3_8.jar;rcleartool.jar;remote_core.jar;stpcc.jar; | |
stpclientws.jar;stpcmmn.jar;stpcq.jar;stpwvcm.jar;teamapiextensions.jar; | |
ucleardiffmerge.jar;unicodetypemgr.jar; test.Sync |
This file contains 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/sh | |
# /etc/init.d/templog | |
# ### BEGIN INIT INFO | |
# Provides: templog | |
# Required-Start: | |
# Required-Stop: | |
# Should-Start: | |
# Should-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
This file contains 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 java.io.InputStream; | |
import java.net.URL; | |
import java.util.List; | |
import org.apache.commons.io.IOUtils; | |
import org.apache.http.Header; | |
import org.apache.http.HttpHost; | |
import org.apache.http.HttpResponse; |
This file contains 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
# Block skype ads | |
127.0.0.1 apps.skype.com |
This file contains 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
<IfModule mod_headers.c> | |
#CORS | |
SetEnvIf Origin "^http(s)?://(.+\.)?(siletto\.it|localhost|localhost2)$" DYN_ORIGIN=$0 | |
Header set Access-Control-Allow-Origin %{DYN_ORIGIN}e | |
Header set Access-Control-Allow-Methods "GET, PUT, POST, OPTIONS" | |
Header set Access-Control-Allow-Credentials true | |
Header set Access-Control-Allow-Headers "Authorization, Origin, Content-Type, X-CSRF-Token" | |
... | |
... | |
</IfModule> |
This file contains 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
# a2enmod headers | |
# /etc/init.d/apache2 restart |
This file contains 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
var username = "admin"; | |
var password = "passw"; | |
console.log("authentication...") | |
$.ajax({ | |
url:"http://my.host/restws/session/token-cors", | |
beforeSend: function(xhr) { | |
xhr.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password)); | |
}, | |
xhrFields: { |
This file contains 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
Display display = getWindowManager().getDefaultDisplay(); | |
DisplayMetrics outMetrics = new DisplayMetrics(); | |
display.getMetrics(outMetrics); | |
float density = getResources().getDisplayMetrics().density; | |
float dpHeight = outMetrics.heightPixels / density; | |
float dpWidth = outMetrics.widthPixels / density; | |
Log.d("SIZE","height: "+dpHeight+"dp, width:"+dpWidth+"dp, orientation:"+display.getRotation()); |
OlderNewer