Skip to content

Instantly share code, notes, and snippets.

@jetpks
jetpks / vimrc
Created October 26, 2011 21:09
Get vim to remember your cursor position.
" Tell vim to remember certain things when we exit
" '10 : marks will be remembered for up to 10 previously edited files
" "100 : will save up to 100 lines for each register
" :20 : up to 20 lines of command-line history will be remembered
" % : saves and restores the buffer list
" n... : where to save the viminfo files
set viminfo='10,\"100,:20,%,n~/.viminfo
function! ResCur()
if line("'\"") <= line("$")
@jetpks
jetpks / get2io.rb
Created December 13, 2012 10:44
Find all available 2 letter .io domain names.
#!/usr/bin/env ruby
require 'whois'
c = Whois::Client.new
('a'..'z').to_a.shuffle!.each do |starter|
('a'..'z').to_a.shuffle!.each do |ender|
#puts "Trying #{starter}#{ender}.io"
if c.query("#{starter}#{ender}.io").available?
puts "FOUND AVAILABLE!! AWESOME! : #{starter}#{ender}.io"
@jetpks
jetpks / cartograph.css
Created August 26, 2022 04:38
blink ios shell font workaround
@font-face {
font-family: "Cartograph CF";
src: local("Cartograph CF");
}
@jetpks
jetpks / config
Created March 23, 2012 15:43
.irssi/config
servers = (
{
address = "irc.mikezauner.com";
chatnet = "zl4u";
port = "6697";
autoconnect = "yes";
use_ssl = "yes";
},
{
address = "irc.freenode.net";

Keybase proof

I hereby claim:

  • I am jetpks on github.
  • I am jetpks (https://keybase.io/jetpks) on keybase.
  • I have a public key ASCu-BHuJlSFpNWRKoFCsUze0V_9dwi5vKEakuSZhsRlfwo

To claim this, I am signing this object:

@jetpks
jetpks / 00_README
Created May 24, 2018 19:42 — forked from dogeared/00_README
Extracting / Exporting custom emoji from Slack
This builds off the excellent work of @lmarkus.
The scripts below can be used in conjunction with the Slack Emoji Tools Google Chrome extension to export emojis from
one Slack team and import into another team.
Original work here: https://gist.github.com/lmarkus/8722f56baf8c47045621
@jetpks
jetpks / get3io.rb
Created December 13, 2012 10:47
Find available three letter .io domains from list of any sized words in a file called ./wordlist.
#!/usr/bin/env ruby
require 'whois'
def load_words
three_letter_words = []
File.open('./wordlist', 'r') do |infile|
while (line = infile.gets)
next if (line == nil or line.chomp.length > 3)
three_letter_words.push(line.chomp)
end
@jetpks
jetpks / ruby_csr_example.rb
Created March 11, 2017 02:33 — forked from mitfik/ruby_csr_example.rb
Ruby example of CSR with openssl
require 'openssl'
def gen_key(name)
key = OpenSSL::PKey::RSA.new 1048
file = File.new(name, "w")
file.write(key)
file.close
end
def get_key(name)
@jetpks
jetpks / mos-websso.rst
Created February 8, 2016 20:38 — forked from bretonium/mos-websso.rst
How to configure Mirantis OpenStack for WebSSO via Okta
  • To use openstack cli you need to switch it to using v3 API. Do this:
    1. cp openrc openrc.v3
    2. edit openrc.v3 and
      • add there this line: export OS_IDENTITY_API_VERSION=3
      • change OS_AUTH_URL to point to v3.
  • Create an identity provider

    openstack identity provider create idp_1 # idp_1 is an id. Use any you like. I like idp_1

@jetpks
jetpks / fixlion.sh
Created January 27, 2012 17:30
Tweaks for OS X Lion.
#!/bin/bash
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Enable the 2D Dock
#defaults write com.apple.dock no-glass -bool true
# Disable menu bar transparency
#defaults write -g AppleEnableMenuBarTransparency -bool false