Skip to content

Instantly share code, notes, and snippets.

View tdubs42's full-sized avatar
🐘
constantly coding

tdubs tdubs42

🐘
constantly coding
View GitHub Profile
@samsch
samsch / js-query.js
Last active September 23, 2021 14:44
Nested Knex query
knex
.select([
'users.*',
knex.raw('json_agg("posts") as posts')
])
.from('users')
.leftJoin(function () {
this.select(['posts.*', knex.raw('json_agg("comments") as comments')])
.from('posts')
.leftJoin('comments', { 'posts.id': 'comments.post' })
@josephhardinee
josephhardinee / spotifyprogrammingplaylists.md
Created March 20, 2019 14:00
Spotify Programming Playlists
  1. Piano Covers of Pop Songs: https://open.spotify.com/user/henryecker/playlist/4SBOdi7IMfCrYKZqCqtuXA?si=FL1axIJTTTqYWXYqS6QICw

  2. Extreme focus coding music: Primarily EDM with little to no vocals https://open.spotify.com/user/nebosite/playlist/0hy2h4wf2A3JWvMzK48REE?si=KlMRgPm8QfiC6N9Z-A6jAQ

  3. High Energy programming mix: Most songs have vocals but good for brainstorming portions. https://open.spotify.com/user/jhardinee/playlist/022CloUnijfD00ziUEXJ66?si=WCKBLFEbQmmym-0DNgFLRA

  4. Dubstep study: Dubstep with no vocals

@calvinh8
calvinh8 / 1.mongodb-aws-setup-guide.md
Last active May 30, 2024 02:39
MongoDB Setup Guide for AWS EC2 Instances with Auth Enabled

MongoDB AWS EC2 Setup Guide

You can see my latest update in my blog here https://medium.com/@calvin.hsieh/steps-to-install-mongodb-on-aws-ec2-instance-62db66981218

Credits:

Big thanks to Elad Nava and Shane Rainville for writing the above articles that allow me to conduct this guide. If by all means that I violated original post's copyright, please contact me.

@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>