Skip to content

Instantly share code, notes, and snippets.

View kintoandar's full-sized avatar
✌️

Joel Bastos kintoandar

✌️
View GitHub Profile
@apk
apk / websock.sh
Created April 18, 2012 15:51
A web socket server as a bash script.
#!/bin/bash
# WebSocket shell, start & browse to http://<Host>:6655/
# Requires bash 4.x, openssl.
# Author: rootshell@corelogics.de (which isn't me, apk)
coproc d { nc -l -p 6656 -q 0; }
nc -l -p 6655 -q 1 > /dev/null <<-ENDOFPAGE
HTTP/1.1 200 OK
<html><head><script language="javascript">
var url = location.hostname + ':' + (parseInt(location.port) + 1);
@analytically
analytically / interfaces
Last active July 31, 2023 11:52
Ansible interface bonding tasks.
# {{ ansible_managed }}
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
{% if ansible_interfaces|length > 2 %}
@acolyer
acolyer / service-checklist.md
Last active June 20, 2024 08:47
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@andrew-h-lee
andrew-h-lee / RVM-VirtualENV.md
Last active May 19, 2020 11:40
RVM for Ruby; VirtualENV for Python

###RVM for Pythonistas, Virtualenv for Rubyists

For Python Developers: virtualenv, virtualenvwrapper or Buildout Note: envs = environments For Ruby Developers: rvm

####Installation #####Python

Info Command
Install pip $ sudo pip install virtualenvwrapper

CaixaBreak PopUp for MacOSX

Following the work in kintoandar/caixabreak by user @kintoandar, I made an Automator app for MacOSX, because I'm lazy.

Instructions

  • Follow the installation instructions of the original project.
  • Open Automator
  • Create a new Application
  • Drag a Run Shell Script to the right
  • In the text box, paste the following:
@marcan
marcan / linux.sh
Last active December 1, 2023 15:18
Linux kernel initialization, translated to bash
#!/boot/bzImage
# Linux kernel userspace initialization code, translated to bash
# (Minus floppy disk handling, because seriously, it's 2017.)
# Not 100% accurate, but gives you a good idea of how kernel init works
# GPLv2, Copyright 2017 Hector Martin <marcan@marcan.st>
# Based on Linux 4.10-rc2.
# Note: pretend chroot is a builtin and affects the current process
# Note: kernel actually uses major/minor device numbers instead of device name
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active June 29, 2024 15:54
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@ntamvl
ntamvl / install-multiple-jdk-on-macos-high-sierra.md
Last active February 21, 2024 11:12
Install Multiple Java Versions on macOS High Sierra

Install Multiple Java Versions on macOS High Sierra

Install Homebrew Cask

On Mac, Homebrew is the de-facto package manager, and Homebrew Cask is the app manager. I’m going to use Cask to install Java 7 and 8.

Install Homebrew Cask first if you haven’t:

brew update
brew tap caskroom/cask
@enricofoltran
enricofoltran / main.go
Last active June 26, 2024 12:16
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@marcio-azevedo
marcio-azevedo / ManagerReadMe.md
Last active September 17, 2020 16:03
Manager ReadMe

Manager ReadMe

Inspired by the Manager ReadMe idea I decided to create my own.

About Me

As an Engineering Manager my primary goal is to support engineering teams improving their processes and practices, enabling value delivery to our customers. I'm a big fan of the idea that teams should be independent value streams so I try to promote:

  • Autonomy
  • Mastery