Skip to content

Instantly share code, notes, and snippets.

View tansaku's full-sized avatar

Sam Joseph tansaku

View GitHub Profile
@tansaku
tansaku / EnemyShooting.js
Created December 18, 2013 20:38
EnemyShooting script for Unity3D Stealth Tutorial Project
#pragma strict
public var maximumDamage : float = 120f; // The maximum potential damage per shot.
public var minimumDamage : float = 45f; // The minimum potential damage per shot.
public var shotClip : AudioClip; // An audio clip to play when a shot happens.
public var flashIntensity : float = 3f; // The intensity of the light when the shot happens.
public var fadeSpeed : float = 10f; // How fast the light will fade after the shot.
private var anim : Animator; // Reference to the animator.
@tansaku
tansaku / gist:4006793
Created November 3, 2012 09:36
Yoshi ruby
"Total number is #{2+3}"
@tansaku
tansaku / output.txt
Created July 4, 2017 16:32
stuck getting automysqlbackup running on bitnami azure
bitnami@bitnami-mediawiki-74f7:~$ automysqlbackup
/opt/bitnami/mysql/bin/mysql.bin: unknown variable 'defaults-file=/etc/mysql/debian.cnf'
mkdir: cannot create directory ‘/var/lib/automysqlbackup/daily’: Permission denied
mkdir: cannot create directory ‘/var/lib/automysqlbackup/weekly’: Permission denied
mkdir: cannot create directory ‘/var/lib/automysqlbackup/monthly’: Permission denied
touch: cannot touch ‘/var/lib/automysqlbackup/localhost-392151700.log’: Permission denied
/usr/sbin/automysqlbackup: line 411: /var/lib/automysqlbackup/localhost-392151700.log: Permission denied
touch: cannot touch ‘/var/lib/automysqlbackup/ERRORS_localhost-398686400.log’: Permission denied
/usr/sbin/automysqlbackup: line 415: /var/lib/automysqlbackup/ERRORS_localhost-398686400.log: Permission denied
======================================================================
@tansaku
tansaku / gist:d4f62519f8a2117ebffedd45bef1d64d
Created January 18, 2019 16:41
staging paypal log for error
2019-01-18T16:40:05.554315+00:00 app[web.1]: I, [2019-01-18T16:40:05.553443 #27] INFO -- : [af132748-f7e2-4c5e-b7ee-ef82e1e30984] Parameters: {"item_number"=>"not sponsored", "item_name"=>"Premium", "payer_email"=>"tansaku@gmail.com"}
2019-01-18T16:40:05.949802+00:00 app[web.1]: I, [2019-01-18T16:40:05.949715 #27] INFO -- : [af132748-f7e2-4c5e-b7ee-ef82e1e30984] Rendering mailer/send_premium_payment_complete.html.erb within layouts/mailer
2019-01-18T16:40:05.950921+00:00 app[web.1]: I, [2019-01-18T16:40:05.950858 #27] INFO -- : [af132748-f7e2-4c5e-b7ee-ef82e1e30984] Rendered mailer/send_premium_payment_complete.html.erb within layouts/mailer (1.0ms)
2019-01-18T16:40:07.396672+00:00 heroku[web.1]: source=web.1 dyno=heroku.21665970.f4078d15-a18b-4dcf-b27b-90593bf44cff sample#load_avg_1m=0.00 sample#load_avg_5m=0.00 sample#load_avg_15m=0.00
2019-01-18T16:40:07.396768+00:00 heroku[web.1]: source=web.1 dyno=heroku.21665970.f4078d15-a18b-4dcf-b27b-90593bf44cff sample#memory_total=503.71MB sample#memory_rss
@tansaku
tansaku / gist:9c45b410f8146f906f8ee901eb7229c6
Created October 31, 2018 09:12
output from ssh -t dokku@agileventures.eastus.cloudapp.azure.com run metplus-pets-staging VERBOSE=true bundle exec rake db:migrate --trace
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
+ DOKKU_LIB_ROOT=/var/lib/dokku
+ export PLUGIN_PATH=/var/lib/dokku/plugins
+ PLUGIN_PATH=/var/lib/dokku/plugins
@tansaku
tansaku / gist:24699ff58901c974b0c8ce48901170f1
Created October 30, 2018 19:22
deploy output from metplus
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /home/runner/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to agileventures.eastus.cloudapp.azure.com [40.71.255.113] port 22.
@tansaku
tansaku / gist:bc7c6034e033f4273f9b10f56e592c31
Created October 12, 2018 10:21
intermittent fail on localsupport builds
/home/travis/.rvm/rubies/ruby-2.5.1/bin/ruby -S bundle exec cucumber --profile second_try
Deprecated: Found tags option '~@wip'. Support for '~@tag' will be removed from the next release of Cucumber. Please use 'not @tag' instead.
Using the second_try profile...
@vcr @billy
Feature: Event Location
As a super Admin
So that others can see events location
I would like to add an event address field to the system
Background: Data has been added to the database # features/admin/events/event_location.feature:7
Given the following organisations exist: # features/step_definitions/factory_steps.rb:78
@tansaku
tansaku / 04-Rails-Ch4-HW2-Setup.txt
Created February 27, 2014 09:37
Emily Hill's walkthrough of chapter 4 and HW2 setup for 169 ESaaS
My Rotten Potatoes Setup (walkthrough from Chapter 4)
===========================================
> cd Documents
> rails new myrottenpotatoes -T
Make sure it completed correctly. Some users have reported needing to install additional items such as:
> gem install arel
> cd myrottenpotatoes; ls
@tansaku
tansaku / technical-review.txt
Created September 19, 2018 12:47
Harrow Women's Center Technical issues
Harrow Women's Centre Technical Issues
--------------------------------------
Four windows 10 machines - all linked to a server. The situation with each machine is as follows
1) R's or volunteer machine - 2 user accounts, both passwords missing
2) D's machine (admin, counselling and volunteer) admin works here
3) 5 accounts including (Admin, Counselling, Finance, Training, Trustees)
4) A's machine (logs in as advice and volunteering) has problems with resetting sometimes and going funny
@tansaku
tansaku / hw-ruby-intro.sh
Created September 6, 2018 12:05
first attempt at codio autograding script
#!/bin/bash
cd /home/codio/workspace/hw-ruby-intro
sudo apt-add-repository -y ppa:rael-gc/rvm
sudo apt-get update
sudo apt-get install rvm
source /usr/share/rvm/scripts/rvm
rvm use 2.4.0