Skip to content

Instantly share code, notes, and snippets.

View skurhse's full-sized avatar

Skurhse Rage ∅ skurhse

View GitHub Profile
@skurhse
skurhse / init.lua
Last active May 1, 2023 03:12
~/.config/nvim/init.lua
-- REQ: Configures neovim using lua. <skr 2023-04-30>
-- SEE: https://neovim.io/doc/user/lua-guide.html <>
local call = vim.call
local cmd = vim.cmd
local set = vim.o
-- SEE: https://github.com/junegunn/vim-plug <>
cmd [[
#!/bin/bash
env 1>&1 |
grep '^PATH=' 1> >(cat) |
cut -c 6- |
awk '
{
old = ":"
new = "\n"
while ($0 ~ /:/) {
@jasemagee
jasemagee / fortune-rnd-cowsay-lolcat.sh
Created May 30, 2015 09:42
Fortune with random cowsay character and lolcat
fortune | cowsay -f "$(ls /usr/share/cowsay/cows | sort -R | head -1)" | lolcat
@markbates
markbates / gist:4240848
Created December 8, 2012 16:06
Getting Started with Rack

If you're writing web applications with Ruby there comes a time when you might need something a lot simpler, or even faster, than Ruby on Rails or the Sinatra micro-framework. Enter Rack.

Rack describes itself as follows:

Rack provides a minimal interface between webservers supporting Ruby and Ruby frameworks.

Before Rack came along Ruby web frameworks all implemented their own interfaces, which made it incredibly difficult to write web servers for them, or to share code between two different frameworks. Now almost all Ruby web frameworks implement Rack, including Rails and Sinatra, meaning that these applications can now behave in a similar fashion to one another.

At it's core Rack provides a great set of tools to allow you to build the most simple web application or interface you can. Rack applications can be written in a single line of code. But we're getting ahead of ourselves a bit.