Skip to content

Instantly share code, notes, and snippets.

Marek Jelen marekjelen

Block or report user

Report or block marekjelen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Dockerfile
RUN curl -sL -o /etc/yum.repos.d/centos-essentials.repo https://gist.githubusercontent.com/marekjelen/c08a3c3a548820144f2da01d2bad6279/raw/centos-essentials.repo
ENV PATH=/opt/essentials/bin:$PATH
@marekjelen
marekjelen / tree.rb
Created Jul 20, 2018
CTE based tree in Ruby on Rails
View tree.rb
def ancestors(options = {})
options[:direction] ||= :up
self.tree_relation_builder(options)
end
def descendants(options = {})
options[:direction] ||= :down
self.tree_relation_builder(options)
end
View pvs.sh
#!/bin/bash
for i in {1..20}; do
cat <<EOF > tmp.json
{
"apiVersion": "v1",
"kind": "PersistentVolume",
"metadata": {
"name": "pv-${i}"
},
View test.rb
#!/usr/bin/env ruby
puts 'Hello!!!'
@marekjelen
marekjelen / readme.md
Last active Oct 18, 2017
Auxiliary Turris APs
View readme.md

Request for "SimpleTurris"

HW Requirements

  • Radio 2.4GHz and 5GHz
  • Ethernet port

Functions

  • When connected to network, will try to lookup Turris Omnia on 192.168.1.1 and will sync with it
View preview.sh
docker run -p 8080:8080 -e CONTENT_URL_PREFIX="https://raw.githubusercontent.com/osevg/workshopper-content/36" -e WORKSHOPS_URLS="https://raw.githubusercontent.com/osevg/workshopper-content/36/_workshops/training.yml" -e CONSOLE_ADDRESS="console.<name>.gce.pixy.io:8443" -e ROUTER_ADDRESS="apps.<name>.gce.pixy.io" osevg/workshopper
oc new-app osevg/workshopper -e CONTENT_URL_PREFIX="https://raw.githubusercontent.com/osevg/workshopper-content/36" -e WORKSHOPS_URLS="https://raw.githubusercontent.com/osevg/workshopper-content/36/_workshops/training.yml" -e CONSOLE_ADDRESS="console.<name>.gce.pixy.io:8443" -e ROUTER_ADDRESS="apps.<name>.gce.pixy.io"
View keybase.md

Keybase proof

I hereby claim:

  • I am marekjelen on github.
  • I am mjelen (https://keybase.io/mjelen) on keybase.
  • I have a public key whose fingerprint is E1D7 68F1 F750 5DC3 9FDB 3809 C279 1E6D 5578 7326

To claim this, I am signing this object:

View setup.sh
export FACTER_id="2"
(curl https://gist.githubusercontent.com/marekjelen/abe55f694b1f4a9243d4/raw/setup.sh) | bash
You can’t perform that action at this time.