Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🐦

Stratos Gerakakis stratosgear

💭
🐦
View GitHub Profile
@stratosgear
stratosgear / Docker Inheritance
Last active May 10, 2016
Docker Inheritance
View Docker Inheritance
' http://www.planttext.com/planttext?text=VLR9Rjim4BtpAuYUMbIAso3emK2A14WF0L8WGBeSWx54ouGfaY4f9sxHV-zm4IKgRds8oNbljkSPALVMWN53BmZvnfrWz4OrUsRehTmnmnt8XX7ouC0n-kRxPf1ke1ylpZvSlA5WQJICi3wwdP8rRqK0DHuMaBPzXF0mGXl0VBBDcB_FOD2yjimSc0beF8uWQmJNbWMa1-kOIHRwcr1Q9WWaXDDrmXSPa9AIP4QZUgqaaywEZCb2a3P5fNNzkOYGpoCoywJbVMJu-iaVGfBQtXhb8_4hMhou_a-yUS7oRPOYsyQkFJCR2gzKyiGe1IMakA_fvUKb_PB06tPWGkaUSv9KvPg2TcjgrTOzWs6rDaepupYpDTRNvsxMz8p6psRWegsPjHY5WwXIrtNB3fchkLvJmvu6Pfsjw4wvsh2Mun77sDcsefs1epwIq5UgeVl5TKMVE-OgAlXcQnXpHyq-bRUO9tYzJnKX_A8ZxKLxF1xxONx-L3e5RZyBngN56cvlxgAqOqroQC610DaDq35iTj-XC7BBkohnOi2EOzKmEEN1UEfXpqeI9dLAeMGIf48Djieu0x8a3JBeq1niCiVAy8XXhJDALhJNMv-lwRWjVB6JHXsLmq8RP5YEMNOCXEOlXCJ9YHDnVtTz_UEMNj_VqeSuK2DwiksCnZGp4NnFMdP1o94KVdqSjOfk1TXzlL7AOU6Wbt4YR9ugQfxg5knkey2qIrPeu8Z1GaCPZB8CpMFJZC9ap9fcJLUsx6nkNC61FpBPSOcFpRHZIPc7hzHByrCPVBvEMFGUzvDCori8EjlfEIE8Yag95lHvdCe2p-DXmOhpFBRMYd0-pTrkUP1z3gR5QmM-7MelMbfEd_X460q6UhvNYt9Yh_E7P-exzdejH93eEKXawLlsqdZTtasqqyippl_4-zyylQBzOyUMj9J5Vszmm896hoa2DDeycFVm10kSZx01oyemGUScQ9k6Rv
View Sample PlantUml Diagram
participant User
User -> A: DoWork
' edit online at:
' http://www.planttext.com/planttext?text=LOx12i8m38RlUOg0vxt068NMCV2gYEVGvL1Msvb5dz_L5Tno28J_oyS_asZmOQQaU5zO0Ch6ng1jiS-FB1EGr_0XPRHu6WQt3e2jo2KfIwA8dc8ya3t9TAFupAdIhiMkGo-y0bT-lNbHDER_ireTDfksvkSVFCB8EsftsCrSAfUsYG_X5m00
activate A #FFBBBB
A -> A: Internal call
activate A #DarkSalmon
View PLAAVI Job Request
' edit online at:
' http://www.planttext.com/planttext?text=TP7TReCm38Nl_HH-0Lu0JKX8KwMYHaEzM2wscmnSBIfAM4XXZpyxG0VxwPNB-MoVuq2qiIEiJsNvVCJAl-6PFcuqH7mQAOoM9e3UX6WRsniNLz0CNEq4RbN6YL2fdN1ebkzS_12q3rSAiwPtMZdQRr43E1y9FJkIjRC7AEiZ3koH0f1hKH20bwoeJtaA4kOWO9feHnCb971lLbGgno7oDgQWfQr-hpa4GAMoWbtdsFh9TTwq1zlHi6rXx5vBFe3E-nulFY13xtZX1a3-iIYpz7vMaZO3zCe-PDa2kndQx1IC0ukzXAa5so7gZoYIkwN6jeHylrStfGiF63tI9pKtlfzWl7Rz-qzIVX3G2PGHV5FseN-xqFlJfzlBuoWJhkc57gNX2m00
title PLAAVI Job Request Overview
participant PLAAVI as PL
participant JobMan as JM
participant FcMan as FcM
participant FcWorker as FcW
participant AviWorker as W
@stratosgear
stratosgear / list.py
Created Apr 21, 2015
Nicely display Google history
View list.py
#!/usr/bin/python2
import sys
import json
from datetime import datetime
if len(sys.argv) < 2:
print "Give me the json file to display!"
sys.exit(-1)
with open(sys.argv[1], 'r') as jsonFile:
View keybase.md

Keybase proof

I hereby claim:

  • I am stratosgear on github.
  • I am stratosgerakakis (https://keybase.io/stratosgerakakis) on keybase.
  • I have a public key whose fingerprint is 4C43 4698 3509 EBC8 0CD5 AC98 FFA8 A428 1718 AFC7

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am stratosgear on github.
  • I am stratosgear (https://keybase.io/stratosgear) on keybase.
  • I have a public key whose fingerprint is 89B6 36C0 8A3E 8473 43D2 D478 0F99 7F95 48D8 8152

To claim this, I am signing this object:

@stratosgear
stratosgear / gist:964236
Created May 10, 2011
Syntax hilighting for Blogger
View gist:964236
<link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/>
<link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPython.js' type='text/javascript'/>
<script language='javascript'>
SyntaxHighlighter.config.bloggerMode = true;
View gist:964229
stratos@yoda:/tmp$ cd ~
stratos@yoda:~$ cd sandbox/
stratos@yoda:~/sandbox$ dd if=/dev/zero of=raid1 bs=10240 count=10240
10240+0 records in
10240+0 records out
104857600 bytes (105 MB) copied, 0.315455 s, 332 MB/s
stratos@yoda:~/sandbox$ cp raid1 raid2
@stratosgear
stratosgear / gist:964228
Last active Feb 18, 2020
Sample javascript snippet
We couldn’t find that file to show.
View gist:964226
stratos@falcon:~$ ls
Desktop Downloads examples.desktop Pictures Public Ubuntu One
Documents Dropbox Music proj Templates Videos
stratos@falcon:~$