Skip to content

Instantly share code, notes, and snippets.

View MXMLN-sec's full-sized avatar

MXMLN MXMLN-sec

  • Germany
  • 07:26 (UTC +02:00)
View GitHub Profile
blueprint:
name: Controll thermostat temperature at night owers
description:
domain: automation
input:
threshold:
name: Set temperature at night
description:
default: 16
selector:
@MXMLN-sec
MXMLN-sec / ipferf.sh
Last active June 14, 2017 11:24
iperf Bash
#!/bin/bash
# Check dependencies
type iperf > /dev/null 2>&1
if [[ $? -ne 0 ]]; then
echo -e >&2 "\e[31mERROR 2: iperf is required but not installed\e[39m"
exit 1
fi
# Chack arguments
@MXMLN-sec
MXMLN-sec / ipferf.sh
Created June 12, 2017 14:47
iperf Bash
#!/bin/bash
# Check dependencies
type iperf > /dev/null 2>&1
if [[ $? -ne 0 ]]; then
echo -e >&2 "\e[31mERROR 2: iperf is required but not installed\e[39m"
exit 1
fi
# Chack arguments
@MXMLN-sec
MXMLN-sec / Preferences.sublime-settings
Last active February 19, 2017 13:42
Sublime Text settings
{
"font_size": 10,
// Spacing between the gutter and the text
"margin": 0,
// Set to true to turn spell checking on by default
"spell_check": true,
// The number of spaces a tab is considered equal to
@MXMLN-sec
MXMLN-sec / css-example.css
Created February 16, 2017 09:51
Web Templates
@charset "utf-8";
/*##################################################
Author:
Date: XX.XX.XXXX
################################################### */
@MXMLN-sec
MXMLN-sec / .bash_aliases
Created February 11, 2017 18:28
Bash Alias
alias l.='ls -d .* --color=auto'
alias ls='ls --color=auto'
alias la='ls -lah --color=auto'
alias ll='ls -lh --color=auto'
alias grep='grep --color=auto'
alias vi='vim'
alias myip='curl -s v4.icanhazip.com; curl -s icanhazip.com'
alias dow='cd ~/Downloads'
alias doc='cd ~/Documents'
@MXMLN-sec
MXMLN-sec / README.md
Last active October 4, 2018 16:28
Change LDAP Password

This script bypasses your companies password policy in which you need to change your password in intervals and it's not allowd to use the last X passwords

Dependencies:

  • smbpasswd
  • pwgen

#pwgen -c Include at least one capital letter in the password -n Include at least one number in the password