Skip to content

Instantly share code, notes, and snippets.

Dmitry Kireev AutomationD

Block or report user

Report or block AutomationD

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View run.sh
#!/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 Apr 4, 2018
Dell iDrac Zabbix 3.0
View template.xml
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>
View kafka.conf
[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 Apr 4, 2019
Logstash IntelliJ Idea Filetype
View Logstash.xml
<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 Mar 28, 2018
Ramdisk persitance daemon
View ramdisk-manage
#!/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 Jul 7, 2015
Arduino 2 Nodemcu Passthrough
View gist:1f512ef4cbfb09ac918c
#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
Remove java from windows via puppet
View gist:daa5a6ac55ec4cadd0c8
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 Aug 29, 2015
Spiffy patches for Windows
View main.c.patch
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 Aug 29, 2015
Merge bin and add files to spiffs
View Ubuntu - prerequisites.sh
# Getting required packages - Ubuntu
sudo apt-get install -y python-serial srecord bc
View MacOS-SDK.sh
# Prerequisites:
# Xcode
# Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap homebrew/dupes
brew install binutils coreutils automake wget gawk libtool gettext gperf gnu-sed --with-default-names grep
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
You can’t perform that action at this time.