Skip to content

Instantly share code, notes, and snippets.

View deors's full-sized avatar

Jorge Hidalgo deors

View GitHub Profile
@deors
deors / devops-resources.md
Last active April 11, 2022 09:15
List of useful DevOps resources
sudo chmod -R u+rwX,go+rX,go-w /usr/lib/jvm/jdk8u222-b10/
#!/bin/sh
JAVA_DIR=$1
JAVA_BIN_DIR=$JAVA_DIR/bin
for f in `find $JAVA_BIN_DIR -maxdepth 1 -type f -executable`
do
NAME=`basename $f`
echo removing alternative for $JAVA_BIN_DIR/$NAME
update-alternatives --remove $NAME $JAVA_BIN_DIR/$NAME
done
#!/bin/sh
JAVA_DIR=$1
JAVA_BIN_DIR=$JAVA_DIR/bin
DEST_DIR=/usr/bin
for f in `find $JAVA_BIN_DIR -maxdepth 1 -type f -executable`
do
NAME=`basename $f`
echo setting alternative for $DEST_DIR/$NAME to $JAVA_BIN_DIR/$NAME
#!/bin/sh
JAVA_DIR=$1
JAVA_BIN_DIR=$JAVA_DIR/bin
DEST_DIR=/usr/bin
ALT_LEVEL=$2
for f in `find $JAVA_BIN_DIR -maxdepth 1 -type f -executable`
do
NAME=`basename $f`

instalar la librería

sudo apt-get install python-rpi.gpio

programa de prueba para el buzzer:

<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="3.2" jmeter="3.3 r1808647">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Pet Clinic" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments">
<elementProp name="host" elementType="Argument">
@deors
deors / keyboard.xml
Created October 24, 2017 13:29
configuration for matchbox keyboard with support to spanish characters
<?xml version="1.0" encoding="UTF-8"?>
<keyboard>
<options>
<!-- not yet implemented -->
</options>
<layout id="spanish keyboard">
<row>
@deors
deors / scala-gradle.md
Created March 10, 2017 17:46
Scala y Gradle - primeros pasos (guía rápida en español)

Scala y Gradle - primeros pasos (guía rápida en español)

  1. Instalación y primer arranque

descargar Gradle desde https://gradle.org

hay versión zip y también se puede instalar desde gestores como sdkman, homebrew y chocolatey

@deors
deors / scala-sbt.md
Last active September 26, 2021 21:42
Scala y sbt - primeros pasos (guía rápida en español)

Scala y sbt - primeros pasos (guía rápida en español)

  1. Instalación y primer arranque

descargar sbt launcher desde http://www.scala-sbt.org/

hay versión zip y msi