Skip to content

Instantly share code, notes, and snippets.

View jacqueline-homan's full-sized avatar

Jacqueline S. Homan jacqueline-homan

View GitHub Profile
Strict Standards: Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in /home/jacqueline/public_html/public_html/cake/dispatcher.php on line 89
Strict Standards: Non-static method Configure::getInstance() should not be called statically in /home/jacqueline/public_html/public_html/cake/basics.php on line 275
Session->check('user')) { $this->set('checksession', false); if(strstr($_SERVER['REQUEST_URI'], 'adm')) { $this->redirect('/'); exit(); } } else { $this->set('checksession', true); } } function beforeRender() { $this->Dpage->recursive = 0; $this->set('topnav',$this->Dpage->findAll('displayorder > 0','id, linktext, displayorder','displayorder')); } function resizeImage($imagesource,$imagedestination,$new_w = 0,$new_h = 0) { if($new_w == 0 && $new_h == 0) { return 'You must provide a new width or height value.'; } $src_img = imagecreatefromjpeg($imagesource); $origw=imagesx($src_img); $origh=imagesy($src_img); if($new_w > 0 && $new_h == 0) { $s
@jacqueline-homan
jacqueline-homan / gist:f4334171f74de31efa14
Created July 1, 2014 20:16
Error in createedb gittip
➜ www.gittip.com git:(master) sudo -u postgres createuser --superuser $USER
[sudo] password for jacqueline:
createuser: creation of new role failed: ERROR: role "jacqueline" already exists
➜ www.gittip.com git:(master) cd gittip
➜ gittip git:(master) cd ..
➜ www.gittip.com git:(master) createdb gittip
➜ www.gittip.com git:(master) createdb gittip-test
➜ www.gittip.com git:(master) make schema
"/usr/bin/python2.7" "./vendor/virtualenv-1.9.1.py"\
--unzip-setuptools \
@jacqueline-homan
jacqueline-homan / unable to get yoeman and bower
Created July 13, 2014 19:59
Problems getting yoeman and bower installed so I can get started on Angular
➜ ~ npm -v
1.4.3
➜ ~ nvm -v
zsh: command not found: nvm
➜ ~ npm install -g karma yo grunt-cli bower
npm http GET https://registry.npmjs.org/yo
npm http GET https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/karma
npm http 200 https://registry.npmjs.org/grunt-cli
@jacqueline-homan
jacqueline-homan / this worked
Created July 13, 2014 20:39
Follow-up to difficulty getting yoeman and bower installed
➜ ~ npm install yo
npm http GET https://registry.npmjs.org/yo
npm http 304 https://registry.npmjs.org/yo
npm http GET https://registry.npmjs.org/findup
npm http GET https://registry.npmjs.org/fullname
npm http GET https://registry.npmjs.org/sudo-block
npm http GET https://registry.npmjs.org/yeoman-generator
npm http GET https://registry.npmjs.org/yosay
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/lodash
@jacqueline-homan
jacqueline-homan / installing nvm did NOT work
Created July 13, 2014 21:26
unable to get yoeman and bower installed
➜ ~ nvm -v
zsh: command not found: nvm
➜ ~ curl https://raw.githubusercontent.com/creationix/nvm/v.10.0/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9 100 9 0 0 22 0 --:--:-- --:--:-- --:--:-- 22
sh: 1: Not: not found
➜ ~ curl https://raw.githubusercontent.com/creationix/nvm/v.10.0/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
@jacqueline-homan
jacqueline-homan / zshell problems
Created July 21, 2014 01:47
zsh errors after upgrade
[Oh My Zsh] Would you like to check for updates?
Type Y to update oh-my-zsh: y
Upgrading Oh My Zsh
remote: Counting objects: 169, done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 169 (delta 80), reused 139 (delta 66)
Receiving objects: 100% (169/169), 54.47 KiB | 0 bytes/s, done.
Resolving deltas: 100% (80/80), done.
From https://github.com/robbyrussell/oh-my-zsh
* branch master -> FETCH_HEAD
/home/jacqueline/.oh-my-zsh/plugins/rvm/rvm.plugin.zsh:1: command not found: ^M
/home/jacqueline/.oh-my-zsh/plugins/rvm/rvm.plugin.zsh:2: command not found: ^M
/home/jacqueline/.oh-my-zsh/plugins/rvm/rvm.plugin.zsh:5: command not found: ^M
/home/jacqueline/.oh-my-zsh/plugins/rvm/rvm.plugin.zsh:10: command not found: ^M
/home/jacqueline/.oh-my-zsh/plugins/rvm/rvm.plugin.zsh:75: parse error near `\n'
➜ oha git:(master)
@jacqueline-homan
jacqueline-homan / phpstorm install problems
Created September 17, 2014 05:02
updated phpstorm not working
➜ ~ locate pstorm
/home/jacqueline/.WebIde70/config/phpstorm70.key
/home/jacqueline/.WebIde80/config/phpstorm70.key
/home/jacqueline/.gnome/apps/jetbrains-phpstorm.desktop
/home/jacqueline/.local/share/applications/jetbrains-phpstorm.desktop
/home/jacqueline/Desktop/PhpStorm-138.2071/bin/phpstorm.sh
/home/jacqueline/Desktop/PhpStorm-138.2071/bin/phpstorm.vmoptions
/home/jacqueline/Desktop/PhpStorm-138.2071/bin/phpstorm64.vmoptions
/home/jacqueline/Desktop/PhpStorm-138.2071/lib/phpstorm.jar
/home/jacqueline/Desktop/PhpStorm-138.2071/plugins/phpstorm-remote-interpreter
@jacqueline-homan
jacqueline-homan / CallingPolaris.fs
Created December 25, 2014 06:16
Setting up the types correctly
namespace Polaris
module Types =
type CommonAction =
| Disconnect
| Redial
open System
open Microsoft.Owin.Hosting
[<EntryPoint>]
let main argv =
let baseAddress = "http://localhost:8888"
use application = WebApp.Start<Startup.Startup>(baseAddress)