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
### Keybase proof | |
I hereby claim: | |
* I am michelep on github. | |
* I am michelepin (https://keybase.io/michelepin) on keybase. | |
* I have a public key ASBJQbAto-H_jCkG8m9oKZbo1JPJvebu6BhbLrPrYaq81Ao | |
To claim this, I am signing this object: |
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
In liquid_feedback_frontend directory, edit file app/main/_layout/default.html and add a line like at line 7: | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> | |
<link rel="icon" type="image/png" href="__BASEURL__/static/favicon.ico"> | |
<title><!-- WEBMCP SLOTNODIV html_title --></title> | |
<link rel="stylesheet" type="text/css" media="screen" href="__BASEURL__/static/gregor.js/gregor.css" /> | |
<link rel="stylesheet" type="text/css" href="<!-- WEBMCP SLOTNODIV stylesheet_url -->" /> |
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
Elenco pacchetti installati: | |
# dpkg --get-selections > elenco.txt | |
ripulisci l'elenco: | |
# awk '{print $1}' elenco.txt > elenco.lst | |
script bash per installare i pacchetti: | |
#!/bin/bash |
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
Encrypt a file using a supplied password: | |
$ openssl enc -aes-256-cbc -salt -in file.txt -out file.txt.enc -k PASS | |
Decrypt a file using a supplied password: | |
$ openssl enc -aes-256-cbc -d -in file.txt.enc -out file.txt -k PASS |
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
... | |
# ===================== OPTION 66 | |
# option tftp-server-name "tftp://voip."; | |
option tftp-server-name "voip."; | |
option subnet-mask 255.255.255.0; | |
# ==================== OPTION 114 | |
# Gigaset URL for provisioning | |
option dhcp_114_FW_URL code 114 = text; |
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
curl -XGET https://localhost:9200/_cat/shards -u admin:admin -k | grep UNASSIGNED | awk {'print $1'} | xargs -i curl -XDELETE "https://localhost:9200/{}" -u admin:admin -k |
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
{ | |
"policy": { | |
"policy_id": "hot_cold_workflow", | |
"description": "A simple default policy that changes the replica count between hot and cold states.", | |
"last_updated_time": 1607978734307, | |
"schema_version": 1, | |
"error_notification": null, | |
"default_state": "hot", | |
"states": [ | |
{ |
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/env python | |
# | |
###################################################### | |
# | |
# WiFi network password manager | |
# | |
# Tested with FortiGATE v6.2.6 and v6.2.2 | |
# | |
# This script change password for [WIFI BSSID] and send a mail with the new password | |
# |
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
Da console: | |
config waf profile | |
edit {Profile Name} | |
config signature | |
set disabled-signature {Event ID} {Event ID} | |
end | |
end |
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
<?php | |
// | |
// Questa procedura preleva dai routers, via SNMP, l'elenco degli indirizzi IP e relativi MAC connessi, salvandoli su una tabella MySQL: | |
// | |
// -- | |
// -- Struttura della tabella `ipMACs` | |
// -- | |
// | |
// CREATE TABLE IF NOT EXISTS `ipMACs` ( |
OlderNewer