Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
| tr: | |
| devise: | |
| confirmations: | |
| confirmed: "Eposta adresiniz başırılı bir şekilde onaylandı." | |
| send_instructions: "Bir kaç dakika içerisinde eposta adresinizi nasıl onaylayacağınız hakkında bir eposta alacaksınız." | |
| send_paranoid_instructions: "Eğer eposta adresinizi veritabanımızda kayıtlı ise bir kaç dakika içerisinde eposta adresinizi nasıl onaylayacağınız hakkında bir eposta alacaksınız." | |
| failure: | |
| already_authenticated: "Zaten giriş yaptınız." | 
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" | 
| // Copyright 2012 Square, Inc. | |
| package com.squareup.widgets; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.util.AttributeSet; | |
| import android.widget.ImageView; | |
| /** Maintains an aspect ratio based on either width or height. Disabled by default. */ | |
| public class AspectRatioImageView extends ImageView { | 
| # Counts source lines of code in current directory. Replace *.java with your source extension. | |
| # (ignores empty lines) | |
| find . -type f -name '*.java' -exec cat {} \; | sed '/^\s*$/d' | wc -l | |
| # to ignore comments (in languages where comments start with #) | |
| find . -type f -name '*.java' -exec cat {} \; | sed '/^\s*#/d;/^\s*$/d' | wc -l | 
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay | |
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop | |
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext | |
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious | 
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Copyright 2012 Caner BASARAN | |
| # Licensed under the GNU General Public License, version 2. | |
| # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt | |
| def turkish_id_no_check(tc_no): | |
| ''' turkish_id_no_check(long) -> bool | 
| #!/bin/sh | |
| # Sending emails using Gmail and msmtp | |
| # Author: [Josef Jezek](http://about.me/josefjezek) | |
| # Donate: [Gittip](https://www.gittip.com/josefjezek) | |
| # Link: [Gist](https://gist.github.com/6194563) | |
| # Usage: setup-msmtp-for-gmail.sh | |
| sudo apt-get update -q | |
| sudo apt-get install msmtp-mta ca-certificates heirloom-mailx -yq | 
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, | 
| # This is a basic VCL configuration file for varnish. See the vcl(7) | |
| # man page for details on VCL syntax and semantics. | |
| # | |
| # Default backend definition. Set this to point to your content | |
| # server. | |
| # | |
| backend server1 { | |
| .host = "haber.local"; | |
| .port = "8080"; | |
| } |