Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
checkFile(){ | |
FILE=$1 | |
OTOOL=`which otool` | |
TAIL=`which tail` | |
IFS='/' read -ra ADDR <<< "$FILE" | |
unset APP | |
for i in "${ADDR[@]}"; do | |
if [[ ! "${i-}" = $'\n' ]]; then |
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') ); | |
} |
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
# 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
<!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
# 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
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
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
## 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 |
NewerOlder