Skip to content

Instantly share code, notes, and snippets.

View mephmanx's full-sized avatar
🏠
Working from home

Chris Lyons mephmanx

🏠
Working from home
View GitHub Profile
@gnuton
gnuton / gist:6a02225b0cbff6547b78723564aee63c
Created November 22, 2019 11:38
AWS SES send file with attachment in bash
function sendCSVviaEmail {
echo "Sending file via email..."
AWS_CLI="/usr/bin/aws"
SENDER=${EMAIL_SENDER}
RECIPIENT=${EMAIL_RECIPIENT}
SUBJECT=${EMAIL_SUBJECT}
BODY=${EMAIL_BODY}
ATTACHMENT_TYPE="text/plain"
ATTACHMENT_FILE_NAME="report.csv"
@JayBee007
JayBee007 / client.js
Last active January 14, 2024 15:48
Trying to Setup GraphQL subscriptions on the backend and frontend
import { ApolloClient } from 'apollo-client';
import { split } from 'apollo-link';
import { HttpLink } from 'apollo-link-http';
import { WebSocketLink } from 'apollo-link-ws';
import { getMainDefinition } from 'apollo-utilities';
import { InMemoryCache } from 'apollo-cache-inmemory';
import { withClientState } from 'apollo-link-state';
import { ApolloLink, Observable } from 'apollo-link';
import { getUserFromLocalStorage } from './services/authService';
@paulbbauer
paulbbauer / main.js
Last active February 8, 2024 10:42
Electron oAuth Authentication with GitHub API
// based on:
// http://iamemmanouil.com/blog/electron-oauth-with-github/
// https://github.com/ekonstantinidis/gitify
// this version uses https rather than superagent
var querystring = require('querystring');
var https = require("https");
// Your GitHub Applications Credentials