Skip to content

Instantly share code, notes, and snippets.

+ python3 -c 'import os; import middlewared; print(os.path.dirname(middlewared.__spec__.origin))'
+ cd /usr/local/lib/python3.9/site-packages/middlewared
+ alembic upgrade head
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.runtime.migration] Running upgrade -> c6be4fe10acc, Fix references
INFO [alembic.runtime.migration] Running upgrade c6be4fe10acc -> e49fadd7285d, Fix booleans
INFO [alembic.runtime.migration] Running upgrade e49fadd7285d -> 0d545b21e189, Drop Django tables
INFO [alembic.runtime.migration] Running upgrade 0d545b21e189 -> a3423860aea0, Drop nfs_share_path MtM
INFO [alembic.runtime.migration] Running upgrade a3423860aea0 -> d38e9cc6174c, Fix lacking foreign keys
@dwhacks
dwhacks / network_new
Last active December 13, 2020 20:53
/etc/config/network new
# /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fda2:ed20:3b24::/48'
@dwhacks
dwhacks / network_old
Created December 13, 2020 20:05
current network config, no vlans
#/etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fda2:ed20:3b24::/48'
@dwhacks
dwhacks / Test_LPF.ino
Created April 19, 2020 03:09
Test_LPF.ino
//BCD to Decimal Test sketch by VE7DNT
const int A = 4; //pin numbers
const int B = 5;
const int C = 6;
const int D = 7;
void setup() {
// put your setup code here, to run once:
@dwhacks
dwhacks / Test_LPF.ino
Created April 19, 2020 03:08
Test_LPF.ino
//BCD to Decimal Test sketch by VE7DNT
const int A = 4; //pin numbers
const int B = 5;
const int C = 6;
const int D = 7;
void setup() {
// put your setup code here, to run once:
sudo su
sudo echo "/usr/sbin/mysqld { }" > /etc/apparmor.d/usr.sbin.mysqld
apparmor_parser -v -R /etc/apparmor.d/usr.sbin.mysqld
/**********************************************
* Catalin Batrinu bcatalin@gmail.com
* Read temperature and pressure from BMP280
* and send it to thingspeaks.com
**********************************************/
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BMP280.h>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php if(!session_id()) session_start(); ?>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
<title>GPS Tracker</title>
</head>
<body>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin>
X-Cron-Env: <HOME=/var/log>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
1% 2% 3% 4% 5% 6% 7% 8% 9% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% 0% 1% 2% 3% 4% 5% 6% 7% 8% 9% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%rules/deleted.rules: Write failed
rules/exploit-kit.rules: Write failed
rules/exploit.rules: Write to restore size failed
rules/file-executable.rules: Write to restore size failed
@dwhacks
dwhacks / Attiny85_LCD_Serial.ino
Created June 11, 2014 01:51
Attiny85 read serial LCD
/*
SoftSerial Enabled LCD Kit
by: Jim Lindblom - SparkFun Electronics
Characters received in a Softserial stream are displayed on a 16x2,
20x4, etc. LCD. Special commands are also available to clear, scroll
display cursors and other functions.
License: Beerware - As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day,
and you think this stuff is worth it, you can buy
me a beer in return.