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 | |
class Helper { | |
static function getIfSet(& $var) { | |
if (isset($var)) { | |
return $var; | |
} | |
return null; | |
} | |
} |
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
## Automatically generated. http://www.rockbox.org/ | |
export ROOTDIR=/home/kelchm/Development/Projects/rockbox | |
export FIRMDIR=$(ROOTDIR)/firmware | |
export APPSDIR=$(ROOTDIR)/apps | |
export TOOLSDIR=$(ROOTDIR)/tools | |
export DOCSDIR=/home/kelchm/Development/Projects/rockbox/docs | |
export MANUALDIR=/home/kelchm/Development/Projects/rockbox/manual | |
export DEBUG= | |
export MODELNAME=ibassodx90 |
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
# strace -v ./rockbox | |
execve("./rockbox", ["./rockbox"], ["_=/system/xbin/strace", "ANDROID_DATA=/data", "RK_ADEPT_ACTIVATION_FILE=/mnt/sd"..., "RK_ADOBE_DE_DOC_FOLDER=/mnt/sdca"..., "HOME=/data", "RK_ADEPT_DEVICE_TYPE=mobile", "RK_ADEPT_DEVICE_SALT_FILE=/mnt/s"..., "EBOOK_PAGE_VISIBLE_NUMBER=2\343\200\200", "USER=root", "ANDROID_ASSETS=/system/app", "BOOTCLASSPATH=/system/framework/"..., "ANDROID_SOCKET_adbd=11", "ANDROID_BOOTLOGO=1", "ANDROID_STORAGE=/storage", "MKSH=/system/bin/sh", "LOOP_MOUNTPOINT=/mnt/obb", "SYSTEMSERVERCLASSPATH=/system/fr"..., "ANDROID_PROPERTY_WORKSPACE=9,0", "SECOND_VOLUME_STORAGE=/mnt/exter"..., "TERM=vt100", "SHELL=/system/bin/sh", "RK_ADOBE_DE_MOBILE=1", "EMULATED_STORAGE_SOURCE=/mnt/int"..., "ADOBE_FONTS_DIR=/system/fonts/ad"..., "RK_ADEPT_DEVICE_FILE=/mnt/sdcard"..., "ASEC_MOUNTPOINT=/mnt/asec", "HOSTNAME=rk312x", "PATH=/sbin:/vendor/bin:/system/s"..., "THIRD_VOLUME_STORAGE=/mnt/usb_st"..., "ANDROID_ROOT=/system", "EXTERNAL_STORAGE_FLASH=/mnt/inte |
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
PARM3\00\00FIRMWARE_VER:5.0.2 | |
MACHINE_MODEL:rk312x | |
MACHINE_ID:007 | |
MANUFACTURER:RK30SDK | |
MAGIC: 0x5041524B | |
ATAG: 0x60000800 | |
MACHINE: 312x | |
CHECK_MASK: 0x80 | |
KERNEL_IMG: 0x60408000 | |
#RECOVER_KEY: 1,1,0,20,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
$ rkunpack ~/Desktop/update.img | |
rkunpack: info: RKFW signature detected | |
rkunpack: info: version: 5.0.2 | |
rkunpack: info: date: 2015-11-20 17:04:51 | |
rkunpack: info: family: rk3368 | |
rkunpack: info: 00000066-0001c9b3 BOOT (size: 117070) | |
rkunpack: info: 0001c9b4-121ba1b7 embedded-update.img (size: 303683588) |
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
// Configure input fields | |
$scope.input = { | |
subjectType: { | |
name: 'subjectType', | |
label: 'Type', | |
}, | |
subjectId: { | |
name: 'subjectId', | |
label: 'With ID', | |
}, |
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
<?xml version="1.0"?> | |
<root> | |
<devicevendordef> | |
<vendorname>APPLE_COMPUTER</vendorname> | |
<vendorid>0x05ac</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>INTERNAL_KEYBOARD</productname> | |
<productid>0x0262</productid> | |
</deviceproductdef> |
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
import salt | |
import socket | |
import os | |
import platform | |
import math | |
from salt.modules.network import ip_addrs | |
from psutil import virtual_memory | |
# Config | |
solusvm_config_path = "/usr/local/solusvm/data/solusvm.conf" |
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
salt-call event.fire_master '{"nodename": "TEST", "nodetype": "openvz", "nodeip": "1.1.1.1", "nodeport": "495", "nodeid": "GH5739CHE9VVBEJXBCBE", "nodekey": "GHDDJR7463GCKSBCBEUWDB"}' 'solusvm/addnode' |
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
addnode: | |
cmd.run: | |
- name: "php /usr/local/solusvm/scripts/addnode.php --type={{ pillar['nodetype'] }} --name={{ pillar['nodename'] }} --ip={{ pillar['nodeip'] }} --port={{ pillar['nodeport'] }} --id={{ pillar['nodeid'] }} --key={{ pillar['nodekey'] }}" |