Skip to content

Instantly share code, notes, and snippets.

View opsymcdevface's full-sized avatar

Zee Do opsymcdevface

View GitHub Profile

Generate Key

gpg --full-generate-key

List Keys

gpg -K --keyid-format long --with-colons --with-fingerprint

Keybase proof

I hereby claim:

  • I am ctrlaltreboot on github.
  • I am ctrlaltreboot (https://keybase.io/ctrlaltreboot) on keybase.
  • I have a public key ASCs2W8Utq5dS6YbyVV_WQpCV7PrHubXu4715GPy2Pb94Ao

To claim this, I am signing this object:

@opsymcdevface
opsymcdevface / InstallCert.java
Created June 13, 2016 00:17
InstallCert.java
/*
*
* http://blogs.oracle.com/gc/entry/unable_to_find_valid_certification
*
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
@opsymcdevface
opsymcdevface / git-remove-history.sh
Created February 22, 2016 08:59
git-remove-history.sh
#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
if [ $# -eq 0 ]; then
exit 0
@opsymcdevface
opsymcdevface / git-author-rewrite.sh
Created February 22, 2016 08:59
git-author-rewrite.sh
#!/bin/bash
git filter-branch --env-filter '
OLD_EMAIL="email@address1.com"
CORRECT_NAME="RJ"
CORRECT_EMAIL="email@address2.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@opsymcdevface
opsymcdevface / springboot.json
Created January 12, 2016 14:56
springboot.json
{
"kind": "List",
"apiVersion": "v1",
"metadata": {
"name": "springboot-s2i"
},
"items": [{
"apiVersion": "v1",
"kind": "BuildConfig",
"metadata": {
@opsymcdevface
opsymcdevface / jenkins-git-backup.sh
Last active November 24, 2015 13:48 — forked from abayer/jenkins-git-backup.sh
Example of a script for backing up Jenkins config in git.
#!/bin/bash -ex
#
# Copies certain kinds of known files and directories from a given Jenkins master directory
# into a git repo, removing any old ones, adds 'em, commits 'em, pushes 'em.
#
if [ $# -ne 2 ]; then
echo usage: $0 jenkins_root_dir jenkins_master
exit 1
fi
#!/usr/bin/env bash
# installing xmonad in fedora 22
sudo dfn install -y xmonad ghc-xmonad-contrib-devel ghc-xmonad-devel xmobar\
stalonetray dmenu scrot cabal-install ghc-Cabal-devel
cabal update
cabal install yeganesh
#!/bin/bash
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
### Thanks Xream's Work XD
# if you don't have several vpn servers to select, you can comment following line
# and use your openvpn config file name to replace "${host}.ovpn" in while loop.
read -p "Select the host: " host
<pluginManagement>
<plugins>
<!--
The RPM plugin is used to create distributable apps from our war file.
To use it fire:
$ mvn install rpm:rpm
...
The resulting rpm is then found at Project/target/rpm/Project/RPMS/noarch/Project-versoin-1.noarch.rpm
For example: ImageServer/target/rpm/ImageServer/RPMS/noarch/ImageServer-6.5.0-1.noarch.rpm