Skip to content

Instantly share code, notes, and snippets.

View AutomationD's full-sized avatar
🎛️
Turning Knobs

Dmitry Kireev AutomationD

🎛️
Turning Knobs
View GitHub Profile
@AutomationD
AutomationD / keybase.md
Created February 26, 2021 15:03
keybase.md

Keybase proof

I hereby claim:

  • I am automationd on github.
  • I am automationd (https://keybase.io/automationd) on keybase.
  • I have a public key ASDLuMtXEzhlNlmisnfQO8wdiI6ZGNfh-I0nS-8FccyY8Ao

To claim this, I am signing this object:

@AutomationD
AutomationD / run.sh
Last active December 22, 2017 00:01
xfce HDPI
#!/bin/bash
xfconf-query -c xsettings -p /Xft/DPI -s "190"
xfconf-query -c xfwm4 -p /general/theme -s "Default-hdpi"
xfconf-query -c xfce4-panel -p /panels/panel-0/size -s "49"
xfconf-query -c xfce4-desktop -p /desktop-icons/icon-size -s 64
@AutomationD
AutomationD / template.xml
Last active April 4, 2018 12:57
Dell iDrac Zabbix 3.0
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2016-06-28T16:26:35Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
[program:kafka]
command = /usr/local/kafka/bin/kafka-run-class.sh -name kafkaServer -loggc kafka.Kafka /usr/local/kafka/config/server.properties
stopwaitsecs = 60
redirect_stderr = true
stdout_logfile = /var/log/kafka/kafka-stdout.log
stdout_logfile_maxbytes = 0
stdout_logfile_backups = 0
stopasgroup=true
environment =
JAVA_HOME="/usr/java/default",
@AutomationD
AutomationD / Logstash.xml
Last active June 18, 2020 20:39
Logstash IntelliJ Idea Filetype
<filetype binary="false" description="Logstash Config" name="Logstash Config">
<highlighting>
<options>
<option name="LINE_COMMENT" value="#" />
<option name="COMMENT_START" value="" />
<option name="COMMENT_END" value="" />
<option name="HEX_PREFIX" value="" />
<option name="NUM_POSTFIXES" value="" />
<option name="HAS_BRACES" value="true" />
<option name="HAS_BRACKETS" value="true" />
@AutomationD
AutomationD / ramdisk-manage
Last active March 28, 2018 17:03
Ramdisk persitance daemon
#!/bin/sh
# /etc/init.d/ramdisk-manage
#
case "$1" in
start)
echo "Syncing files from harddisk to ramdisk"
rsync -av /var/lib/ramdisk-persisance/ /mnt/ramdisk/
echo [`date +"%Y-%m-%d %H:%M"`] Ramdisk Synched from HD >> /var/log/ramdisk-manage.log
;;
@AutomationD
AutomationD / gist:1f512ef4cbfb09ac918c
Created July 7, 2015 22:29
Arduino 2 Nodemcu Passthrough
#include <dht.h>
#define DHT11_PIN 4
dht DHT;
HardwareSerial trm = Serial2;
HardwareSerial esp = Serial1;
HardwareSerial dbg = Serial;
const int moistureAO = 7;
float moisture = 0.0;
float temperature = 0.0;
@AutomationD
AutomationD / gist:daa5a6ac55ec4cadd0c8
Created May 27, 2015 23:20
Remove java from windows via puppet
puppet apply -e "package {'Java 7 Update 71': ensure => absent} package {'Java 8 Update 31': ensure => absent} package {'Java 8 Update 31 (64-bit)': ensure => absent}"
@AutomationD
AutomationD / main.c.patch
Last active August 29, 2015 14:19
Spiffy patches for Windows
8,9c8,9
< //16k
< #define MAX_SIZE 4*4*1024
---
> //192k
> #define MAX_SIZE 12*4*4*1024
@AutomationD
AutomationD / Ubuntu - prerequisites.sh
Last active August 29, 2015 14:19
Merge bin and add files to spiffs
# Getting required packages - Ubuntu
sudo apt-get install -y python-serial srecord bc