Skip to content

Instantly share code, notes, and snippets.

View judavi's full-sized avatar

Juan judavi

  • Palet Town
View GitHub Profile
@judavi
judavi / Readme.md
Last active June 4, 2018 12:02
Openshift Ansible configuration

openshift_master_admission_plugin_config

openshift/openshift-ansible#7983

systemctl restart atomic-openshift-master-api atomic-openshift-master-controllers

systemctl restart origin-master-api origin-master-controllers

systemctl restart origin-node

systemctl start origin-master-api origin-master-controllers

@judavi
judavi / Dockerfile1
Last active June 25, 2018 08:39
Buildah Building speed test
FROM centos
LABEL firstLabel="help" \
secondLabel="help" \
thirdLabel="help" \
fi2rstLabel="help" \
se2condLabel="help" \
th2irdLabel="help" \
f22irstLabel="help" \
s22econdLabel="help" \
70 -> TypejugAlingSOulS
@judavi
judavi / Readme.md
Last active February 2, 2019 11:46
Docker Linux ACL

The idea of use the native permissions from Linux on the containers will work, because when the container is running it acts as a normal Linux machine, respecting the user/groups permissions.

Using the next Dockerfile as an example

# I'm using the ubuntu image only for testing porpouse, the same will apply for RHEL
FROM ubuntu

# Switch to root
@judavi
judavi / log.log
Last active February 22, 2019 06:40
log
Preparing to unpack .../linux-sound-base_1.0.25+dfsg-0ubuntu5_all.deb ...
Unpacking linux-sound-base (1.0.25+dfsg-0ubuntu5) ...
Selecting previously unselected package alsa-base.
Preparing to unpack .../alsa-base_1.0.25+dfsg-0ubuntu5_all.deb ...
Unpacking alsa-base (1.0.25+dfsg-0ubuntu5) ...
Selecting previously unselected package alsa-utils.
Preparing to unpack .../alsa-utils_1.1.3-1ubuntu1_amd64.deb ...
Unpacking alsa-utils (1.1.3-1ubuntu1) ...
Selecting previously unselected package alsa-tools.
Preparing to unpack .../alsa-tools_1.1.3-1_amd64.deb ...
@judavi
judavi / gist:2f2289596f34d3cc87be21a2be082875
Created February 22, 2019 07:51
Add sink cards on Linux
https://unix.stackexchange.com/questions/174379/how-can-i-create-a-virtual-output-in-pulseaudio
You can add a sink with
pacmd load-module module-null-sink sink_name=MySink
pacmd update-sink-proplist MySink device.description=MySink
You can add a loopback device with the command
pacmd load-module module-loopback sink=MySink
@judavi
judavi / Readme.md
Created April 7, 2019 10:09
Install Docker-ce CentOS or RHEL

#Install Docker & Docker Compose - Centos 7

Step 1 — Install Docker Install needed packages:

$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2

Configure the docker-ce repo:

@judavi
judavi / groovy.groovy
Created April 10, 2019 10:31
Jenkins Start new node/agent container and send emails
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, cloud: 'myKubernetesCluster',
containers:[
containerTemplate(name: 'jnlp',
alwaysPullImage: true,
resourceRequestMemory: '4Gi',
resourceLimitMemory: '4Gi',
resourceRequestCpu: '1000m', resourceLimitCpu: '1000m',
workingDir: '/home/jenkins/workspace',
@judavi
judavi / script.sh
Created June 28, 2019 22:24
Change creation date of all files in directory MacOS
for f in *; do t=$(echo $f | sed -E 's/[-. mov]//g'); touch -mt 201906211300 $f; done
#for f in *; do t=$(echo $f | sed -E 's/[-. mov]//g'); touch -mt YYYYMMDDHHMM $f; done
@judavi
judavi / filebeat.yml
Created July 18, 2019 15:00
All lines filebeat
harvester_buffer_size: 66384
multiline.pattern: 'Started by user '
multiline.negate: true
multiline.match: after
multiline.max_lines: 255000
multiline.timeout: 250s
multiline.flush_pattern: 'Finished: '