Skip to content

Instantly share code, notes, and snippets.

Avatar

Rodrigo Alfonso rodri042

View GitHub Profile
View boilerandroid.json
[
{
"id": 1,
"date": "2018-01-02",
"slug": "first-post",
"title": {
"rendered": "First post!"
},
View OVERRIDE-GLOBAL-KEY-SHORTCUTS.txt
https://askubuntu.com/questions/62654/disable-global-keyboard-shortcuts-for-specific-application
I posted this question in stackoverflow expecting loads of excellent answers but got none.
My personal solution is currently:
Install very light weight wm like 'twm': (sudo apt-get install twm)
Kick off a concurrent X session with no wm: xinit /usr/bin/xterm -- :2
View FIX-OLD-CERTBOT-ERROR.url
https://community.letsencrypt.org/t/solution-client-with-the-currently-selected-authenticator-does-not-support-any-combination-of-challenges-that-will-satisfy-the-ca/49983
View menu.md

Screenshot

screenshot at 2017-05-10 02 06 49

Mocked data

{
           "Subsea":{
              "Wetmate":{
                    "5500":[
                        {
View demo-interactive.gbs
interactive program {
INIT -> {
repeat (50) {
Poner(Verde)
}
}
K_W -> Mover(Norte)
K_S -> Mover(Sur)
K_A -> Mover(Oeste)
K_D -> Mover(Este)
View LSDj.txt
LSDJ Cheatsheet:
General:
- Cambiar entre pantallas: Select + flechas
- Reproducir / Parar: Start
- Agregar chain/phrase/instrument: A,A
- Cambiar entre chains/phrases/instruments: A + flechas
- Borrar: B + A
- Copy: Select + B. Abre una selección múltiple. Para terminar: B. Para cortar: Select + A.
- Copiar fila o columna: Select + B,B
View play-and-shift.sh
#!/bin/bash
SONG=$1
VALUE=$2
PARAMETER=$3 # "speed" or "pitch" (default)
if [ $VALUE ">" 0 ] ; then
FACTOR=1.059463094352953
else
FACTOR=0.9438743126816935
View deploy-assets.sh
#!/bin/bash
# Example:
# ./deploy-assets.sh ~/.ssh/id_rsa atheneum1.mumuki.io /root/playground/mumuki-atheneum
SSH_KEY=$1
SERVER_HOST=$2
SERVER_PATH=$3
SERVER_USER="root"
View main.c
#include "CUnit/Basic.h"
#include <unistd.h>
#include "archivo.h"
static char* path = "prueba.txt";
static FILE* archivo = NULL;
int inicializar() {
unlink(path);
archivo = fopen(path, "w+");
View archivo.c
#include "archivo.h"
//Devuelve el tamaño de un archivo
int archivo_obtenerTamanio(char* path) {
struct stat stat_file;
stat(path, &stat_file);
return stat_file.st_size;
}
//Lee un archivo de texto hasta el final