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
<!DOCTYPE html> | |
<head> | |
<title>Stay Standalone</title> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
<script src="stay_standalone.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<ul> | |
<li><a href="http://google.com/">Remote Link (Google)</a></li> |
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
$ sudo pkg set-publisher -O http://pkg.openindiana.org/dev-il/ openindiana.org | |
$ sudo pkg publisher | |
PUBLISHER TYPE STATUS URI | |
openindiana.org (preferred) origin online http://pkg.openindiana.org/dev-il/ | |
opensolaris.org origin online http://pkg.openindiana.org/legacy/ | |
$ sudo pkg image-update | |
WARNING: pkg(5) appears to be out of date, and should be updated before | |
running image-update. Please update pkg(5) using 'pfexec pkg install | |
pkg:/package/pkg' and then retry the image-update. | |
$ sudo pkg install pkg:/package/pkg |
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
## WordPress Setup script for Joyent SmartMachine 1.3.6 | |
## How to use. | |
# wget https://raw.github.com/gist/1274859/8508adf89853cfd9899648d3a867bfb5b81e0fe8/wp.sh --no-check-certificate -O - | bash | |
# Open http://{server address} | |
# 1.install mysql-server and apache,mod_php. | |
# 2.Download wordpress from svn repository. | |
# 3.create wp_config.php |
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 models; | |
import java.awt.Graphics2D; | |
import java.awt.RenderingHints; | |
import java.awt.Transparency; | |
import java.awt.image.BufferedImage; | |
import java.io.ByteArrayOutputStream; | |
import java.io.File; | |
import java.io.IOException; |
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
brew update | |
brew versions FORMULA | |
cd `brew --prefix` | |
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
brew install FORMULA | |
brew switch FORMULA VERSION | |
git checkout -- Library/Formula/FORMULA.rb # reset formula | |
## Example: Using Subversion 1.6.17 | |
# |
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
# It's important to convert the vbox image (VMDK or VDI or whatever) using | |
# the same version of VirtualBox that created it. You can try converting the image | |
# with qemu-img or kvm-img, but weird version mismatches will possibly make it not | |
# work. | |
# On your VirtualBox machine: | |
cd $VBOX_ROOT/$MACHINE_ROOT/ | |
VBoxManage clonehd machine.vmdk machine.img --format RAW | |
scp machine.img root@kvm-host:/somewhere |
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
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
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
# Added the following extra packages to OSGI to enable JavaFX 2.2 (JRE 7 update 13) | |
# Extra packages appended after standard packages | |
org.osgi.framework.system.packages.extra=javafx.application;version=0.0.0, \ | |
com.sun.browser.plugin; version=0.0.0, \ | |
com.sun.deploy.uitoolkit.impl.fx; version=0.0.0, \ | |
com.sun.deploy.uitoolkit.impl.fx.ui; version=0.0.0, \ | |
com.sun.deploy.uitoolkit.impl.fx.ui.resources; version=0.0.0, \ | |
com.sun.deploy.uitoolkit.impl.fx.ui.resources.image; version=0.0.0, \ |
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
/*jslint vars: true, node: true, white: true */ | |
"use strict"; | |
var xmpp = require("node-xmpp"); | |
// XXX: hard-coded | |
var ROOM = "innoq@conference.jabber.innoq.com"; | |
var NICK = "bot"; |
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
<?php | |
if(!class_exists('WpPluginUpgradeBase')) : | |
abstract class WpPluginUpgradeBase { | |
function __construct() { | |
add_action( 'admin_init', array(&$this, 'load_plugin') ); | |
} |
OlderNewer