Skip to content

Instantly share code, notes, and snippets.


Matthias Niess dakira

View GitHub Profile
dakira /
Created Jul 8, 2020
Let script wait for internet connectivity
while ! ping -c 1 -W 1; do
sleep 1
curl -X POST
View verbose brew install
~ brew install --verbose --debug qt5-webkit
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
ack ✔ ammonite-repl assimp bitrise conan exploitdb libtensorflow serverless terragrunt
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/markwu/homebrew-personal/Formula/qt5-webkit.rb
==> Installing qt5-webkit from markwu/personal
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cmake.rb
dakira / class.sublime-snippet
Created Sep 14, 2017
Sublime Text Snippets
View class.sublime-snippet
<!-- Example: Hello, ${1:this} is a ${2:snippet}. -->
class ${TM_FILENAME/(.+)\..+|.*/$1/:name}
dakira / upgrade.yml
Created Aug 18, 2017 — forked from kiview/upgrade.yml
Ubuntu upgrade with Ansible
View upgrade.yml
- hosts:
- all
become: true
- name: Update apt cache
apt: update_cache=yes
- name: Upgrade packages
apt: upgrade=dist

Keybase proof

I hereby claim:

  • I am dakira on github.
  • I am mniess ( on keybase.
  • I have a public key ASBAaZEJcvp5Oumr0JV6tVTaJIR18BbnLCXXIh7kbr4TaAo

To claim this, I am signing this object:

dakira /
Last active Sep 6, 2017
Basic provisioning for Ubuntu 16.04
apt update && apt -y full-upgrade
apt-get install -y joe-jupp mosh byobu software-properties-common \
php7.0-intl php7.0-ldap php7.0-mcrypt php7.0-zip php7.0-soap \
python-setuptools python-simplejson python-imaging python-mysqldb python-flup \
language-pack-de language-pack-en
update-locale LANG=de_DE.UTF-8 LC_MESSAGES=POSIX
# MIGRATE MySQL4 DATABASES TO MySQL5 - Steps for dumping and converting
# Uses mysqldump and patches output to be compatible with MySQL 5.5+ (? - no sure
# at which specific release of MySQL 5 the old style syntax support ended).
# Conversion is most likely incomplete. It does some essential converting where
# I regularly experienced problems during migration.
# Use on own risk, always try with test databases first. No warranty at all!
dakira /
Last active Aug 29, 2015
homstead script to run after provisioning
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
if [ ! -f /usr/local/extra_homestead_software_installed ]; then
apt-get -y install zsh joe-jupp
git clone git:// /home/vagrant/.oh-my-zsh
dakira / gist:134bbebd0298791d9e55
Last active Oct 25, 2019
unattended upgrade configuration
View gist:134bbebd0298791d9e55

needed packages: update-notifier-common unattended-upgrades


APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";
dakira / gist:135f0ca7c86e38a5cf18
Last active Aug 29, 2015
Magento: Activate products in the future
View gist:135f0ca7c86e38a5cf18
Follow these steps to create this functionality:
1. Create a custom date attribute, lets call it ‘activation_date’
2. Create a cron job that should implement the following:
2.1 Retrieve all product ids that were not activated (E.G. status disabled) and their activation date
is lower than current date
2.2 Activate all these products by the product attribute mass-action model: