Skip to content

Instantly share code, notes, and snippets.

View tomasol's full-sized avatar

Tomáš Olvecký tomasol

  • Bratislava, Slovakia
View GitHub Profile
@tomasol
tomasol / cla-obelisk-v1.txt
Last active August 16, 2024 16:32
Obelisk CLA
Obelisk Workflow Engine Individual Contributor License Agreement v1.0
Thank you for your interest in contributing to the Obelisk Workflow Engine (the "Project"). In order to clarify the intellectual property license granted with Contributions from any person or entity, the Project requires a Contributor License Agreement ("CLA") on file that has been signed, accepted, or otherwise agreed to by each contributor, indicating agreement to the license terms below. This license is for your protection as a contributor as well as the protection of the Project and its users; it does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to the Project. Except for the license granted herein to the Project and recipients of software distributed by the Project, You reserve all right, title, and interest in and to Your Contributions.
1. Definitions
"You" (or "Your"): The copyright owner or
use std::thread;
use std::net::SocketAddr;
use socket2::{Socket, Domain, Type};
use std::net::Shutdown;
use std::sync::Arc;
fn main() {
let socket = Arc::new(Socket::new(Domain::ipv4(), Type::stream(), None).unwrap());
socket.bind(&"127.0.0.1:8080".parse::<SocketAddr>().unwrap().into()).unwrap();
@tomasol
tomasol / gist:1959192
Created March 2, 2012 15:32
Elastic Search on ec2
Elastic Search on ec2
ami: Ubuntu 11.10 Oneiric EBS boot Canonical ubuntu@ ami-a0ba68c9
apt-get install:
openjdk-7-jdk
xfsprogs
htop
create new ebs (20gb), mount as sdf
mkfs.xfs /dev/xvdf