Skip to content

Instantly share code, notes, and snippets.

View zakame's full-sized avatar

Zak B. Elep zakame

View GitHub Profile
@truatpasteurdotfr
truatpasteurdotfr / Dockerfile
Created May 9, 2017 20:48
alpine and failed perl Number-Format-1.75 test
FROM alpine:latest
MAINTAINER Tru Huynh <tru@pasteur.fr>
RUN apk update && apk upgrade
RUN apk add \
perl \
make
RUN \
cpan install Number::Format
@coco98
coco98 / kube-registry.yaml
Created May 2, 2017 16:31
Docker registry on minikube
apiVersion: v1
kind: ReplicationController
metadata:
name: kube-registry-v0
namespace: kube-system
labels:
k8s-app: kube-registry
version: v0
spec:
replicas: 1
@0racle
0racle / Matplotlib.pm6
Created April 11, 2017 14:28
Matplotlib in Perl6
use Inline::Python;
my $py = Inline::Python.new();
$py.run('import matplotlib.pyplot');
class Matplotlib::Mlab {
method FALLBACK($name, |c) {
$py.call('matplotlib.mlab', $name, |c)
}
}
@alexellis
alexellis / arm.md
Last active May 28, 2024 14:48
Test swarm connectivity

Regular PC / cloud architecture (64-bit)

See the snippets "guide.md" and "redis.md" below.

Swarm on a Raspberry Pi

If you're wanting to run Docker Swarm on your Raspberry Pi checkout these instructions:

@Ovid
Ovid / .perldb
Last active July 5, 2022 15:50
My debugger file
package Ovids::Debugger;
# vim: syntax=perl
=head1 NAME
.perldb - Customize your Perl debugger
=head1 USAGE
@so0k
so0k / kubectl.md
Last active April 25, 2024 12:40
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@zot
zot / ob-skewer.el
Last active August 10, 2020 06:39
Small hack to let orgmode babel JS blocks use skewer if it's currently connected
;; modify ob-js to redirect to skewer if it is currently connected
;; this code can go in an emacs settings file
(require 'ob-js)
(require 'cl)
(advice-add 'org-babel-execute:js :around 'bill/org-babel-execute:skewer)
;;(advice-remove 'org-babel-execute:js #'bill/org-babel-execute:skewer)
(defun bill/org-babel-execute:skewer (oldFunc body params)
(if (skewer-ping)
(lexical-let* ((result-type (cdr (assoc :result-type params)))
@jordonbiondo
jordonbiondo / imenu-use-packge.el
Last active December 15, 2022 10:45
have imenu include use-package
;; in action: http://i.imgur.com/Tt2M0LC.gif
(add-to-list 'imenu-generic-expression
'("Used Packages"
"\\(^\\s-*(use-package +\\)\\(\\_<.+\\_>\\)" 2))
;; I also highly recommend imenu-anywhere to make developing your config even easier
@strawberryjello
strawberryjello / notes-on-emacs-vim.org
Last active August 29, 2015 14:18
Notes for Vim and Emacs beginners.

Notes on Vim and Emacs

Why Vim?

  • Vim is the descendant of vi, designed to be (mostly) backwards-compatible
    • learning vi is useful when you need to edit a file over ssh, since vi is usually installed in any UNIX/UNIX-based system by default
  • Vim’s shortcuts and design, once you learn them, help you search/create/edit/etc files quicker
    • these shortcuts are also used in UNIX-based terminals, such as the man page viewer
  • Vim offers flexible window management (splitting, etc) and works well with tmux, a popular terminal multiplexer
  • Vim’s plugin ecosystem is thriving and full of useful tools for development in most (if not all) languages
  • you can extend Vim yourself using Vimscript

Why Emacs?

@Kursulla
Kursulla / Self signing certificate: Android and Retrofit
Last active November 13, 2018 16:58
Self signing certificate: Android and Retrofit
Enabling communication with API if server has Self-Signed Certificate