Skip to content

Instantly share code, notes, and snippets.

export HISTSIZE=""
if [ "$PS1" ]; then
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
fi
@nclundsten
nclundsten / gist:a5cab8aa5d129a3ba693
Created June 23, 2015 02:25
fix nivida fedora 21
if [ $EUID != 0 ]; then
echo "Root privileges required. Trying sudo"
sudo "$0" "$@"
exit $?
fi
yum -y install akmod-nvidia
cat << EOF > /etc/X11/xorg.conf
Section "Device"
Identifier "nvidia"
#!/usr/bin/env bash
SINK_SPEAKERS="alsa_output.pci-0000_00_1b.0.analog-stereo"
SINK_HEADPHONES="alsa_output.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-stereo"
pacmd stat | grep "Default sink name" | grep --quiet "$SINK_SPEAKERS"
if [ $? == 0 ]
then
pacmd set-default-sink "$SINK_HEADPHONES" \
@nclundsten
nclundsten / f14post
Created February 18, 2011 02:11
f14 post install goodies
su -c 'yum install yum-plugin-fastestmirror'
su -c 'echo "$USERNAME ALL=(ALL) ALL" >> /etc/sudoers'
echo rpm fusion
yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
echo ===========================================
echo few goodies
sudo yum install wget mplayer htop nano
public function indexAction()
{
$checkoutService = $this->getServiceLocator()->get('SpeckCheckout\Service\Checkout');
$options = $checkoutService->getOptions();
$paymentMethods = $options->getPaymentMethods();
$methodForm = new \Zend\Form\Form;
foreach ($paymentMethods as $i) {
$valueOptions[$i->getPaymentMethod()] = $i->getDisplayName();
}
@nclundsten
nclundsten / ssh-key-instruct.md
Last active October 14, 2015 00:56
add ssh key to ibm-i (or others)

ssh to the server to set everything up

ssh USERNAME@server.tld

set up home directory

mkdir /home/USERNAME

>chown USERNAME /home/USERNAME

index 9c31b84..6376a42 100644
--- a/module/RegisterInvite/src/Service/RegisterInviteService.php
+++ b/module/RegisterInvite/src/Service/RegisterInviteService.php
@@ -15,21 +15,16 @@ class RegisterInviteService
throw new RegisterException('no invite');
}
- return $this->getServiceLocator()->get('zfcuser_register_form');
+ $form = $this->getServiceLocator()->get('zfcuser_register_form');
+ $form->get('user_id')->setValue($tokenInfo['generic_id']);
<?php
namespace SpeckAddress\Form;
use Zend\Form\Form;
class Address extends Form
{
public function __construct()
{
(nlundsten@localhost)$ ./composer.phar install
Loading composer repositories with package information
Installing dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install speckcommerce/speck-catalog dev-master
- Conclusion: don't install speckcommerce/speck-address dev-master
- Conclusion: don't install zf-commons/zfc-base 0.1.0
- Conclusion: don't install zf-commons/zfc-base 0.1.0
{
"name": "speckcommerce",
"description": "Open Source E-Commerce Platform. PHP, Zend Framework 2, ZF2 Modules",
"minimum-stability": "dev",
"authors": [
{
"name": "SpeckCommerce Authors",
"email": "author@speckcommerce.org"
}
],