This gist details the following:
- Converting a Subversion (SVN) repository into a Git repository
- Purging the resultant Git repository of large files
- Retrieve a list of SVN commit usernames
| import React from 'react'; | |
| import { connect } from 'react-redux'; | |
| class PageWidget extends React.Component { | |
| componentDidMount() { | |
| this.ifr.onload = () => { | |
| this.ifr.contentWindow.postMessage('hello', '*'); | |
| }; | |
| window.addEventListener("message", this.handleFrameTasks); | |
| } |
| #!/bin/sh | |
| KERNEL_VERSION="3.13.0-29" | |
| sudo apt-get update | |
| sudo aptitude install -y linux-image-${KERNEL_VERSION}-generic \ | |
| linux-headers-${KERNEL_VERSION} linux-image-extra-${KERNEL_VERSION}-generic | |
| sudo sed -i "s/GRUB_DEFAULT=.*/GRUB_DEFAULT=\"Advanced options for Ubuntu>Ubuntu, with Linux ${KERNEL_VERSION}-generic\"/" /etc/default/grub | |
| sudo update-grub |
| /* | |
| ******************************************************************************** | |
| Golang - Asterisk and Ampersand Cheatsheet | |
| ******************************************************************************** | |
| Also available at: https://play.golang.org/p/lNpnS9j1ma | |
| Allowed: | |
| -------- | |
| p := Person{"Steve", 28} stores the value |
This gist details the following:
| #!/bin/sh | |
| command=${1:-"help"} | |
| SELENIUM_VERSION="2.39.0" | |
| NODE_OPTIONS="-browser browserName=phantomjs" | |
| download() { | |
| [ -f selenium-server-standalone.jar ] || wget http://selenium.googlecode.com/files/selenium-server-standalone-${SELENIUM_VERSION}.jar -Oselenium-server-standalone.jar | |
| } |
| #!/bin/bash | |
| # | |
| # Usage: | |
| # $ echo "host1 host2 host3" | ./sshmany uname -a | |
| # $ cat myservers | ./sshmany echo Hello world | |
| # | |
| cmd="$@" | |
| servers="$(cat)" | |
| i=37 | |
| for server in $servers; do |
| <?php | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| /** | |
| * @ORM\Entity() | |
| * @ORM\Table(name="user") | |
| */ | |
| class User |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| # In case you had some strange python installation | |
| # NOTE: .pydistutils.cfg seems to be not compatible with brew install python | |
| # areas I needed to clean before installation | |
| # clean up ~/Library/Python | |
| # clean up .local | |
| # preconditions: | |
| # xcode with command line tools installed | |
| xcode-select --install |