Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am endorfin on github.
  • I am endorfin (https://keybase.io/endorfin) on keybase.
  • I have a public key ASCNBiPIuewwP9vSJAv02htqG84x9kN_KcTXzq_-408i9Qo

To claim this, I am signing this object:

@endorfin
endorfin / HTML5 Skeleton template.html
Created July 19, 2016 21:26 — forked from meltedlilacs/HTML5 Skeleton template.html
My basic html5 document, every time. with starting css
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<title></title>
<link href="style.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
@endorfin
endorfin / german_date.rb
Created June 14, 2016 10:40
Jekyll German Date Filter
module Jekyll
module GermanDate
def german_date(text)
map = {
'May' => 'Mai',
'Oct' => 'Okt',
'Dec' => 'Dez',
'January' => 'Januar',
'February' => 'Februar',
@endorfin
endorfin / snmp.rb
Created March 13, 2016 13:21 — forked from drolfe/snmp.rb
Ruby Snmp Interface Bandwidth
#!/usr/bin/ruby
require 'rubygems'
require 'snmp'
include SNMP
@results = Array.new
# Interface speed in mbps
interface_speed = 10000
def get_snmp
@endorfin
endorfin / gist:e23d8b908525e2fb1b0d
Created September 13, 2014 08:11
Prevent browser's default functionality when dropping file outside of a drop zone
$(document).bind('drop dragover', function (e) {
e.preventDefault();
});
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential git-core libssl-dev
# Install rbenv
RBENV_ROOT=/opt/rbenv
git clone https://github.com/sstephenson/rbenv.git $RBENV_ROOT
@endorfin
endorfin / gplus2twitter.rb
Created June 19, 2013 13:37
15min ruby script to post googleplus 2 twitter
require 'rubygems'
require 'fileutils'
require 'feedzirra'
require 'googl'
require 'twitter'
# twitter
Twitter.configure do |config|
config.consumer_key = CONSUMER_KEY
config.consumer_secret = CONSUMER_SECRET
@endorfin
endorfin / rbenv-install-system-wide.sh
Created September 17, 2012 10:09 — forked from jnx/rbenv-install-system-wide.sh
SERVER: rbenv install and system wide install on Ubuntu 10.04 LTS.
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path:
@endorfin
endorfin / yamllint.sh
Created April 20, 2012 19:49
BASH: Find/Validate YAML File with YAHLLint.com from Command Line
# found at http://pastebin.com/9aW75CUi
for i in $(find config -name '*yml'); do curl --data-urlencode yaml'@'$i -d utf8='%E2%9C%93' -d commit=Go http://yamllint.com/ --trace-ascii out -G 2>&1 | egrep 'div.*background-color'; done
#OR
for i in $(find config -name '*yml')
do
curl --data-urlencode yaml'@'$i -d utf8='%E2%9C%93' -d commit=Go http://yamllint.com/ --trace-ascii out -G 2>&1 | egrep 'div.*background-color'