Skip to content

Instantly share code, notes, and snippets.

View millisami's full-sized avatar
🎯
Focusing on landing a Web3 Job

Sachin Sagar Rai millisami

🎯
Focusing on landing a Web3 Job
View GitHub Profile
ArgumentError in Dashboard#show
Showing /Users/millisami/rails_apps/automation/app/views/dashboard/show.html.haml where line #13 raised:
the track method expects :on to be set
Extracted source (around line #13):
10: %p
11: = link_to "Create a new campaign", new_campaign_path, :class => "awesome large orange"
#Copy and paste the following in ~/.bash_profile
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[1;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
git symbolic-ref HEAD refs/heads/<newbranchname>
git rm --cached -r .
rm -rf *
git commit --allow-empty -m 'Initial new branch'
#!/usr/bin/env ruby
##
# Originally from http://www.pragmaticautomation.com/cgi-bin/pragauto.cgi/Monitor/StakingOutFileChanges.rdoc
# Modified by Geoffrey Grosenbach http://peepcode.com
#
# Watches files and runs a command when any of them are modified.
#
# If one argment is given, will run that command and watch app, lib, test, spec.
#
@millisami
millisami / History duplicate commands
Created September 8, 2010 09:49
History duplcate commands
export HISTCONTROL=erasedups
export HISTSIZE=10000
shopt -s histappend
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libvorbis configure 1.3.1, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/libvorbis/1.3.1
## --------- ##
## Platform. ##
HOMEBREW_VERSION: 0.7
HEAD: 222cc8338645a8a3c2c745bf787b4669acb5681b
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.6.4
Kernel Architecture: i386
Ruby: 1.8.7-174
ree-1.8.7-2010.02 [~] ➔ brew install ffmpeg
==> Downloading http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/yasm/1.1.0 --disable-debug --disable-dependency-tracking
==> make install
ln: ./libyasm.h: Permission denied
Error: The linking step did not complete successfully
The package built, but is not symlinked into /usr/local
You can try again using `brew link yasm'
Error: Could not create symlink /usr/local/include/libyasm.h.
<VirtualHost *:80>
ServerName cas.local
DocumentRoot "/Users/millisami/apps/cas/public"
RackEnv development
# ProxyRequests Off
# ProxyPass / http://localhost:11011/
# ProxyPassReverse / http://localhost:11011/
# ProxyPreserveHost on
<Directory "/Users/millisami/apps/cas/public">
Order allow,deny
Rspec.configure do |config|
# Remove this line if you don't want Rspec's should and should_not
# methods or matchers
require 'rspec/expectations'
config.include Rspec::Matchers
# == Mock Framework
config.mock_with :rspec
end