This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mount -t cifs //bthub/usb1 hdd -o rw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo fdisk -l | |
//find active sd card | |
// copy image over | |
ssh pi@raspberry sudo dd if=/dev/mmcblk0 | gzip -c > raspberry.img.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://raw.github.com/adimania/arch-desktop-environments/master/XFCE-Arch-RPi.sh | bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This function is used to push client side events to redshift. It should only be used for client side only events, | |
* any event that involves a request to the backend, will create similar events there | |
* | |
* ::USAGE:: | |
* ======== | |
* | |
* analyticsDecorator({ | |
* constant: 'CONSTANT', mapping(arg1, arg2) { | |
* return { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tutorialspoint; | |
import org.springframework.context.annotation.*; | |
@Configuration | |
public class HelloWorldConfig { | |
@Bean | |
public HelloWorld helloWorld(){ | |
return new HelloWorld(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import R from 'ramda' | |
const groupObjBy = R.curry(R.pipe( | |
// Call groupBy with the object as pairs, passing only the value to the key function | |
R.useWith(R.groupBy, [R.useWith(R.__, [R.last]), R.toPairs]), | |
R.map(R.fromPairs) | |
)) | |
const diffObjs = R.pipe( | |
R.useWith(R.mergeWith(R.merge), [R.map(R.objOf("leftValue")), R.map(R.objOf("rightValue"))]), |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create a group | |
CREATE ROLE readaccess; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO readaccess; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
-- Grant access to future tables | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host) { | |
if (shExpMatch(host,"*.gpsrv.com")) { | |
return "SOCKS5 127.0.0.1:5000; SOCKS 127.0.0.1:5000" | |
} | |
return "DIRECT" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://json.schemastore.org/resume", | |
"basics": { | |
"name": "Joseph Finlayson", | |
"label": "Digital Lead and Developer", | |
"image": "", | |
"email": "joseph.finlayson@gmail.com", | |
"phone": "+4917698455845", | |
"url": "", | |
"summary": "An experienced technology leader with a proven track record of delivering results, a founder who has built teams and companies from scratch\n * Extensive experience in defining and executing digital strategies and building high performance teams\n * Expert in IT architecture and building high performance modern systems\n * Expert in Agile Engineering practices including DevOps\n\nI care about building an inclusive environment where people can do their best work. I believe that engineers should be relentlesly focussed on their customers.\n\nKey achievements:\n\n* Founded sablecard.com -> a bank for internationals in the US. Hired a 10 member Berlin team, and scaled to $100 million in deposits\n* Built technical teams (at McKinsey) from scratch to |