Skip to content

Instantly share code, notes, and snippets.

View FilBot3's full-sized avatar
πŸ˜€
Working hard

FilBot3 FilBot3

πŸ˜€
Working hard
View GitHub Profile
@hvasconcelos
hvasconcelos / gen_keys.sh
Last active July 18, 2024 18:47
Create an Sinatra SSL Server
# Generate a self-signed Certificate and a Private Key
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout pkey.pem -out cert.crt
@glnds
glnds / less-cheatsheet.md
Last active April 9, 2025 18:45
Less Cheatsheet

Less Cheatsheet

less {filename}

Navigation
SPACE forward one window
b backward one window
d forward half window
@Codeplaza
Codeplaza / gist:7485851
Created November 15, 2013 15:12
Blokko
/*############################################################################*/
/* BLOCCOGAME */
/*----------------------------------------------------------------------------*/
/* Created on 24/09/2013 by Ali Tugrul PINAR */
/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* DESCRIPTION */
/*-------------------------
/* This program provides a simulation of a blocco game.
/* Game includes five different difficulty levels.
@rxaviers
rxaviers / gist:7360908
Last active May 15, 2025 13:30
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@robinsound
robinsound / SimpleGemInstaller.nsi
Last active November 3, 2021 01:00
NSIS script for Ruby, Git and DevKit installers. Then install a gem
!include LogicLib.nsh ;IF ELSE
!include "StrContains.nsh"
AutoCloseWindow true
OutFile "SimpleGemInstaller.exe"
;here you can reference to any other ruby version and set you prefer path
;you can use !define for compile time substitution
@jtimberman
jtimberman / default_spec.rb
Created May 10, 2013 03:14
this is cookbooks/java/spec/default_spec.rb. Then install the chefspec gem and run rspec. (yay!)
require 'chefspec'
describe 'java::default' do
let (:chef_run) { ChefSpec::ChefRunner.new.converge('java::default') }
it 'should include the openjdk recipe by default' do
chef_run.should include_recipe 'java::openjdk'
end
context 'windows' do
let(:chef_run) do
@rubenwardy
rubenwardy / mod_debug.lua
Last active January 3, 2022 08:56
Craft recipe checker for Minetest
-- Written by rubenwardy, WTFPL
-- To use:
-- * Save as mod_debug.lua in builtin/game
-- * add dofile(gamepath.."mod_debug.lua") to the last line of builtin/game/init.lua
-- OR
-- * Install as a mod. Needs to be run before any other mod.
local mod = {}
mod.recipes = {}
mod.aliases = {}
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 15, 2025 05:11
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@mloberg
mloberg / irc.rb
Created April 9, 2012 17:56
Ruby IRC
require "socket"
class IRC
def initialize(info)
@server = info[:server]
@port = info[:port] || 6667
@password = info[:password]
@nick = info[:nick]
@channel = info[:channel]