- brew install sshfs *. mkdir mount
- mkdir -pv ~/mount/ci.tecla.it
- sshfs waswc@ci.tecla.it:/ ~/mount/ci.tecla.it
- ls ./mount/ci.tecla.it/
diskutil list | grep -v disk0 | tail +2 | |
diskutil unmountDisk /dev/disk2 | |
sudo dd if=/dev/zero of=/dev/rdisk2 bs=1024 count=1 | |
sudo dd if=./debian-9.6.0-amd64-netinst.iso of=/dev/rdisk2 bs=4m |
while read line; do | |
row=$(echo $line | grep CST | wc -l) | |
if [ $row -eq 1 ];then | |
code=$(echo $line | cut -d"]" -f 1 | cut -d"[" -f 2) | |
code=${code%\:???*CST*} | |
codesec=$(date -d "$code" +%s) | |
secdiff=$((( $codesec - ${precsec:=0}))) | |
if [ $secdiff -gt 20 ];then |
/* | |
ESP8266 Blink | |
Blink the blue LED on the ESP8266 module | |
*/ | |
#include <Arduino.h> | |
#define LED 2 //Define blinking LED pin | |
void setup() { |
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
# http://www.wedoit.io:8080/cam.cgi?mode=camcmd&value=recmode | |
# http://www.wedoit.io:8080/cam.cgi?mode=camcmd&value=capture | |
# http://www.wedoit.io:8080/cam.cgi?mode=camcmd&value=capture_cancel | |
# http://www.wedoit.io:8080/cam.cgi?mode=getinfo&type=curmenu | |
# http://www.wedoit.io:8080/cam.cgi?mode=getinfo&type=allmenu | |
from bottle import route, run, request, response, template, static_file |
import glob | |
import ConfigParser, io | |
import StringIO | |
import re | |
BEGIN_TAG="BEGIN METADATA" | |
END_TAG="END METADATA" | |
#script_list=glob.glob("*.sh") | |
script_list=glob.glob("Daily_catalogue_extraction.sh") |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import csv | |
from jira import JIRA | |
options = {'server': 'https://acme.atlassian.net'} | |
jira = JIRA(options, basic_auth=('<<username>>', '<<password>>')) | |
size = 1000 | |
initial = 0 |
#!/bin/bash | |
# Exec "nc -l -p 8080 -vvv" on server | |
host=cac.noip.me | |
port=8080 | |
while [ 1 ] | |
do |
-- vai qui: https://www.oraclerecipes.com/monitoring/find-blocking-sessions/ | |
COLUMN username FORMAT a10 HEADING 'Holding|User' | |
COLUMN session_id HEADING 'SID' | |
COLUMN mode_held FORMAT a20 HEADING 'Mode|Held' | |
COLUMN mode_requested FORMAT a20 HEADING 'Mode|Requested' | |
COLUMN lock_id1 FORMAT a20 HEADING 'Lock|ID1' | |
COLUMN lock_id2 FORMAT a20 HEADING 'Lock|ID2' | |
COLUMN type HEADING 'Lock|Type' |
/* https://stackoverflow.com/questions/148648/oracle-is-there-a-tool-to-trace-queries-like-profiler-for-sql-server */ | |
SELECT | |
S.LAST_ACTIVE_TIME, | |
S.MODULE, | |
S.SQL_FULLTEXT, | |
S.SQL_PROFILE, | |
S.EXECUTIONS, | |
S.LAST_LOAD_TIME, | |
S.PARSING_USER_ID, | |
S.SERVICE |