(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| package com.curlapp.yubikey; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.beans.factory.InitializingBean; | |
| import org.springframework.security.authentication.AccountExpiredException; | |
| import org.springframework.security.authentication.AuthenticationProvider; | |
| import org.springframework.security.authentication.BadCredentialsException; | |
| import org.springframework.security.authentication.CredentialsExpiredException; | |
| import org.springframework.security.authentication.DisabledException; |
| [core] | |
| autocrlf = input | |
| [user] | |
| name = pulse00 | |
| email = [email protected] | |
| [alias] | |
| # http://durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/ | |
| cp = cherry-pick | |
| st = status -s | |
| cl = clone |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/bin/sh | |
| # /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh | |
| # chmod +x /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh | |
| curl -L https://gist.github.com/tommeier/6255771/raw/update_plex_connect.sh | bash & |
| #!/usr/bin/env php | |
| <?php | |
| /** | |
| * Simple git post-merge hook to check if your composer dependencies are in sync with the composer.lock file after merging a remote branch. | |
| * | |
| * Put this into a file called `post-merge` inside your `.git/hooks` directory and make it executable using `chmod +x .git/hooks/post-merge`. | |
| * | |
| * This script assumes you use the following Symfony components: | |
| * |
| curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
| # A class-based template for jQuery plugins in Coffeescript | |
| # | |
| # $('.target').myPlugin({ paramA: 'not-foo' }); | |
| # $('.target').myPlugin('myMethod', 'Hello, world'); | |
| # | |
| # Check out Alan Hogan's original jQuery plugin template: | |
| # https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
| # | |
| (($, window) -> |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| <?php | |
| /** | |
| Truncate Html string without stripping tags | |
| register in Resources/config/services.yml with: | |
| services: | |
| truncatehtml.twig.extension: | |
| class: Radley\TwigExtensionBundle\Extension\TruncateHtmlExtension | |
| tags: | |
| - { name: twig.extension } |
| #!/bin/bash | |
| function actual_path() { | |
| if [ [ -z "$1" ] -a [ -d $1 ] ]; then | |
| echo $(cd $1 && test `pwd` = `pwd -P`) | |
| return 0 | |
| else | |
| return 1 | |
| fi | |
| } |