Skip to content

Instantly share code, notes, and snippets.

Adrián López adrianlzt

Block or report user

Report or block adrianlzt

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 sharescreen
#!/bin/bash
# Modified version of https://github.com/Ashark/hliss/blob/master/vlc-hangouts
# https://gist.github.com/adrianlzt/216aabb9568b162c92317f768d889c76
# Script to share a portion of the screen in VLC to be used by Chrome/Firefox to share the screen
# By default, when run, it asks to click in some window. The area of that window is what is going to be shared.
# If executed with "sharescreen area", it asks for a portion of the screen to be shared.
unset x y w h
View max.rb
#!/bin/ruby
require 'json'
require 'stringio'
# Complete the maxSubsetSum function below.
def maxSubsetSum(arr)
end
@adrianlzt
adrianlzt / sharescreen
Created Feb 7, 2019
Scripts to share only a portion of the screen
View sharescreen
#!/bin/bash
# Modified version of https://github.com/Ashark/hliss/blob/master/vlc-hangouts
# Script to share a portion of the screen in VLC to be used by Chrome/Firefox to share the screen
# By default, when run, it asks to click in some window. The area of that window is what is going to be shared.
# If executed with "sharescreen area", it asks for a portion of the screen to be shared.
unset x y w h
# Old code to choose a monitor
View emitter.go
package main
import (
"bytes"
"encoding/gob"
"fmt"
"plugin"
)
func main() {
View visualvm.sh
#!/bin/sh
DIRNAME=`dirname "$0"`
GREP="grep"
# Use the maximum available, or set MAX_FD != -1 to use that
MAX_FD="maximum"
# OS specific support (must be 'true' or 'false').
cygwin=false;
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Testing snap</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js"></script>
<script>
window.onload = function () {
var g = Snap();
g.attr({
viewBox: [0, 0, 800, 600]
@adrianlzt
adrianlzt / jenkins-docker-slaves.groovy
Last active Apr 4, 2019 — forked from stuart-warren/jenkins-docker-slaves.groovy
Automatically configure the docker cloud in Jenkins (/var/lib/jenkins/init.groovy.d/jenkins-docker-slaves.groovy).
View jenkins-docker-slaves.groovy
#!groovy
/*
* Automatically configure the docker cloud in Jenkins.
* Tested with:
* - {name: 'docker-plugin' ver: '1.1.2'}
*
* Based on: https://gist.github.com/stuart-warren/e458c8439bcddb975c96b96bec3971b6
*/
import jenkins.model.*;
View date_musl_glibc.c
#define _XOPEN_SOURCE
#include "stdio.h"
#include "stdlib.h"
#include "time.h"
#include "string.h"
int main(void) {
char buf[100];
struct tm tm1, tm2;
View filtrar_ejecucciones.html
<!--
En la configuración de una pipe, en la seccion "Descripción" se puede cargar este javascript para que al pasar como parámetro "server=HOST"
solo muestre las ejecucciones de dicho host.
Ejemplo:
https://dcip.hi.inet/job/dsmctools/job/icinga/job/dsmctools/job/default/job/prueba_udo_y_test_fallido/view/int/configure
Ejemplo de como entrar a la pipe filtrando:
https://dcip.hi.inet/job/dsmctools/job/icinga/job/dsmctools/job/default/job/prueba_udo_y_test_fallido/view/int/?server=A
View index.html
<html><head>
</head>
<body><button style="height: 36px;">Hola</button>
</body></html>
You can’t perform that action at this time.