Skip to content

Instantly share code, notes, and snippets.

@berkos
berkos / docker-cleanup-resources.md
Created April 15, 2019 11:44 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@berkos
berkos / capybara cheat sheet
Created November 22, 2018 10:54 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@berkos
berkos / 1_kubernetes_on_macOS.md
Created September 25, 2018 21:06 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@berkos
berkos / .profile
Created February 12, 2018 17:03 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@berkos
berkos / tizen.xml
Created November 26, 2017 17:30
samsung tizen
<?xml version="1.0" encoding="utf-8"?>
<Client name="Samsung Tizen">
<!-- Author: Plex Inc. -->
<TranscodeTargets>
<VideoProfile protocol="hls" container="mpegts" codec="h264" audioCodec="aac,mp2,mp3,ac3,eac3" context="streaming">
<Setting name="BreakNonKeyframes" value="true" />
</VideoProfile>
<MusicProfile container="mp3" codec="mp3"/>
<PhotoProfile container="jpeg"/>
</TranscodeTargets>
@berkos
berkos / samsung_smart_tv.xml
Created November 26, 2017 17:29
samsung smart tv
<?xml version="1.0" encoding="utf-8"?>
<Client name="Samsung SmartTV">
<!-- Author: holzi -->
<!-- http://www.samsungdforum.com/Guide/View/Developer_Documentation/Technical_Notes/Player/Detailed_player_specification -->
<Identification>
<DeviceDescription>
<ModelUrl substring="samsung.com" />
</DeviceDescription>
</Identification>
<Settings>

Keybase proof

I hereby claim:

  • I am berkos on github.
  • I am berkos (https://keybase.io/berkos) on keybase.
  • I have a public key ASBFguX7k49UKOL39ZbejWOvtJlAhrFy7YO_O0X1qZI8dgo

To claim this, I am signing this object:

@berkos
berkos / test.css
Created May 18, 2016 00:23
test.css
<p style="color: #b12e32">
<strong><em>&nbsp; All benches &nbsp;are hand made in our New York Studio!</em></strong>
</p>
@berkos
berkos / array_of_hashes.rb
Created March 26, 2016 11:24
array_of_hashes.rb
{
cart_items:
[
{
product_id: 1,
quantity: 22
},
{
product_id: 2,
quantity: 2