Skip to content

Instantly share code, notes, and snippets.

View sirkitree's full-sized avatar

Jerad Bitner sirkitree

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sirkitree on github.
  • I am sirkitree (https://keybase.io/sirkitree) on keybase.
  • I have a public key ASCoPSaiJoosp3CBBavUVtR3hDGYjcUqUGcwlQFEgHfdtgo

To claim this, I am signing this object:

vagrant up
Bringing machine 'ibm' up with 'virtualbox' provider...
==> ibm: Checking if box 'geerlingguy/ubuntu1404' is up to date...
==> ibm: Clearing any previously set forwarded ports...
==> ibm: Clearing any previously set network interfaces...
==> ibm: Preparing network interfaces based on configuration...
ibm: Adapter 1: nat
ibm: Adapter 2: hostonly
==> ibm: Forwarding ports...
ibm: 22 (guest) => 2222 (host) (adapter 1)
@sirkitree
sirkitree / lamp.md
Created July 3, 2017 15:09
installing lamp on windows 10 bash

Install LAMP

  • sudo apt-get install apache2 php5 libapache2-mod-php5 mariadb-server php5-mysql php5-cli php5-gd

change port

Windows is using 80 already

  • vim /etc/apache2/ports.conf
  • change 80 to 8080

start services

  • sudo service apache2 start
@sirkitree
sirkitree / contenta_error-1.md
Last active July 3, 2017 15:07
Contenta Errors
-----------------------------------------------                                                                                                                         
 Installing Contenta CMS for local usage                                                                                                                                
-----------------------------------------------                                                                                                                         
 EXECUTING  /tmp/test_contenta_jsonapi/bin/drush si contenta_jsonapi --db-url=sqlite://sites/default/files/.ht.sqlite --account-pass=test -y                            
                                                                                                                                                                        
                                                                                                                                                                        
You ar
 npm run serve-js
> aframe-react-boilerplate@1.0.0 serve-js /Users/sirkitree/repos/aframe-react-boilerplate
> webpack-dev-server --content-base src --progress --watch --history-api-fallback --inline --hot --host 0.0.0.0
70% 1/1 build moduleshttp://0.0.0.0:8080/
webpack result is served from /
content is served from /Users/sirkitree/repos/aframe-react-boilerplate/src
404s will fallback to /index.html
Hash: c4f3d393b72c71d0eef0
@sirkitree
sirkitree / checklist.md
Last active November 12, 2015 17:27
d8 checklist
  • Create a new local D8 site.
  • Create article, image, and promo content types with a few fields using the UI.
  • Create several articles, images, and promos with devel generate
  • Make some changes on a node and try the preview button. It doesn’t work the same as in D7.
  • Try to disable modules (you can’t). Note that they are installed or uninstalled only.
  • Try out the Views UI, it is pretty similar to D7, but not totally. Create a view of articles. Make that the front page.
  • Get rid of comments on one or more content types. The process is different now. Comments are fields.
  • Try out the new block placement UI and place some blocks on the page. Set some up to display only on specific paths. Use the same block in more than one region with different rules for when it should appear in each region and test that the rules work.
  • Use the new fieldable blocks feature with an entityreference field to create a substitute for a nodequeue. You can create a new ‘nodequeue’ block typ
@sirkitree
sirkitree / README.md
Last active August 29, 2015 14:26
npm watch can run background commands as though they were in the foreground

You can run this command with npm watch and it will run both the watchify command and the gulp watch command in two separate background processes but both process's output will still show up in the foreground. Since they're run through npm, you can hit ctrl+c to cancel the main process which in turn cancels the two background processes.

img

@sirkitree
sirkitree / index.js
Created January 21, 2015 15:29
coordinate generator
var points = [];
var x = y = z = this.constraint;
var constraintDecrement = this.constraint * -1;
for (var x = this.constraint; x >= constraintDecrement; x--) {
points.push({
'pos': {'x' : x, 'y' : y, 'z' : z}
});
for (var y = this.constraint; y > constraintDecrement; y--) {
points.push({
@sirkitree
sirkitree / home.html
Created November 23, 2014 02:58
user homes janus vr
<html>
<head>
<title>Janus VR - Initial Home</title>
<body>
<FireBoxRoom>
<Assets>
<AssetImage src="http://www.dgp.toronto.edu/~mccrae/projects/firebox/img/instructions.jpg" id="instr1" />
@sirkitree
sirkitree / index.html
Created November 19, 2014 05:11
Change websurface_id in Janus VR
<html>
<head>
<title>Lullabot loves you!</title>
</head>
<body>
This is an example of using the AssetWebSurface tag in Janus VR to insert a website as a texture on an object.
<FireBoxRoom>
<Assets>
<AssetObject id="plane" src="plane.obj" />
<AssetWebSurface id="lullabot" src="https://www.lullabot.com" width="1920" height="1080" />