This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# put into /usr/local/bin/xdebug and make it executable: chmod +x /usr/local/bin/xdebug | |
# Usage: | |
# xdebug # toggle...switch on or off, depending of the current state | |
# xdebug on # enable xdebug | |
# xdebug off # disable xdebug | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// src/Kernel.php | |
declare(strict_types=1); | |
namespace App; | |
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; | |
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | |
use Symfony\Component\HttpKernel\Kernel as BaseKernel; | |
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Libmpdec < Formula | |
desc "Library for decimal floating point arithmetic" | |
homepage "https://www.bytereef.org/mpdecimal/" | |
url "https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-2.4.2.tar.gz" | |
sha256 "83c628b90f009470981cf084c5418329c88b19835d8af3691b930afccb7d79c7" | |
patch do | |
url "https://gist.githubusercontent.com/lpinca/d967706acabeedb7fb4e8d0be5b66f07/raw/1b9080916e153ac05798a08594cf72c21b4b5a90/dylib-patch.diff" | |
sha256 "f53486c1a2a7535fae91f0a19f7d2c04ca0b2ee7e5f4c129e8e95e52e6ae9f2e" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Unofficial Hombrew Cask for Audacity 2.3.3 (recent 64-bit version) | |
# Made entirely for fun and to demonstrate how to get around fosshub's limitations. | |
# Problem: Audacity's binary is hosted on fosshub and they don't provide a fixed url! The seems to intentionally try to prevent "hot-linking". | |
# Solution: Make a request to fosshub's special XHR endpoint to get the signed download url. Then just pass that URL to Homebrew | |
require 'net/http' | |
require 'json' | |
require 'uri' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --name=mysql -d -e 'DB_NAME=activiti' -e 'DB_USER=activiti' -e 'DB_PASS=password' sameersbn/mysql:latest | |
docker run --name=activiti --rm -it -p 8080:8080 --link mysql:mysql eternnoir/activiti:latest | |
# open browser at http://{DOCKERIP}:8080/activiti-explorer/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudoers file. | |
# | |
# This file MUST be edited with the 'visudo' command as root. | |
# Failure to use 'visudo' may result in syntax or file permission errors | |
# that prevent sudo from running. | |
# | |
# See the sudoers man page for the details on how to write a sudoers file. | |
# | |
# Host alias specification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php70.plist | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php70.plist | |
echo "xdebug disabled" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/5.6/conf.d/ext-xdebug.ini | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php56.plist | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php56.plist | |
echo "xdebug disabled" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
var loadedPages = []; | |
console.log('Initializing GitHub Issues PJAX...'); | |
function group () { | |
if (loadedPages.length) { | |
return; | |
} | |
var currentPage = +$('.pagination > .current').text(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* smartscroll: debounced scroll event for jQuery * | |
* based on smartresize by @louis_remi: https://github.com/lrbabe/jquery.smartresize.js * | |
* Copyright 2011 Louis-Remi & lukeshumard * Licensed under the MIT license. * | |
*/ | |
var event = $.event, | |
scrollTimeout; | |
event.special.smartscroll = { |
NewerOlder