Skip to content

Instantly share code, notes, and snippets.

@eliagbenu
eliagbenu / website-monitor-example.py
Created February 27, 2019 07:32 — forked from ogrigas/website-monitor-example.py
Example Python script that pings a website and sends email alert in case it's unreachable
from urllib2 import urlopen
def send_alert():
from smtplib import SMTP
from email.mime.text import MIMEText
msg = MIMEText('nuf said')
msg['Subject'] = 'inventi.lt is unreachable'
msg['From'] = 'osvaldas@inventi.lt'
@eliagbenu
eliagbenu / README-Template.md
Created December 13, 2018 10:34 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@eliagbenu
eliagbenu / shake.xml
Last active September 8, 2015 16:23 — forked from simon-heinen/shake.xml
A simple shake / wiggle animation for Android
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<rotate
android:duration="70"
android:fromDegrees="-5"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="5"
android:repeatMode="reverse"
@eliagbenu
eliagbenu / tmux-cheatsheet.markdown
Last active August 29, 2015 14:27 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname