Skip to content

Instantly share code, notes, and snippets.

apiVersion: v1
kind: Namespace
metadata:
name: gitlab-managed-apps
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: gitlab-sa
namespace: gitlab-managed-apps
@ipernet
ipernet / openssl.md
Created March 9, 2017 23:22
OpenSSL commands

CRT to DER:

openssl x509 -outform der -in auth.crt -out auth.der

DER to CRT:

openssl x509 -outform der -in certificate.pem -out certificate.der

Read DER:

openssl x509 -in auth.der -inform der -text -noout

Digest 256 DER:

Keybase proof

I hereby claim:

  • I am ipernet on github.
  • I am ipernet (https://keybase.io/ipernet) on keybase.
  • I have a public key whose fingerprint is 1A95 6897 A975 FB90 9323 19D2 54C3 F10C B270 A48F

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ipernet on github.
  • I am ipernet (https://keybase.io/ipernet) on keybase.
  • I have a public key ASCky2GysnvzZklHobP5JnDuXYEQBhHxUUsE-5f9OHcRWwo

To claim this, I am signing this object:

@ipernet
ipernet / mysql-workbench-community-6.3.5-1.fc23.x86_64.md
Last active March 1, 2016 12:21
MySQL Workbench for Fedora 23 x86_64
$ wget "https://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-1.1.6-linux-glibc2.5-x86-64bit.rpm"
# rpm -ivh mysql-connector-c++-1.1.6-linux-glibc2.5-x86-64bit.rpm
# sudo dnf install libuuid-devel boost-devel pcre-devel unixODBC-devel gdal-devel libxml2-devel libzip-devel gdk-pixbuf2-devel glibmm24-devel pango-devel cairo-devel gtk2-devel gtkmm24-devel ctemplate-devel vsqlite++-devel tinyxml-devel python-libs python-paramiko autoconf automake libtool gcc-c++ pkgconfig

$ wget http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-6.3.5-src.tar.gz
$ tar xf mysql-workbench-community-6.3.5-src.tar.gz && cd mysql-workbench-community-6.3.5-src
$ mkdir wb-build
@ipernet
ipernet / kmod-wl-4.2.3-300.fc23.x86_64-6.30.223.248-8.fc23.1.x86_64.bash
Last active November 4, 2015 14:18
Broadcom wireless drivers for Fedora 23 x86_64 (kmod-wl)
# su -
# dnf install akmod-wl
# mkdir /root/rpmbuild/SOURCES/wl-kmod-4.2.3
# cp -rp /usr/src/akmods/wl-kmod-6.30.223.248-8.fc22.1.src.rpm /root/rpmbuild/SOURCES/wl-kmod-4.2.3/
# cd /root/rpmbuild/SOURCES/wl-kmod-4.2.3/
# rpm2cpio wl-kmod-6.30.223.248-8.fc22.1.src.rpm | cpio -idmv
# mkdir hb
# tar xvf hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz -C hb/
# cd hb/
# curl https://gist.githubusercontent.com/boesing/ae0777c0095a1d8d317f/raw/eb9b73a4bf531292c07f6b1dc3a43458ed970d86/wl_cfg80211_hybrid.c | patch -p2
@ipernet
ipernet / io.js
Created April 27, 2015 08:09
Demo Socket.io 1.x
var express = require('express'),
bodyParser = require('body-parser'),
app = express();
var httpServer = require('http')
.createServer(app)
.listen(config.listening_port, config.listening_address_http);
var httpServerWS = require('http')
.createServer()
#!/bin/bash
set -e
# Usage:
# rsync_parallel.sh [--parallel=N] [rsync args...]
#
# Options:
# --parallel=N Use N parallel processes for transfer. Defaults to 10.
#
# Notes:
#!/bin/sh
# This program has two feature.
#
# 1. Create a disk image on RAM.
# 2. Mount that disk image.
#
# Usage:
# $0 <dir> <size> <name>
#