Skip to content

Instantly share code, notes, and snippets.

View nekop's full-sized avatar

Takayoshi Kimura nekop

View GitHub Profile
@nekop
nekop / gist:924712
Created April 18, 2011 02:32
Gist test
foobarbaz
package org.msgpack;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.msgpack.annotation.Message;
import org.msgpack.MessagePack;
public class TestSimpleObject {
@nekop
nekop / rhel7.ks
Created June 16, 2014 05:04
RHEL7 kickstart
install
url --url=http://example.com/your/path/to/rhel7/install/image/RHEL-7/7.0/Server/x86_64/os/
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto dhcp --ipv6 auto
rootpw foobar
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
timezone --utc Asia/Tokyo
@nekop
nekop / dump-project.sh
Last active September 24, 2020 06:59
Old dump-project.sh for OpenShift 3.x
#!/bin/bash
# dump-project.sh PROJECT_NAME
# If you prefer multiple files, you can split it:
# zcat *.txt.gz | awk 'BEGIN{f=""} match($0, /^+ ((oc|date).*)$/, a){f=a[1] ".txt"; gsub(/[ \/=]/,"_",f);} {print $0 >> f}'
PROJECT=$1
if [ -z $PROJECT ]; then
$ oc get pod -A -o custom-columns="START_TIME:{status.startTime},NAME:{metadata.name}" | sort
START_TIME NAME
2024-03-14T23:24:24Z cluster-cloud-controller-manager-operator-844d45df5-4j6vg
2024-03-14T23:24:33Z aws-cloud-controller-manager-ddf74bbd5-dm545
2024-03-14T23:24:33Z aws-cloud-controller-manager-ddf74bbd5-kg988
2024-03-14T23:24:40Z cluster-version-operator-669877dc96-zss5s
2024-03-14T23:24:41Z network-operator-fdc86dc5d-j9pn6
2024-03-14T23:25:11Z multus-l7fdr
2024-03-14T23:25:12Z multus-additional-cni-plugins-2ggvv
2024-03-14T23:25:12Z multus-additional-cni-plugins-r45w8