- Force rpm removal despite of failing scripts
yum erase --setopt=tsflags=noscripts
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 | |
[ -f ".perltidyrc" ] || exit 1 | |
echo "Precommit Perl tidy" | |
root="$(git rev-parse --show-toplevel)" | |
git diff --name-only --cached | { | |
labort=0 |
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
autocmd FileType yaml setlocal ai et ts=2 sw=2 |
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
import socket | |
host = '127.0.0.1' | |
port = 2181 | |
facts = {} | |
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
client.connect((host, port)) |
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
--- | |
- set_fact: | |
ansible_ibm_mq: {} | |
- name: Run dspmqver | |
shell: "{{ ibm_mq_install_path }}/bin/dspmqver" | |
register: results | |
ignore_errors: true | |
- set_fact: |
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
--- | |
- hosts: localhost | |
tasks: | |
- name: Run asinfo | |
shell: asinfo -l -v stats | |
register: asinfo_output | |
- set_fact: | |
aero_stats: "{{ aero_stats|default({})|combine( { item.split('=')[0] : item.split('=', 1)[1] } ) }}" | |
with_items: "{{ asinfo_output.stdout_lines }}" |
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
#[cfg(unix)] | |
use nix::{ | |
sys::{ | |
signal::{sigaction, SaFlags, SigAction, SigHandler, SigSet, Signal}, | |
wait::{waitpid, WaitPidFlag, WaitStatus}, | |
}, | |
unistd::Pid, | |
}; | |
// Note: Signal handler should be written with great care. E.g if you |
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
#!/usr/bin/perl | |
$_=q; ;;$=/=2;$\=qq;\012;;$_=$_ x($=);$/=\24;$q=qq;$_*;; | |
$::__= sub{print $q};sub gm{s;(?<=\w\w)\w+;;g;s;n;nd;g; | |
eval;}sub xm{$::__->();} sub me{map{xm,$q=~s= \*=\* \*= | |
}($+..$=/2);$q} sub ye{$=--;$_='*'x --$=;$_.=q; *** ;, | |
tr;* ; *;;$q=$_;}*nde=*ha=*xm;$_=q; | |
merry xmas and happy new year |
#-*- mode: org -*-
Valore | Note | |
---|---|---|
Peso pasta g | 400 | |
Idratazione | 70 | 60-85 |
Sale g per l | 40 | 35-50 |
Temperatura | 19 | |
Ore lievitazione | 4 |
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
{ | |
"\UF729" = moveToBeginningOfLine:; // home | |
"\UF72B" = moveToEndOfLine:; // end | |
"$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home | |
"$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end | |
} |