Skip to content

Instantly share code, notes, and snippets.

View inadarei's full-sized avatar

Irakli Nadareishvili inadarei

View GitHub Profile
@inadarei
inadarei / http.md
Created October 17, 2016 03:34
HTTP 1.1 Latest RFCs
  1. RFC7230 Message Syntax and Routing
  2. RFC7231 Semantics & Content - methods, status codes and headers
  3. RFC7232 Conditional Requests - e.g., If-Modified-Since
  4. RFC7233 Range Requests - getting partial content
  5. RFC7234 Caching - browser and intermediary caches
  6. RFC7235 Authentication - a framework for HTTP authentication
@inadarei
inadarei / .bash_profile
Last active March 4, 2017 15:58
Bash Profile Script for Guaranteed Docker Machine Activation
# Make sure that ur #docker host is active & ready to go, in every shell, no matter what:
export DOCKER_MACHINE_ACTIVE="your-docker-machine-name"
export DOCKER_MACHINE_ACTIVE_STATUS=`docker-machine ls | grep -i "$DOCKER_MACHINE_ACTIVE" | grep "Running" | awk '{ print $2}'`
if [ "$DOCKER_MACHINE_ACTIVE_STATUS" != "*" ]; then
if [ "$DOCKER_MACHINE_ACTIVE_STATUS" != "-" ]; then
echo "Docker machine $DOCKER_MACHINE_ACTIVE not running. Starting…"
docker-machine start $DOCKER_MACHINE_ACTIVE
sleep 3s
eval "$(docker-machine env $DOCKER_MACHINE_ACTIVE)"
@inadarei
inadarei / statevscapability.md
Last active April 18, 2019 21:54
state vs capability thinking

State-oriented thinking

  1. Find me users whose names are "john"
  2. Retrieve current state of that user, for each user. Start loop:
  3. Is their name still "john"?
  4. Update the state of the user object so their name is now "johnnie"
  5. Clean-up loop

Capabilities-oriented exchange

var React = require('react');
module.exports = function() {
return (
<div>
Your template content.
</div>
);
@inadarei
inadarei / text.md
Last active August 29, 2015 14:15 — forked from awinder/text.md

Building Secure Networks with Vyatta on SoftLayer

What is Vyatta, and why would you want to use it?

  • Discussion of private vs public vnet and motivation - very briefly
  • The role/importance of VPN, Firewall and secure access - very briefly
  • Link to the open-source VyOS version and the commercial Vyatta project

Splitting your public and private traffic - spend most of your time here

@inadarei
inadarei / uberextension.json
Last active August 29, 2015 14:11
Extending UBER with profiles (JSON)
{
"uber": {
"version": "1.0",
"data": [
{
"rel": [
"self"
],
"url": "http://example.org/"
},
@inadarei
inadarei / uberextension.xml
Created December 23, 2014 01:47
Extending UBER with profiles (XML)
<uber version="1.0">
<data rel="self" url="http://example.org/" />
<data rel="profile" url="http://microformats.org/profile/hcard">
<data name="fn">Jennifer Gallegos</data>.
</data>
<data name="todo" rel="item http://example.org/rels/todo" url="http://example.org/list/1">
<data name="title">Clean House</data>
<data name="dueDate">2014-05-01</data>
</data>
</uber>
@inadarei
inadarei / julia.bash
Created December 5, 2014 21:41
julia cli
export PATH="/Applications/Julia-0.3.3.app/Contents/Resources/julia/bin:$PATH"
@inadarei
inadarei / umasks.bash
Created November 29, 2014 01:11
Check Umasks for Bash Users
#!/bin/bash
for user in $(awk -F: '( $3 >= 500 ){print $1}' /etc/passwd);
do
mask=`sudo su -c 'umask' -l $user 2>/dev/null`
echo $user $mask
done

Keybase proof

I hereby claim:

  • I am inadarei on github.
  • I am irakli (https://keybase.io/irakli) on keybase.
  • I have a public key whose fingerprint is C511 1274 64E8 0402 9575 3200 7434 E772 6E3B 3232

To claim this, I am signing this object: