Skip to content

Instantly share code, notes, and snippets.

View alex-slynko's full-sized avatar
:octocat:
Reading code, writing code.

Oleksandr Slynko alex-slynko

:octocat:
Reading code, writing code.
View GitHub Profile
apiVersion: v1
kind: Service
metadata:
labels:
k8s-app: springone
name: springone
spec:
ports:
- port: 80
targetPort: 8080
@alex-slynko
alex-slynko / kubecon_curl.sh
Last active December 15, 2018 17:44 — forked from hobbsh/kubecon_curl.sh
Download CF Boston summit presentations from Sched
#!/bin/bash
mkdir kubecon
DAYS=("2018-12-11" "2018-12-13" "2018-12-12")
for DAY in "${DAYS[@]}"; do
#Super shitty pipefest because of grep matched groups sadness
LINKS=($(curl https://kccna18.sched.com/${DAY}/overview | grep -oEi "f='(.*)' cl" | cut -d\' -f 2 | tr '\n' ' '))
for LINK in "${LINKS[@]}"; do
echo "Requesting https://kccna18.sched.com${LINK}"
#Find file link on event page
@alex-slynko
alex-slynko / vimrc
Created March 25, 2015 15:43 — forked from r00k/vimrc
" A minimal vimrc for new vim users to start with.
"
" Referenced here: http://www.benorenstein.com/blog/your-first-vimrc-should-be-nearly-empty/
" Original Author: Bram Moolenaar <Bram@vim.org>
" Made more minimal by: Ben Orenstein
" Last change: 2012 Jan 20
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc