// jQuery
$(document).ready(function() {
// 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
| server { | |
| listen 80 default_server; | |
| listen [::]:80 ipv6only=on default_server; | |
| server_name splunk.net blog.splunk.net www.splunk.net .taddevries.com; | |
| access_log /var/log/nginx/blog.access_log main; | |
| error_log /var/log/nginx/blog.error_log info; | |
| return 301 https://blog.splunk.net; | |
| } | |
| server { |
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 | |
| # Source this file in your .bash_profile e.g.: | |
| # | |
| # source ~/gitcheckouts/vpn_heplers/.vpn_helpers.sh | |
| # | |
| # Note: This script works best with NOPASSWD: ALL configured in your sudoers file: | |
| # /etc/sudoers: | |
| # %admin ALL=(ALL) NOPASSWD: ALL | |
| # |
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
| <!DOCTYPE html> | |
| <meta charset=utf-8> | |
| <meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1"> | |
| <meta name=apple-mobile-web-app-capable content=yes> | |
| <meta name=apple-mobile-web-app-status-bar-style content=black> | |
| <title>Test fullscreen</title> | |
| <style> | |
| html, body { | |
| margin: 0; | |
| padding: 0; |
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/sh | |
| if [ "$#" -eq 1 ]; then stdinmsg=$(cat); fi | |
| exec <"$0" || exit; read v; read v; read v; exec /usr/bin/osascript - "$@" "$stdinmsg"; exit | |
| -- another way of waiting until an app is running | |
| on waitUntilRunning(appname, delaytime) | |
| repeat until my appIsRunning(appname) | |
| tell application "Messages" to close window 1 | |
| delay delaytime | |
| end repeat |
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
| set the currentSource to (do shell script "/Users/askedrelic/bin/SwitchAudioSource -c") | |
| if currentSource is equal to "Built-in Output" then | |
| do shell script "/Users/askedrelic/bin/SwitchAudioSource -s \"Built-in Line Output\"" | |
| else | |
| do shell script "/Users/askedrelic/bin/SwitchAudioSource -s \"Built-in Output\"" | |
| end if |
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 | |
| set -o errexit | |
| clear | |
| # Set versions. Check http://openresty.org for latest version and bundled version of nginx. | |
| OPENRESTY_VERSION=1.9.3.1 | |
| NGINX_VERSION=1.9.3 | |
| OPENSSL_VERSION=1.0.2d | |
| # Install some pre-requisites |
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
| # Reference: | |
| https://www.cloudgear.net/blog/2015/5-minutes-kubernetes-setup/ | |
| # install homebrew and cask | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # install virtualbox | |
| brew cask install virtualbox | |
| # install dockertoolbox |
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
| boolean DataOnOff(boolean status, Context context) { | |
| int bv = 0; | |
| try { | |
| if (bv == Build.VERSION_CODES.FROYO){ | |
| //android 2.2 versiyonu için | |
| Method dataConnSwitchmethod; | |
| Class<?> telephonyManagerClass; | |
| Object ITelephonyStub; | |
| Class<?> ITelephonyClass; |