Skip to content

Instantly share code, notes, and snippets.

View Cryptophobia's full-sized avatar
〰️
always seeking a state of flow

AMO ❤️⛺✨ Cryptophobia

〰️
always seeking a state of flow
View GitHub Profile
@Cryptophobia
Cryptophobia / fetch-ssl-from-okta-com.sh
Created October 26, 2016 16:16 — forked from jpf/fetch-ssl-from-okta-com.sh
How to fetch the SSL certificate from www.okta.com
echo '' | openssl s_client -connect www.okta.com:443
@Cryptophobia
Cryptophobia / nvm.rake
Created July 14, 2016 14:16
Rake task for nvm - node version manager
namespace :nvm do
desc "Load nvm and the node environment variables"
def file_or_symlink_exists?(path_to_file)
File.exist?(path_to_file) || File.symlink?(path_to_file)
end
desc "Load node if nvm is already installed but not on the path"
task :load_node do
sh "/bin/bash -c '. ~/.nvm/nvm.sh'"
@Cryptophobia
Cryptophobia / fluentd
Last active January 25, 2021 08:39
/etc/init.d/fluentd
#!/bin/bash
NAME="fluentd" #Name of service
PID_FILE=/var/run/fluentd.pid #PID file for fluentd service
CONF_FILE=/etc/fluent/fluent.conf #Config file for fluentd service
LOG_FILE=/var/log/fluent/fluent.log #Log file for fluentd process
PSNAME="fluentd" #Process to look for in ps output
RVM_PATH=home/ubuntu/.rvm/scripts/rvm #RVM path to source because RVM is awesome
RUBY_VER="default" #RVM default ruby version, you can set to specific Ruby verion
@Cryptophobia
Cryptophobia / sublimetext3.sh
Last active February 9, 2017 05:49
Install Sublime Text 3 on Fedora/Ubuntu
#!/usr/bin/env bash
# Usage: {script} [ OPTIONS ] TARGET BUILD
#
# TARGET Default target is "/usr/bin".
# BUILD If not defined tries to get the build into the Sublime Text 3 website.
#
# OPTIONS
#
# -h, --help Displays this help message.
#