This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
<html> | |
<head> | |
<title>Marquee Fishtank</title> | |
<style> | |
#fishtank { | |
width: 350px; | |
background-color: aqua; | |
} | |
#fish1 { color: red } | |
#fish2 { color: orange } |
man page : https://github.com/visionmedia/git-extras/tree/master/man
Maintainer: agrimaldi
git-extras - Support for git-extras completion
Pressing tab after the various commands should autofill authors, branches and tags depending on context
###vim curl and git sudo apt-get install vim curl git
###sublime 3
install : http://www.sublimetext.com/3 http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3083_amd64.deb
enable package control :
import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.
I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:
# | |
# Slightly tighter CORS config for nginx | |
# | |
# A modification of https://gist.github.com/1064640/ to include a white-list of URLs | |
# | |
# Despite the W3C guidance suggesting that a list of origins can be passed as part of | |
# Access-Control-Allow-Origin headers, several browsers (well, at least Firefox) | |
# don't seem to play nicely with this. | |
# |
// I wanted to know the top five largest collections in my MongoDB database in | |
// terms of document count. This MongoDB-specific JavaScript gets the job done. | |
// | |
// Edit variables in the config section, then execute like so: | |
// | |
// mongo --quiet topCollections.js | |
// config | |
var dbname = 'FIXME'; |
10:23 PM <alperkanat> fka: boş olduğunda metrobüs güzel tabii.. :) | |
10:23 PM <eren> http://bash.org/?205195 | |
10:23 PM <eren> bu gece bunlara taktim snairim | |
10:23 PM <eren> s/snairim/sanirim/ | |
10:23 PM <fka> :D | |
10:23 PM <fka> alperkanat: oturma tekniklerim var ;) | |
10:23 PM <fka> :D | |
10:23 PM <alperkanat> teyzelere çelme mi takıosn | |
10:23 PM <fka> alperkanat: yok yahu | |
10:24 PM <fka> kural 1: her zaman ön kapıdan bin |
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!
I hope it helps you too!
fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup
<?php | |
if (isset($_GET['ajax'])) { | |
session_start(); | |
$handle = fopen('/private/var/log/system.log', 'r'); | |
if (isset($_SESSION['offset'])) { | |
$data = stream_get_contents($handle, -1, $_SESSION['offset']); | |
echo nl2br($data); | |
} else { | |
fseek($handle, 0, SEEK_END); | |
$_SESSION['offset'] = ftell($handle); |