Skip to content

Instantly share code, notes, and snippets.

View tstirrat15's full-sized avatar

Tanner Stirrat tstirrat15

View GitHub Profile
@tstirrat15
tstirrat15 / gist:7de75c79708bd965802f
Created March 23, 2015 01:05
Playing with Windows fc
test1.txt:
Thing1
blah
more samesies
NOW DIFFERENT
<end>
@tstirrat15
tstirrat15 / gist:2801a2be47ffe289de74
Created January 8, 2016 21:10
Bropages Gem Failed Install
tstirrat@vm-tstirrat:~$ sudo gem install bropages
Building native extensions. This could take a while...
ERROR: Error installing bropages:
ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 mkrf_conf.rb
Building native extensions. This could take a while...
/usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:89:in `run': ERROR: Failed to build gem native extension. (Gem::Ext::BuildError)
/usr/bin/ruby2.1 extconf.rb
(defn my-assoc-in
"Implements assoc-in"
[m [k & ks] v]
(if (empty? ks)
(assoc m k v)
(assoc m k (recur (k m) ks v))))
// From my component definition
ngOnInit() {
this.validationService.getDrivers().subscribe(
function(response: Response){
this.installedDrivers = response.json().data.drivers;
this.defaultDriver = this.installedDrivers.find(driver => driver.startsWith('HP Universal'));
console.log(this.installeDrivers)
console.log(this.defaultDriver);
},
(err) => console.log(err)
version: '2'
services:
rabbit:
image: rabbitmq
redis:
image: redis
celery:
image: celery
depends_on:
Fatal error: require(): Failed opening required '../../../../vendor/autoload.php'
(include_path='
/home/ubuntu/app/vendor/phing/phing/classes
:/home/ubuntu/app/vendor/phpunit/phpunit-selenium
:.
:/home/ubuntu/.phpenv/versions/7.0.4/lib/php
') in /home/ubuntu/app/tests/functional/selenium/support/SeleniumTestCase.php on line 7
<!doctype html>
<html class="no-js" lang="en-GB">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Does GoogleBot render Angular 2 without Angular Universal? | React, etc. Tech Stack</title>
<link rel="stylesheet" href="/theme/react_etc2/css/foundation.css">
<link rel="stylesheet" href="/theme/react_etc2/css/theme.css?x=x">
@tstirrat15
tstirrat15 / fetchPattern.js
Created February 23, 2017 15:04
Fetch Pattern
let data = {};
try {
data = await response.json();
} catch (error) {
// There wasn't any data to unpack.
}
@tstirrat15
tstirrat15 / example.md
Created July 17, 2019 21:01
Am I missing something?

The file seems to be there...

➜  myrepo git:(master) ✗ ls .dockerignore 
.dockerignore

And here's what the file looks like:

➜  myrepo git:(master) ✗ cat .dockerignore 
.git
node_modules