Skip to content

Instantly share code, notes, and snippets.

View jhawkwind's full-sized avatar

Kelvin Mok jhawkwind

  • OutLawStar.NET
  • 02:43 (UTC -08:00)
View GitHub Profile
@jefftaylor-okta
jefftaylor-okta / oktane23-mmod.md
Last active August 20, 2024 15:45
This Gist is a companion to the Oktane 2023 presentation Managing Multiple Okta Deployments with Terraform.

Oktane '23: Managing Multiple Okta Deployments

This repository is a company to the Oktane 23 Presentation on Managing Multiple Okta Deployments. This repository will cover the code and instructions mentioned in the presentation.

Scene

The Chief Revenue Officer of a fictional company is getting complaints from the Sales Engineers. They are running into Multifactor Authentication challenges logging into their Sales Pipeline App 😉. The CRO is keen to unblock the Sales Engineers and demands the Director of IT create a simpler method for logging in so they can keep productivity up through the end of the quarter. The Director of IT, who reports up to the Chief Information Officer is concerned about lowering the security when accessing confidential financial data.

The challenge

@craigminihan
craigminihan / gist:b23c06afd9073ec32e0c
Last active September 21, 2023 12:47
Build GCC 4.9.2 for C/C++ on CentOS 7
sudo yum install libmpc-devel mpfr-devel gmp-devel
cd ~/Downloads
curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O
tar xvfj gcc-4.9.2.tar.bz2
cd gcc-4.9.2
./configure --disable-multilib --enable-languages=c,c++
make -j 4
make install
@hylom
hylom / mecab-ipadic.spec
Last active August 16, 2016 15:40
mecab-ipadic's spec file for rpmbuild
%define name mecab-ipadic
%define ver 2.7.0
%define date 20070801
%define release el6.4_1
Summary: IPA dictionary for MeCab
Summary(ja): MeCab用のIPA辞書
Name: %{name}
Version: %{ver}.%{date}
Release: %{release}
@hylom
hylom / mecab.spec
Created May 9, 2013 10:53
MeCab's spec file for rpmbuild
%define name mecab
%define version 0.996
%define release el6.4
Summary: Yet Another Part-of-Speech and Morphological
Name: %{name}
Version: %{version}
Release: %{release}
Source0: https://mecab.googlecode.com/files/mecab-%{version}.tar.gz
License: GPL/LGPL/BSD
@earthgecko
earthgecko / bash.generate.random.alphanumeric.string.sh
Last active December 9, 2025 15:27
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1