Skip to content

Instantly share code, notes, and snippets.

View chl03ks's full-sized avatar
🍊
Working from home

Dan Garcia chl03ks

🍊
Working from home
View GitHub Profile
@dideler
dideler / 0-startup-overview.md
Last active July 17, 2024 08:10
Startup Engineering notes
@chl03ks
chl03ks / The Ultimate Git Congif .gitconfig
Last active December 26, 2017 19:12
My git configuration
[user]
name = Daniel
email = danielulisesverdin@gmail.com
[color]
ui = true
[alias]
co = checkout
dev = pull origin develop
mast = pull origin master
todev = push origin develop
@dbredvick
dbredvick / text.ts
Created January 12, 2020 00:22
NextJS Twilio Typescript example
import { NextApiResponse, NextApiRequest } from "next";
const twillio = require('twilio');
const authToken = process.env.TWILIO_AUTH_TOKEN;
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const myCellPhoneNumber = process.env.MY_NUMBER;
const superSecretAPIKey = 'ABCD1234';
export default async (req: NextApiRequest, res: NextApiResponse) => {
const client = twillio(accountSid, authToken);
const auth = req.headers.authorization;
// This is a hack, a quick and dirty console script for RT/tweets (with replies) removal w/o API
// To be used in: https://twitter.com/Username/with_replies
// Set your username (without @) below (case-sensitive) to correctly trigger the right Menu
const tweetUser = 'Username'
// BUG, With above we still trigger Menu on some replies but relatively harmless.
// @Hack Implement simple has() for querySelector
const querySelectorHas = function( parent, child ){
@ItsWendell
ItsWendell / segment-analytics.ts
Last active January 30, 2023 10:36
Segment Analytics client for Lambda with Fire & Forget support.
import { merge } from "lodash";
import { request } from "https";
import { v4 as uuidv4 } from "uuid";
export const name = "analytics-lamdba";
export const version = "0.1.2";
export type SegmentMessageTypes =
| "identify"
| "group"