Skip to content

Instantly share code, notes, and snippets.

View Horaddrim's full-sized avatar
👽
Seeking knowledge...

Horaddrim Horaddrim

👽
Seeking knowledge...
  • C-137
View GitHub Profile
@berlinbrown
berlinbrown / gist:4583728
Created January 21, 2013 05:05
Simplest Possible Web Crawler with C++
//============================================================================
// Name : OctaneCrawler.cpp
// Author : Berlin Brown (berlin dot brown at gmail.com)
// Version :
// Copyright : Copyright Berlin Brown 2012-2013
// License : BSD
// Description : This is the simplest possible web crawler in C++
// Uses boost_regex and boost_algorithm
//============================================================================
@macintux
macintux / erlang-resources.md
Last active December 15, 2025 22:31
Erlang online resources

This is not intended to be comprehensive or authoritative, just free online resources I've found valuable while learning more about Erlang.

Joe Armstrong's Swedish Institute of Computer Science homepage (Wayback Machine)

https://web.archive.org/web/20070429181654/http://www.sics.se/~joe/

Similar lists

@staltz
staltz / introrx.md
Last active January 28, 2026 19:26
The introduction to Reactive Programming you've been missing
## -*- coding: utf-8 -*-
import os
import time
import datetime
import logging
import logging.handlers
class Logger(object) :
#inner class for logs
class __Logger:
@princejwesley
princejwesley / await-babel-repl.js
Last active January 9, 2021 09:20
REPL with standalone await + babel transform
const repl = require('repl');
const babel = require('babel-core');
function preprocess(input) {
const awaitMatcher = /^(?:\s*(?:(?:let|var|const)\s)?\s*([^=]+)=\s*|^\s*)(await\s[\s\S]*)/;
const asyncWrapper = (code, binder) => {
let assign = binder ? `global.${binder} = ` : '';
return `(function(){ async function _wrap() { return ${assign}${code} } return _wrap();})()`;
};
@RobsonX4
RobsonX4 / nodemailer.js
Last active October 6, 2017 17:24
Code Crumbs
//npm i nodemailer --save
var nodemailer = require('nodemailer');
function sendEmail(subject, emailBody, email){
let myEmail = 'myEmailAddress';
let transporter = nodemailer.createTransport({
service: 'Hotmail', //Gmail, Hotmail
auth: {
@Horaddrim
Horaddrim / quicksort+concurrency.go
Created August 22, 2017 14:14
A simple demonstration of the power of channels, and a play with the quicksort algorithm
package main
import (
"fmt"
)
func separar(nums []int, i, p chan<- int, pronto chan<- bool) {
for _, n := range nums {
if n%2 == 0 {
p <- n
#Exibir processos de uma porta
PORT=3000
lsof -i:$PORT
#Matar todos os processos de uma porta
kill -9 $(lsof -t -i:$PORT -sTCP:LISTEN)
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
// docker run <container> cmd args
aws ec2 create-security-group --group-name jenkins-group --description "security group for CI in EC2"
# sg-2452a250
MY_IP=$(curl ipinfo.io/ip)
aws ec2 authorize-security-group-ingress --group-name jenkins-group \
--protocol tcp --port 8080 --cidr $MY_IP/32 \
aws ec2 authorize-security-group-ingress --group-name jenkins-group \
--protocol tcp --port 22 --cidr $MY_IP/32