http://james.padolsey.com/javascript/get-document-height-cross-browser/
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 pntanasis.master_ex.android; | |
import pntanasis.master_ex.android.Synthesizer.Note0; | |
import android.app.Activity; | |
import android.os.Bundle; | |
public class AudioSynthesisDemoActivity extends Activity { | |
/** Called when the activity is first created. */ | |
@Override | |
public void onCreate(Bundle savedInstanceState) { |
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/bash | |
#Script to get all repositories under a user from bitbucket | |
#Origin: https://haroldsoh.com/2011/10/07/clone-all-repos-from-a-bitbucket-source/ | |
#Usage: ./clone.sh [username] [password] | |
curl -u ${1}:${2} https://api.bitbucket.org/1.0/users/${1} > repoinfo | |
for repo_name in `cat repoinfo | sed -r 's/("name": )/\n\1/g' | sed -r 's/"name": "(.*)"/\1/' | sed -e 's/{//' | cut -f1 -d\" | tr '\n' ' '` | |
do | |
echo "Cloning: " $repo_name | |
git clone https://${1}:${2}@bitbucket.org/${1}/$repo_name".git" |
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
<object width="640" height="360"> | |
<param name="movie" value="http://www.youtube.com/embed/OcV0cbQJ5r8?html5=1&rel=0&hl=en_US&version=3"/> | |
<param name="allowFullScreen" value="true"/> | |
<param name="allowscriptaccess" value="always"/> | |
<embed width="640" height="360" src="http://www.youtube.com/embed/OcV0cbQJ5r8?html5=1&rel=0&hl=en_US&version=3" class="youtube-player" type="text/html" allowscriptaccess="always" allowfullscreen="true"/> | |
</object> |
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
###################################### | |
# INSTALL OPENCV ON UBUNTU OR DEBIAN # | |
###################################### | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |----------------------------------------------------| | |
# | OS | OpenCV | Test | Last test | | |
# |----------------|--------------|------|-------------| | |
# | Ubuntu 16.04.2 | OpenCV 3.2.0 | OK | 20 May 2017 | | |
# | Debian 8.8 | OpenCV 3.2.0 | OK | 20 May 2017 | |
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
(function () { | |
var scriptName = "embed.js"; //name of this script, used to get reference to own tag | |
var jQuery; //noconflict reference to jquery | |
var jqueryPath = "http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"; | |
var jqueryVersion = "1.8.3"; | |
var scriptTag; //reference to the html script tag | |
/******** Get reference to self (scriptTag) *********/ | |
var allScripts = document.getElementsByTagName('script'); |
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
<div id="columns"> | |
<figure> | |
<img src="//s3-us-west-2.amazonaws.com/s.cdpn.io/4273/cinderella.jpg"> | |
<figcaption>Cinderella wearing European fashion of the mid-1860’s</figcaption> | |
</figure> | |
<figure> | |
<img src="//s3-us-west-2.amazonaws.com/s.cdpn.io/4273/rapunzel.jpg"> | |
<figcaption>Rapunzel, clothed in 1820’s period fashion</figcaption> | |
</figure> |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
Source: https://www.cyberciti.biz/tips/linux-unix-bsd-nginx-webserver-security.html | |
This page collects hints how to improve the security of nginx web servers running on Linux or UNIX-like operating systems. | |
Default Config Files and Nginx Port | |
/usr/local/nginx/conf/ or /etc/nginx/– The nginx server configuration directory and /usr/local/nginx/conf/nginx.conf is main configuration file. | |
/usr/local/nginx/html/ or /var/www/html– The default document location. | |
/usr/local/nginx/logs/ or /var/log/nginx – The default log file location. | |
Nginx HTTP default port : TCP 80 |
OlderNewer