Skip to content

Instantly share code, notes, and snippets.

View stevepaulo's full-sized avatar

Steve Paulo stevepaulo

  • Underdog Fantasy
  • San Ramon, CA
  • 23:01 (UTC -07:00)
  • X @stevepaulo
View GitHub Profile
@marcantoine
marcantoine / showMetabaseQuestiontAsiOSWidget.js
Last active June 13, 2022 08:15
showMetabaseQuestiontAsiOSWidget.js
// Modified from @mutsuda's https://medium.com/@mutsuda/create-an-ios-widget-showing-google-spreadsheets-data-856767a9447e
// and @levelsio's https://gist.github.com/levelsio/a1ca0dd434b77ef26f6a7c403beff4d0
// HOW TO
// 1) Make a new Metabase Question
// 2) Make the result an unique number and choose Visualization > Number
// 3) Write your metabase domain, your email and password below
const domain = "https://metabase.endpoint.com"
const username = "my.e@mail.com"
const password = "p@ssw0rd"
@jsloat
jsloat / Bear.Backlinks.js
Last active December 27, 2022 23:27
Generate backlinks for Bear notes in Scriptable on iOS
@osulyanov
osulyanov / config.yml
Last active November 30, 2022 23:58
Circle CI workflows config to test and deploy Ruby on Rails application with PostgreSQL database. Test with Rspec, precompile assets then deploy with Capistrano.
# Ruby CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
#
defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/ruby:2.4.1-node-browsers
environment:
@masutaka
masutaka / circle.yml
Created April 16, 2017 10:25
capistrano deployment using CircleCI 2.0
version: 2
jobs:
build:
docker:
- image: ruby:2.3.3-alpine
working_directory: /home/circleci/masutaka.net
steps:
- setup_remote_docker:
# https://circleci.com/docs/2.0/docker-layer-caching/
reusable: true
@JoaquimLey
JoaquimLey / github_multiple-accounts.md
Last active April 30, 2023 22:17
How to Work with GitHub and Multiple Accounts

Step 1 - Create a New SSH Key

We need to generate a unique SSH key for our second GitHub account.

ssh-keygen -t rsa -C "your-email-address"

Be careful that you don't over-write your existing key for your personal account. Instead, when prompted, save the file as id_rsa_COMPANY. In my case, I've saved the file to ~/.ssh/id_rsa_work.

Step 2 - Attach the New Key

@theFreedomBanana
theFreedomBanana / convert_json_to_csv.rb
Created November 8, 2015 09:57
A ruby script to convert Json file to CSV
#Ruby version 2.1.1
require 'csv'
require 'json'
def json_to_csv(json_file, csv_file)
json_array = JSON.parse(File.open(json_file).read)
headers = collect_keys(json_array.first)
CSV.open(csv_file, "w", :write_headers=> true, :headers => headers) do |csv|
json_array.each { |item| csv << collect_values(item) }
@darkwing
darkwing / gulpfile.js
Created October 13, 2015 14:45
"punky" theme build file for David Walsh Blog
'use strict';
/*
Ways to improve site speed for theme:
===========================================
- Store fonts.css in localStorage, don't make request if it's there
- Create a custom FontAwesome lib, lazyload
*/
@staringispolite
staringispolite / asciiputsonglasses
Last active March 22, 2024 06:39
Ascii art sunglasses meme
Puts on glasses:
(•_•)
( •_•)>⌐■-■
(⌐■_■)
Takes off glasses ("mother of god..."):
(⌐■_■)
( •_•)>⌐■-■
@jeremyevans
jeremyevans / gist:7837679
Created December 7, 2013 05:42
Toto to Jekyll converter used to convert the sequel blog
# Run from jekyll dir
Dir['/path/to/toto/articles/*.txt'].sort.each do |path|
file = File.basename(path)
new_file = "_posts/#{file.sub(/\.txt\z/, '.md')}"
text = File.read(path)
headers, md = text.split("\n\n", 2)
raise "No title" unless headers =~ /^title: (.+)$/
title = $1
File.write(new_file, "---\n layout: post\n title: #{title}\n---\n\n#{md}")
end