Skip to content

Instantly share code, notes, and snippets.

View simukti's full-sized avatar
🏠
Working from home

Sarjono Mukti Aji simukti

🏠
Working from home
View GitHub Profile
@simukti
simukti / docker-cleanup.sh
Created July 24, 2018 11:39
Clean-up unused docker leftover stuff after you run docker build or docker-compose.
#!/usr/bin/env bash
## reference: https://gist.github.com/bastman/5b57ddb3c11942094f8d0a97d461b430
## cleanup unused networks
echo "--- CLEANUP UNUSED NETWORKS ---"
##unused_network=$(docker network ls | awk '$3 == "bridge" && $2 != "bridge" { print $1 }')
unused_network=$(docker network ls | grep "bridge" | awk '/ / { print $1 }')
if [[ $unused_network ]] && (( $(grep -c . <<<"$unused_network") > 1 )); then
## this will not delete active network and predefined network
echo -e "$unused_network"

Keybase proof

I hereby claim:

  • I am simukti on github.
  • I am simukti (https://keybase.io/simukti) on keybase.
  • I have a public key whose fingerprint is 98FB 94A7 B1E8 9616 2B5B DCCD 0CB9 F511 7C27 C996

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am simukti on github.
  • I am simukti (https://keybase.io/simukti) on keybase.
  • I have a public key whose fingerprint is C4A8 6AF2 9A37 7222 333C D3EB 3FCF C4A1 6C34 1304

To claim this, I am signing this object:

@simukti
simukti / Googl.php
Created July 25, 2012 18:33
Simukti\Service\ShortUrl\Googl
<?php
/**
* Description of Googl
*
* @author Sarjono Mukti Aji <me@simukti.net>
*/
namespace Simukti\Service\ShortUrl;
class Googl extends \Zend_Service_ShortUrl_AbstractShortener
{
@simukti
simukti / Rsa.php
Created May 2, 2011 11:01
Zend_Crypt_Rsa implant
<?php
/**
* CORE
* Custom extended library for Zend Framework 1.10.x
*
* Copyright (c) 2011, Sarjono Mukti Aji <http://simukti.net/>
* All rights reserved.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this libraries source code.