Skip to content

Instantly share code, notes, and snippets.

🦄
Yak shaving

Carlos Sanchez carlossg

🦄
Yak shaving
Block or report user

Report or block carlossg

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
@carlossg
carlossg / block_personal_appts
Last active Sep 12, 2018 — 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
View block_personal_appts
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]});
View Dockerfile
FROM ansible/centos7-ansible:stable
# or, for example, FROM ansible/ubuntu14.04-ansible:stable
RUN yum install -y tar
RUN ansible-galaxy install geerlingguy.java
RUN ansible-galaxy install https://github.com/silpion/ansible-maven.git
# Add playbooks to the Docker image
COPY site.yml /
@carlossg
carlossg / Jenkinsfile
Last active Jun 12, 2017
Kubernetes Hello World
View Jenkinsfile
/**
* 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'),
View gist:57580869435e9d070289388f027e731e
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 / videbcontrol.sh
Created Jan 23, 2014
Script to change .deb control file and repackage
View videbcontrol.sh
#!/bin/bash
# Change .deb control file and repackage
# credits Loevborg http://ubuntuforums.org/showthread.php?t=636724&p=3925729#post3925729
if [[ -z "$1" ]]; then
echo "Syntax: $0 debfile"
exit 1
fi
View ninja-parse-xively.js
Parse.Cloud.define("hello", function(request, response) {
var xivelyKey = 'YOUR XIVELY KEY';
var feedId = 713578059;
var device = request.params.D;
var channels = {
31: 'Temperature',
30: 'Humidity'
};
var channel = channels[device];
@carlossg
carlossg / onx_wifi_post.js
Last active Dec 25, 2015
on{X} rule for POSTing to a url while connected to a specific wifi access point
View onx_wifi_post.js
// Initializing variables
// url to post to. If using ninjablocks this is a webhook you created in the dashboard
var url = "https://api.ninja.is/rest/v0/device/WEBHOOK_0_0_108/subdevice/fIOAY/tickle/xxxxxxxxxxx";
// the wifi SSID
var ssid = "myhomewifi";
// how often to trigger the POST
var seconds = 5*60;
var method = "POST";
@carlossg
carlossg / StubTest.java
Created May 13, 2012
Test the jclouds stub
View StubTest.java
Iterable<Module> modules = ImmutableSet.<Module> of( new SshjSshClientModule() );
ContextBuilder builder = ContextBuilder.newBuilder( "stub" ).credentials( "x", "y" ).modules( modules );
builder.buildView( ComputeServiceContext.class ).getComputeService();
com.google.inject.CreationException: Guice creation errors:
1) A binding to org.jclouds.predicates.SocketOpen was already configured at org.jclouds.sshj.config.SshjSshClientModule.configure(SshjSshClientModule.java:48).
at org.jclouds.compute.stub.config.StubComputeServiceDependenciesModule.socketOpen(StubComputeServiceDependenciesModule.java:116)
View gist:1250837
class test1(
$servicex = "sonar",
$logfoldera = "${homex}/logs",
$logfoldere = "${homey}/logs",
$logfolderh = "${homez}/logs",
$logfolder = "${homex}/logs",
$homex = "/var/${servicex}",
$homey = "/var/${servicex}",
$homez = "/var/${servicex}") {
@carlossg
carlossg / readme.md
Created Sep 17, 2015
Mesos SSL problems
View readme.md

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
You can’t perform that action at this time.