Skip to content

Instantly share code, notes, and snippets.

Avatar
Fail Fast, Move On

Lukáš Mešťan arzzen

Fail Fast, Move On
View GitHub Profile
@arzzen
arzzen / index.html
Created Dec 7, 2015
fall back to local jquery in case cdn is unavailable
View index.html
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript">
if (typeof jQuery === 'undefined')
{
// fall back to local jQuery in case CDN is unavailable
document.write('\x3Cscript type="text/javascript" src="/js/jquery.min.js">\x3C/script>');
}
</script>
@arzzen
arzzen / applet.js
Created Apr 29, 2016
Cinnamon weather applet - file applet.sj
View applet.js
//"use strict"
//----------------------------------
// imports
//----------------------------------
/**
* /usr/share/gjs-1.0/
* /usr/share/gnome-js/
*/
@arzzen
arzzen / settings-schema.json
Created Apr 29, 2016
Cinnamon weather applet - file settings-schema.json
View settings-schema.json
{
"woeidLookup":
{ "type": "button"
, "description": "Get WOEID"
, "callback": "woeidLookup"
, "tooltip": "http://woeid.rosselliot.co.nz/"
}
, "woeid":
{ "type": "entry"
, "default": ""
@arzzen
arzzen / Makefile
Created Apr 29, 2016
Update cinnamon weather applet (new Yahoo API)
View Makefile
FILE_APPLET="/home/$(USER)/.local/share/cinnamon/applets/weather@mockturtl/applet.js"
FILE_SCHEMA="/home/$(USER)/.local/share/cinnamon/applets/weather@mockturtl/settings-schema.json"
all:
@echo "usage: make install"
install:
wget -q https://gist.githubusercontent.com/arzzen/7925e31c5355035a6161b5059232ec35/raw/5efbae9132178010ff36cfa105ba238c84ed6069/applet.js -O $(FILE_APPLET) && \
wget -q https://gist.githubusercontent.com/arzzen/1575f9eb3c5daf82f119e37352597dab/raw/999a65b5f9397668dc38c017e01b0c4f0ac04d66/settings-schema.json -O $(FILE_SCHEMA)
View keybase.md

Keybase proof

I hereby claim:

  • I am arzzen on github.
  • I am get (https://keybase.io/get) on keybase.
  • I have a public key whose fingerprint is A18B EADA BDC6 0123 6F9E 29F4 88BB C317 72F6 3516

To claim this, I am signing this object:

@arzzen
arzzen / cygwin-installer.sh
Created Jan 22, 2017
Cygwin Installer - git-quick-stats
View cygwin-installer.sh
#!/usr/bin/env bash
echo "Cygwin Installer - git-quick-stats"
chmod 0755 git-quick-stats && cp git-quick-stats /usr/local/bin/git-quick-stats
git config --global alias.quick-stats '! /usr/local/bin/git-quick-stats'
echo -e "...\ndone"
@arzzen
arzzen / cygwin-uninstaller.sh
Created Jan 22, 2017
Cygwin Uninstaller - git-quick-stats
View cygwin-uninstaller.sh
#!/usr/bin/env bash
echo "Cygwin Uninstaller - git-quick-stats"
test -d /usr/local/bin/git-quick-stats && rm -rf /usr/local/bin/git-quick-stats
git config --global --unset alias.quick-stats '! /usr/local/bin/git-quick-stats'
echo -e "...\ndone"
@arzzen
arzzen / git_log_date_tag_csv.sh
Created Mar 15, 2016
git log date and tag csv
View git_log_date_tag_csv.sh
# output format (datetime;tag), example:
# 2016-03-07 14:54;%C;1.1.61
git log --tags --simplify-by-decoration --pretty="format:%ai%x08%x08%x08%x08%x08%x08%x08%x08%x08;%C;%d" | egrep "\(tag: [0-9]\.[0-9]+\.[0-9]+\)" | sed 's/ (tag: //' | sed 's/)//'
@arzzen
arzzen / notify.sh
Created Sep 16, 2016
Notifikacny skript
View notify.sh
#!/bin/bash
# Install dependences
# sudo apt-get install mailutils
# chmod +x notify.sh
RECEIVER="email@gmail.email"
SERVER_NAME=$HOSTNAME
SENDER=$(whoami)
@arzzen
arzzen / jenkins.css
Last active Aug 17, 2017
jenkins-theme-private
View jenkins.css
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500,300);@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes b{0%{opacity:1}50%{opacity:0}to{opacity:1}}@keyframes b{0%{opacity:1}50%{opacity:0}to{opacity:1}}[src$='blue.png']{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDA5Njg4IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=)}[src$='red.png']{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBma
You can’t perform that action at this time.