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
self.env['ir.attachment'].search([('db_datas','=',False),('type','=','binary')]).unlink() | |
#regenerate assets | |
#restart odoo |
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/ash | |
# | |
# angry_wifi.sh | |
# | |
# auto disconnects clients with a low signal strength on LEDE / OpenWRT. great | |
# for clients who hold onto a lower-signal-strength accesspoint instead of | |
# roaming. before running, make sure to download the latest MAC addresses with: | |
# | |
# wget --no-check-certificate -O - 'https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MAC&text=apple' | cut -d, -f2 > apple_mac_addresses | |
# |
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
#migrate/OLD/data | |
#migrate/NEW/data | |
docker run -ti -e PGUSER=odoo -e POSTGRES_INITDB_ARGS="-U odoo" --rm -v $PWD/migrate:/var/lib/postgresql tianon/postgres-upgrade:11-to-15 --link |
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
proxy_read_timeout 720s; | |
proxy_connect_timeout 720s; | |
proxy_send_timeout 720s; | |
proxy_buffering on; | |
proxy_buffers 16 8k; | |
proxy_buffer_size 16k; | |
proxy_set_header HOST $http_host; | |
#proxy_set_header Referer ''; | |
#proxy_set_header Origin ''; |
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 | |
// This plugin insert variables in form of {PROXY} to templates | |
// | |
// /usr/local/ispconfig/server/lib/classes/plugins.inc.php:120 | |
// $ret = call_user_func(array($app->loaded_plugins[$plugin_name], $function_name), $event_name, $data); | |
// if (isset($ret['data'])) $data = $ret['data']; | |
// | |
// install in /usr/local/ispconfig/server/pugins_enabled |
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 | |
$db = 'cca_second'; | |
$user = 'admin'; | |
$passwd = 'westcoast123'; | |
$data = array( | |
'jsonrpc'=> '2.0', | |
'params'=> [ | |
'context'=> [], |
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 xml.etree.ElementTree as ET | |
import os | |
import re | |
import sys | |
import traceback | |
from datetime import datetime | |
# Creates a csv to import with wp-all-import and redirect (last two columns) | |
CSV_FORMAT = "id;owner;title;subtitle;abstract;content;date;image;tags;category;slug;link;link2" | |
FNAME = "data.csv" |
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 | |
IPFAILOVER="" | |
FIRSTHOST="hiro" | |
KUBE_VER="1.17" | |
MYNET="10.2.85." | |
CARPNET="10.174.1." | |
N1="167" | |
N2="168" | |
N3="169" |
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 | |
# FIRSTHOST="hiro" | |
# MYNET="10.2.85." | |
# CARPNET="10.174.1." | |
# N1="167" | |
# N2="168" | |
# N3="169" | |
# CARPPASS="rascaldev2020" | |
# WORMHOLE="false" |
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/python2 | |
import socket, threading | |
import SimpleHTTPServer | |
import SocketServer | |
import sys | |
delay = 0.2 | |
prefix = '192.168.2.' | |
first_ip = 2 |
NewerOlder