Skip to content

Instantly share code, notes, and snippets.

View tsusanka's full-sized avatar

Tomas Susanka tsusanka

View GitHub Profile
@thejh
thejh / autoreauth.sh
Created December 4, 2014 14:44
RUB LAK automatic login
#!/bin/sh
while true; do
errorstr="$(ping -c1 -n -w1 8.8.8.8 2>&1 | grep '100% packet loss')"
if [ "$errorstr" != '' ]; then
echo -n 'reconnecting... '
./uni_reauth.sh
else
echo 'still ok'
fi
sleep 1
@mahemoff
mahemoff / circle.yml
Created April 13, 2015 14:49
MySQL 5.6 in CircleCI
dependencies:
post:
- export DEBIAN_FRONTEND=noninteractive
- sudo apt-get -y remove mysql-server
- sudo apt-get -y autoremove
- sudo apt-get -y install software-properties-common
- sudo add-apt-repository -y ppa:ondrej/mysql-5.6
- sudo apt-get update
- sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password ""'
- sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password ""'