Skip to content

Instantly share code, notes, and snippets.

View jmcarbo's full-sized avatar

Joan Marc Carbo jmcarbo

  • -
  • Barcelona (SPAIN)
View GitHub Profile
Test
test
@jmcarbo
jmcarbo / test.md.md
Created August 22, 2019 21:04
Test markdown gist

test.md

This is a test

FROM golang:latest
RUN apt-get update && apt-get install -y \
build-essential \
libssl-dev \
uuid-dev \
libgpgme11-dev squashfs-tools wget git
RUN mkdir -p $GOPATH/src/github.com/sylabs && cd $GOPATH/src/github.com/sylabs && git clone https://github.com/sylabs/singularity.git && cd singularity && \
go get -u -v github.com/golang/dep/cmd/dep && ./mconfig && make -C builddir && make -C builddir install
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-ingress-controller
namespace: kube-system
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
version: '3.3'
services:
elasticsearch:
image: 'docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.2'
deploy:
restart_policy:
condition: any
mode: global
environment:
network.host: _eth0:ipv4_
docker
chef generate cookbook bla
chef-client --local-mode -runlist "recipe[bla]"
/ip dhcp-server lease {
:foreach i in=[find (dynamic && status="bound" && server="rang172-20-4")] do={
:local activeAddress [get $i active-address]
:local activeMacAddress [get $i active-mac-address]
:local hostname ""
:local hostname [get $i host-name]
:if ( [:len $hostname] > 0) do={ :put "OK $[:len $hostname] *$hostname*"; [/ip dhcp-server lease make-static $i]; }
:put ($outputContent . "\n" . $activeAddress . "," . $activeMacAddress . "," . $hostname)
}
go get github.com/bitly/oauth2_proxy
htpasswd -c -b -s htpasswd bla blabla
# Disable airport utility
launchctl remove com.apple.AirPortBaseStationAgent
CREATE TYPE guacamole_connection_group_type AS ENUM(
'ORGANIZATIONAL',
'BALANCING'
);
CREATE TYPE guacamole_object_permission_type AS ENUM(
'READ',
'UPDATE',
'DELETE',
'ADMINISTER'
);