Skip to content

Instantly share code, notes, and snippets.

View delirehberi's full-sized avatar
🏍️
§

Emre YILMAZ delirehberi

🏍️
§
View GitHub Profile
@emre
emre / goto.py
Last active December 14, 2015 04:29
cok fazla sunucu uzerinde calisinca cok fazla alias yazmak zorunda kalabiliyorsunuz ssh baglantilari icin. ssh auth konusunu password olmadan hallediyorsaniz goto makine1, goto solr_server, goto X seklinde ip adresleriyle ugrasmadan baglanti yapmanizi kolaylastiran ufak bir script.
#!/usr/bin/python
import os
import sys
try:
import simplejson as json
except ImportError:
import json
@teaholiday89
teaholiday89 / fetch.stuff
Created April 2, 2013 07:48
Fetch Libs
{
"files":
{
"angular.js": "https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js",
"dropdown.js": "https://raw.github.com/enyo/dropzone/master/downloads/dropzone.js",
"holder.js": "https://raw.github.com/imsky/holder/master/holder.js",
"howler.js": "https://raw.github.com/goldfire/howler.js/master/howler.min.js",
"jKit.js": "https://raw.github.com/FrediBach/jQuery-jKit/master/jquery-1.9.1.min.js",
"jq++": "http://jquerypp.com/downloads/jquerypp-1.0.1.zip",
"jquery.js": "http://code.jquery.com/jquery.min.js",
anonymous
anonymous / README.markdown
Created April 8, 2013 23:18

Gist: The Script

Works great with Gist: The Website.

Installation

homebrew:

@umpirsky
umpirsky / kill-me-please
Created April 18, 2013 20:29
After running this recursive script on Linux, you are screwed!
#!/bin/bash
./kill-me-please
@hlee
hlee / git_report
Created April 19, 2013 23:18
git report
#! /usr/bin/perl -w
use strict;
my $since;
if ($ARGV[0]) {
$since = $ARGV[0];
} else {
$since = "1 week ago";
}
@zachleat
zachleat / reading_time.rb
Last active August 28, 2025 08:35
Read this in X minutes Liquid Filter Plugin (for Jekyll)
# Outputs the reading time
# Read this in “about 4 minutes”
# Put into your _plugins dir in your Jekyll site
# Usage: Read this in about {{ page.content | reading_time }}
module ReadingTimeFilter
def reading_time( input )
words_per_minute = 180
@dbu
dbu / SynchronizeTranslationsCommand.php
Created June 28, 2013 07:21
Synchronize Translations
<?php
namespace Dbu\UtilBundle\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Translation\MessageCatalogue;
use Symfony\Component\Translation\Loader\LoaderInterface;
@aTei
aTei / jquery_plugin_template.coffee
Last active December 19, 2015 02:28
jQuery plugin as CoffeeScript class template
class PluginClass
constructor: (@target) ->
_this = @ # to access Class inside @target.each and not modificate @ inside @target.each
eventData = {_class: _this} # to access Class inside event handlers
@target.each ->
self = $(@)
self.on 'click', eventData, _this.submitHandler
submitHandler: (e)->
_this = e.data._classs
e.preventDefault()
@muhittin
muhittin / setup.sh
Created November 4, 2013 15:48
Setup shell
#!/bin/sh
hosts_config(){
hosts_file=/private/etc/hosts
echo "\n127.0.0.1 $1\n">>$hosts_file
echo "Hosts file was updated."
}
apache_config(){
site_name=$1
@gmccreight
gmccreight / master.vim
Last active November 21, 2024 14:36
A script that gives you a playground for mastering vim
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)