Skip to content

Instantly share code, notes, and snippets.

View jness's full-sized avatar

nessy jness

View GitHub Profile
@jness
jness / gist:5257309
Last active December 15, 2015 11:59
Kicks
------------------------------------------
| error messages do not mean KIR is down |
------------------------------------------
== Enviornment https://dfw1.kir.kickstart.rackspace.com/reporting/api ==
We have performed 2 kicks since Tue Mar 26 00:00:00 2013
0 kicks since yesterday in status of Completed
0 kicks since yesterday in status of Error
2 kicks since yesterday in status of Inactive
package com.flip.diceroller;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.EditText;
import android.view.View;
import android.view.View.OnClickListener;
import java.util.Scanner;
base RHEL mysql-server scripts:
===========================
[root@208934-el5-64 ~]# rpm -q mysql-server --scripts
preinstall scriptlet (using /bin/sh):
/usr/sbin/useradd -M -o -r -d /var/lib/mysql -s /bin/bash \
-c "MySQL Server" -u 27 mysql > /dev/null 2>&1 || :
postinstall scriptlet (using /bin/sh):
if [ $1 = 1 ]; then
/sbin/chkconfig --add mysqld
@jness
jness / gist:941109
Created April 25, 2011 20:09
yum replace mysql51
1. Base MySQL
[root@208934-el5-64 mysql]# rpm -qa | grep mysql
mysql-5.0.77-4.el5_5.4.x86_64
mysql-server-5.0.77-4.el5_5.4.x86_64
2. yum replace mysql with mysql51
[root@208934-el5-64 mysql]# yum replace mysql --replace-with mysql51 --enablerepo=ius
@jness
jness / gist:941016
Created April 25, 2011 19:08
yum replace mysql55.
1. Current Packages:
[root@208934-el5-64 ~]# rpm -qa | grep mysql
mysql-5.0.77-4.el5_5.4.x86_64
mysql-server-5.0.77-4.el5_5.4.x86_64
2. Performing Yum Replace:
[root@208934-el5-64 ~]# yum replace mysql --replace-with mysql55 --enablerepo=ius