/opt/MegaRAID/MegaCli/MegaCli64 -AdpSetProp -EnableJBOD 1 -a0
/opt/MegaRAID/MegaCli/MegaCli64 -pdmakegood -physdrv [252:0,252:1,252:2,252:3,252:4,252:5] -force –a0
#!/bin/bash | |
# | |
# Quick and dirty script for resolving split-brained files on GlusterFS bricks. | |
# Use only at your own risk! | |
# | |
HOST=$1 | |
BRICK=$2 | |
MOUNT=$3 | |
VOLUME=$4 |
#!/usr/bin/php | |
<?php | |
# | |
# Quick and dirty script to purge old logstash indexes. The scripts tries hard to avoid deleting indexes that has other origins than logstash. | |
# Use at own risk. | |
# | |
$BASEURL = 'http://localhost:9200/'; |
#!/bin/bash | |
# | |
# Author: Morten Johansen <morten@cerum.no> | |
# License: CC BY-SA 3.0 http://creativecommons.org/licenses/by-sa/3.0/ | |
# Usage: tmulti <cmd> <arg1> ... | |
# Will create one pane in tmux for each arg, and execute "<cmd> <argN>" in each pane, in parallel | |
# Example: tmulti ssh user@node{1..4}.example.com | |
# | |
BNAME=$(basename ${0}) |
<?php | |
require(APPPATH.'libraries/REST_Controller.php'); | |
class V1 extends REST_Controller { | |
var $zmq_queue_type = ZMQ::SOCKET_PUSH; | |
var $zmq_queue_addr = 'tcp://127.0.0.1:31336'; | |
var $zmq_context; |
<?php defined('BASEPATH') or exit('No direct script access allowed'); | |
require(APPPATH.'libraries/REST_Controller.php'); | |
/** | |
* CodeIgniter Rest MQ Controller | |
* | |
* Extends REST_Controller to provide easy access to 0MQ. | |
* | |
* @package CodeIgniter |
#!/bin/bash | |
# | |
# Quick and dirty script to update firmware on DVMega hotspots without detaching from Raspberry Pi | |
# | |
# Will only work if you do G0WFV mod on the DVMega. See this link: | |
# https://g0wfv.wordpress.com/how-to-update-dvmega-firmware-without-a-programmer-or-an-arduino/ | |
# | |
# Main install procedures in this script are from the G0WFV webpage. | |
# Use this script only at your own risk! | |
# |
#include <Joystick.h> | |
#include <Mouse.h> | |
#include <FUTABA_SBUS.h> | |
// Uses FUTABA_SBUS library from: | |
// https://github.com/mikeshub/FUTABA_SBUS/ | |
Joystick_ Joystick; | |
FUTABA_SBUS sBus; |
#!/usr/bin/env python3 | |
# | |
# Simple text utility to track one or more shipments using Bring API (bring.com). | |
# Morten Johansen <morten@bzzt.no> | |
import sys | |
import requests | |
items = sys.argv | |
program = items.pop(0) # remove the program name |