Instance | Branch |
---|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
recordmydesktop does not work with Opensuse + pulse. | |
use instead recordmydesktop --device default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup those vars at /etc/environment | |
# PASSPHRASE= | |
# GS_ACCESS_KEY_ID= | |
# GS_SECRET_ACCESS_KEY= | |
# GS_REMOTE= | |
set -x | |
SOURCES=( | |
"/etc" | |
"/usr/local" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -s -u "$PUSHBULLET_TOKEN": \ | |
-X POST https://api.pushbullet.com/v2/pushes \ | |
--header 'Content-Type: application/json' \ | |
--data-binary '{"type": "note", "title": "'"`hostname`"'", "body": "'"DONE"'"}' >/dev/null 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
montage -pointsize 36 -label '%f' $(ls -S *.png | sort -nu) -frame 5 -tile 3x3 -geometry 500 aggregate-task-diagrams.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rules=$1 | |
source $rules | |
mapfile -t keywords < <(< $1 sed -n 's/^\([A-Za-z0-9_]\+\)=.*$/\1/p') | |
while read line | |
do | |
for keyword in "${keywords[@]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(ggplot2) | |
require(scales) | |
## Variables to be set | |
FONT_SIZE_X=12 | |
FONT_SIZE_Y=5 | |
## Source code | |
args = commandArgs(trailingOnly=TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.1' | |
services: | |
zoo1: | |
image: 31z4/zookeeper | |
container_name: zookeeper-server | |
#restart: always | |
ports: | |
- "2181:2181" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git filter-branch -f --env-filter ' | |
OLD_EMAIL="vicentebolea@gmail.com" | |
CORRECT_NAME="Vicente Adolfo Bolea Sanchez" | |
CORRECT_EMAIL="vicente.bolea@gmail.com" | |
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
then | |
export GIT_COMMITTER_NAME="$CORRECT_NAME" | |
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <string.h> | |
void statusbar_to_stdout (const char * item, int percentage) { | |
int i, pos; | |
char per_bar [50 + 1] = {'-'}; | |
if (percentage > 100) percentage %= 100; | |
pos = percentage / 2; | |
printf ("\e[?25l"); // Hide cursor |
NewerOlder