Skip to content

Instantly share code, notes, and snippets.

/home/nerdsville/.rvm/gems/ruby-2.2.2/gems/rspec-rails-3.3.3/lib/rspec/rails/fixture_support.rb:20:in `block (2 levels) in <module:FixtureSupport>': undefined method `fixture_path' for #<RSpec::Core::Configuration:0x0000000234ef70> (NoMethodError)
from /home/nerdsville/.rvm/gems/ruby-2.2.2/gems/rspec-rails-3.3.3/lib/rspec/rails/fixture_support.rb:18:in `class_exec'
from /home/nerdsville/.rvm/gems/ruby-2.2.2/gems/rspec-rails-3.3.3/lib/rspec/rails/fixture_support.rb:18:in `block in <module:FixtureSupport>'
from /home/nerdsville/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.3/lib/active_support/concern.rb:120:in `class_eval'
from /home/nerdsville/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.3/lib/active_support/concern.rb:120:in `append_features'
from /home/nerdsville/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.3/lib/active_support/concern.rb:117:in `include'
from /home/nerdsville/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.3/lib/active_support/concern.rb:117:in `block in append_features'
from /home/nerdsvil
def test_vote_select_vote(self):
""" Test the vote_range function - the re-voting part. """
#First we need to vote
self.setup_db()
user = FakeUser(['voters'], username='nerdsville')
with user_set(fedora_elections.APP, user):
retrieve_csrf = self.app.post('/vote/test_election6')
csrf_token = retrieve_csrf.data.split(
'name="csrf_token" type="hidden" value="')[1].split('">')[0]
---
- hosts: local
tasks:
- name: Go.cd Data Container
docker:
name: gocd-data
image: gocd/gocd-server
state: present
volumes:
- /usr/log/go-server
@thatnerdjosh
thatnerdjosh / mysql_secure.sh
Created May 14, 2016 23:08 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10
@thatnerdjosh
thatnerdjosh / iterm2-solarized.md
Created December 15, 2016 23:46 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font (OS X / macOS)

Solarized

@thatnerdjosh
thatnerdjosh / ubuntu-gl502vs.md
Created February 10, 2017 09:07 — forked from GMMan/ubuntu-gl502vs.md
Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

NVIDIA Graphics

Nouveau does not appear to support Pascal cards right now, so you should use the proprietary NVIDIA driver, available from the Additional Drivers applet.

Panel Dithering

@thatnerdjosh
thatnerdjosh / ubuntu-gl502vs.md
Created February 10, 2017 09:07 — forked from GMMan/ubuntu-gl502vs.md
Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

NVIDIA Graphics

Nouveau does not appear to support Pascal cards right now, so you should use the proprietary NVIDIA driver, available from the Additional Drivers applet.

Panel Dithering

Keybase proof

I hereby claim:

  • I am NerdsvilleCEO on github.
  • I am nerdsville (https://keybase.io/nerdsville) on keybase.
  • I have a public key whose fingerprint is DC84 EF4F 2510 EA35 212D 11D3 1BFF 9551 1CDA 1DCC

To claim this, I am signing this object:

@thatnerdjosh
thatnerdjosh / flatten.go
Created August 13, 2019 18:45
FlattenSlice
package main
import(
"reflect"
)
// IsArrayType accepts an interface and returns whether it is an array
// This function will return false if it is not an array type
func IsArrayType(s interface{}) bool {
t := reflect.TypeOf(s)
### Keybase proof
I hereby claim:
* I am nerdsvilleceo on github.
* I am omnidapps (https://keybase.io/omnidapps) on keybase.
* I have a public key ASCH6fvzx3VWO0j_ofooo9Qs3A3QEKt5JgEsJ_HcBTGf5Ao
To claim this, I am signing this object: