Skip to content

Instantly share code, notes, and snippets.

View carlossg's full-sized avatar
🦄
Yak shaving

Carlos Sanchez carlossg

🦄
Yak shaving
View GitHub Profile
@carlossg
carlossg / logi-mute.sh
Created February 23, 2021 20:35
Remote control key re-mapping in macOS
#!/bin/bash -eux
# Remote control key re-mapping in macOS
# Maps right arrow to M so you can mute/unmute in BlueJeans
# You'll need to determine your specific ProductID
# You can find ProductIDs for internal and external devices at the following location:
# Apple icon > About This Mac > System Report > USB (under Hardware section in left panel)
# These changes will be reverted after each restart.
@carlossg
carlossg / jx-alibaba-china.md
Last active June 21, 2019 07:43
jenkins-x alibaba china

Using jx cli 2.0.283 and platform 2.0.634

jx install \
  --provider alibaba \
  --default-admin-password=admin \
  --default-environment-prefix=jx-rocks-china \
  --tekton \
  --docker-registry=registry.cn-beijing.aliyuncs.com \
 --docker-registry-org=jx-rocks \
@carlossg
carlossg / block_personal_appts
Last active September 12, 2018 15:50 — forked from ttrahan/block_personal_appts
Google Apps Script to automatically create, edit and delete events on work calendar for personal calendar events. Instructions on how to set up can be found at https://medium.com/@willroman/auto-block-time-on-your-work-google-calendar-for-your-personal-events-2a752ae91dab
function sync() {
var id="XXXXXXXXX"; // CHANGE - id of the secondary calendar to pull events from
var today=new Date();
var enddate=new Date();
enddate.setDate(today.getDate()+7); // how many days in advance to monitor and block off time
var secondaryCal=CalendarApp.getCalendarById(id);
// var secondaryEvents=secondaryCal.getEvents(today,enddate,{statusFilters: [CalendarApp.GuestStatus.YES]});
@carlossg
carlossg / Jenkinsfile
Last active June 12, 2017 17:50
Kubernetes Hello World
/**
* This pipeline will deploy to Kubernetes
*/
library identifier: 'fabric8-pipeline-library@v2.2.311', retriever: modernSCM(
github(repoOwner: 'fabric8io', repository: 'fabric8-pipeline-library')
)
podTemplate(label: 'deploy', containers: [
containerTemplate(name: 'jnlp', image: 'jenkinsci/jnlp-slave:latest'),
El proyecto Jenkins se ha enterado de que una compañía está intentando registrar "Jenkins" como marca registrada en Colombia. Esto es alarmante y estamos tratando de oponernos. Para hacerlo de manera efectiva, necesitamos escuchar a los usuarios colombianos de Jenkins.
El proyecto Jenkins posee una marca registrada "Jenkins" en los Estados Unidos, a través de una entidad sin ánimo de lucro SPI Inc. Según los expertos en la materia citando la "Convención de Washington", nuestro registro de marca en los EE.UU. nos da algo de fuerza para oponernos. Sin embargo, para argumentar con éxito, tenemos que ser capaces de demostrar que Jenkins tiene un uso significativo y es conocido en Columbia. Usuarios, instalaciones, encuentros, conferencias, cualquier cosa de ese tipo ayudará.
Aquellos que llevan mucho tiempo con el proyecto pueden recordar que el nombre "Jenkins" nació debido a un problema de marca con Oracle. Por lo tanto, somos particularmente sensibles al tema de las marcas registradas. Queremos asegurarnos d
@carlossg
carlossg / readme.md
Created September 17, 2015 10:36
Mesos SSL problems

Configuration

In /etc/default/mesos

export SSL_ENABLED=true
export SSL_SUPPORT_DOWNGRADE=false
export SSL_REQUIRE_CERT=true
export SSL_CERT_FILE=/etc/mesos/tiger-jdoe-controller-1.tiger.acme.net.crt
export SSL_KEY_FILE=/etc/mesos/tiger-jdoe-controller-1.tiger.acme.net.key
@carlossg
carlossg / dhcp-monitor
Created July 10, 2015 12:22
DHCP monitor and reload
#!/bin/sh
HOSTS="8.8.8.8"
COUNT=1
while true
do
for myHost in $HOSTS; do
if ! ping -c $COUNT $myHost > /dev/null; then
echo "Host : $myHost is down (ping failed) at $(date)"
@carlossg
carlossg / 1.7.0 rc2
Last active August 29, 2015 14:23
Docker shared mount
$ sudo umount /mnt/xvdb
$ cat /proc/self/mountinfo | grep mnt
67 22 202:1 /mnt /mnt rw,relatime shared:1 - ext4 /dev/disk/by-uuid/e1d70192-1bb0-461d-b89f-b054e45bfa00 rw,discard,data=ordered
$ docker --version
Docker version 1.7.0-rc2, build 7ddecf7
$ docker run -d --name test -v /mnt/xvdb:/mnt busybox tail -f /dev/null
9865a125bd2d43cb06887e821e1b298fdee944bb72604edb2f5862619c1a200a
$ ls -laF /mnt/xvdb
total 8
drwxr-xr-x 2 root root 4096 Jun 17 20:05 ./
### Keybase proof
I hereby claim:
* I am carlossg on github.
* I am carlos (https://keybase.io/carlos) on keybase.
* I have a public key whose fingerprint is 03C6 E9F3 C99E 43AC D46F 4202 4EBC 0C9F 0208 FC11
To claim this, I am signing this object:
Jan 28, 2015 11:35:29 AM hudson.model.DownloadService$Downloadable doPostBack
SEVERE: <div class=error><img src='/jenkins/static/69e42646/images/none.gif' height=16 width=1>Signature verification failed in downloadable &#039;hudson.tools.JDKInstaller&#039; <a href='#' class='showDetails'>(show details)</a><pre style='display:none'>java.security.cert.CertPathValidatorException: timestamp check failed
at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:129)
at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:212)
at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:140)
at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:79)
at java.security.cert.CertPathValidator.validate(CertPathValidator.java:292)
at org.jvnet.hudson.crypto.CertificateUtil.validatePath(CertificateUtil.java:93)
at jenkins.util.JSONSignatureValidator.verifySignat