Skip to content

Instantly share code, notes, and snippets.

@faiq
faiq / update-gitops-repo.sh
Created June 29, 2020 17:31
update gitops
#!/bin/sh
# This script is used as part of the "update-argo" task from the Dispatchfile
COMMIT_SHA=$1
IMAGE_NAME=$2
BRANCH_NAME=$3
set -e
echo "$GPG_PRIVATE_KEY" > gpg_private_key
@faiq
faiq / update-gitops-repo.sh
Created June 29, 2020 17:31
update gitops
#!/bin/sh
# This script is used as part of the "update-argo" task from the Dispatchfile
COMMIT_SHA=$1
IMAGE_NAME=$2
BRANCH_NAME=$3
set -e
echo "$GPG_PRIVATE_KEY" > gpg_private_key
@faiq
faiq / update-gitops-repo.sh
Created June 29, 2020 17:31
update gitops
#!/bin/sh
# This script is used as part of the "update-argo" task from the Dispatchfile
COMMIT_SHA=$1
IMAGE_NAME=$2
BRANCH_NAME=$3
set -e
echo "$GPG_PRIVATE_KEY" > gpg_private_key
[ +0.000000] [<ffffffffae1e6459>] destroy_super+0x19/0x90
[ +0.000000] [<ffffffffae1e7477>] sget+0x317/0x410
[ +0.000000] [<ffffffffae1e6be0>] ? get_anon_bdev+0x100/0x100
[ +0.000000] [<ffffffffae17efc0>] ? shmem_get_inode+0x200/0x200
[ +0.000000] [<ffffffffae1e7650>] mount_nodev+0x30/0xa0
[ +0.000000] [<ffffffffae17dc88>] shmem_mount+0x18/0x20
[ +0.030362] [<ffffffffae1e8138>] mount_fs+0x38/0x170
[ +0.000000] [<ffffffffae204397>] vfs_kern_mount+0x67/0x110
[ +0.000000] [<ffffffffae206b07>] do_mount+0x247/0xde0
[ +0.000000] [<ffffffffae1c7c1f>] ? __kmalloc_track_caller+0x18f/0x230
@faiq
faiq / set2.md
Last active December 10, 2015 00:22

Question 1:

Suppose you have a dictionary of words in plain text. Come up with an algorithim that takes in a set of letters and returns all the words you can make up with those letters.

'intwer' -> [winter] you can probably come up with more but you get the point

Question 2:

Suppose you have a file that's too large to fit in to memory filled with numbers. Come up with a method that returns the top 10 items in the file.

#Problem 1

Given a set of numbers, return all possible subsets for that set.

Example given the array [1,2,3,4]

You should return

[3 2 1] [3 2]

Hi Faiq,
Thanks for your interest. We'd like to start with a phone/skype conversation. Are you available for 30 minutes or so on Thursday or Friday between 10am and 4pm?
If you could, please select a project you've worked on that you'd be comfortable talking through with us.
You may also want to look across our projects and github account as it would be good to discuss what we do in more detail.
Thanks,
Chris
var http = require('http');
var tessel = require('tessel')
var audio = require('audio-vs1053b')
var chunks = [];
// When we get data, push it into our array
audio.on('data', function(data) {
chunks.push(data);
});
var fs = require('fs')
, es = require('event-stream')
, JSONStream = require('JSONStream')
fs.createReadStream(__dirname + '/tests/mock.json')
.pipe(JSONStream.parse('items.*.exportLinks'))
.pipe(es.map(function (data, callback) {
if (data['text/csv']) callback(null,data['text/csv'])
else callback(null)
})) //this gets each url...
{
"name": "dash",
"version": "0.21.0",
"private": true,
"dependencies": {
"JSONStream": "~0.4.2",
"airport": "^2.0.0",
"async": "~0.2.9",
"aws-sdk": "~1.5.0",
"backbone": "https://github.com/SpiderStrategies/backbone/tarball/1.1.2-lodash",