Skip to content

Instantly share code, notes, and snippets.

Avatar

Steve Condylios stevecondylios

View GitHub Profile
@6temes
6temes / rails-tests.yml
Last active Sep 28, 2020
Github actions setup with Rspec and static code analysis for Ruby on Rails
View rails-tests.yml
# .github/workflows/rails-tests.yml
env:
PGHOST: localhost
PGPASS: postgres
PGUSER: postgres
POSTGRES_DB: my_db_test
RAILS_ENV: test
name: Rails Tests
@hrbrmstr
hrbrmstr / heroku-pg.r
Last active Apr 12, 2020
Connect R (#rstats) to heroku PostgreSQL — https://www.heroku.com/postgres
View heroku-pg.r
library(processx)
library(RPostgres)
library(httr)
library(dbplyr)
library(tidyverse)
# this example assumes you've created a heroku postgresql
# instance and have the app name (in this example, "rpgtestcon").
# use the heroku command-line app
@ae-s
ae-s / unicode.7
Created Jul 3, 2017
A manpage for unicode
View unicode.7
This file has been truncated, but you can view the full file.
'\" t
.\" Copyright (c) 2013 Astrid Smith
.\" Created Sun Dec 22 21:21:39 PST 2013
.\"
.\" %%%LICENSE_START(WTFPL)
.\" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
.\" Version 2, December 2004
.\"
.\" Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
@eikes
eikes / gist:5a64b661022c756bd6522ed94770e2a6
Created Jul 4, 2016
List of Ruby on Rails Timezone names and their alias
View gist:5a64b661022c756bd6522ed94770e2a6
["Africa/Algiers", "West Central Africa"],
["Africa/Cairo", "Cairo"],
["Africa/Casablanca", "Casablanca"],
["Africa/Harare", "Harare"],
["Africa/Johannesburg", "Pretoria"],
["Africa/Monrovia", "Monrovia"],
["Africa/Nairobi", "Nairobi"],
["America/Argentina/Buenos_Aires", "Buenos Aires"],
["America/Bogota", "Bogota"],
["America/Caracas", "Caracas"],
@mdang
mdang / RAILS_CHEATSHEET.md
Last active Nov 25, 2020
Ruby on Rails Cheatsheet
View RAILS_CHEATSHEET.md

Ruby on Rails Cheatsheet

Architecture

Create a new application

Install the Rails gem if you haven't done so before

@gubatron
gubatron / multiple-deploy-keys-multiple-private-repos-github-ssh-config.md
Last active Nov 24, 2020
How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent
View multiple-deploy-keys-multiple-private-repos-github-ssh-config.md

How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

Let's say alice is a github.com user, with 2 or more private repositories repoN. For this example we'll work with just two repositories named repo1 and repo2

https://github.com/alice/repo1

https://github.com/alice/repo2

You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers.

@trestletech
trestletech / server.R
Last active Nov 19, 2020
A Shiny app combining the use of dplyr and SQLite. The goal is to demonstrate a full-fledged, database-backed user authorization framework in Shiny.
View server.R
library(shiny)
library(dplyr)
library(lubridate)
# Load libraries and functions needed to create SQLite databases.
library(RSQLite)
library(RSQLite.extfuns)
saveSQLite <- function(data, name){
path <- dplyr:::db_location(filename=paste0(name, ".sqlite"))
@adamjohnson
adamjohnson / publickey-git-error.markdown
Last active Nov 28, 2020
Fix "Permission denied (publickey)" error when pushing with Git
View publickey-git-error.markdown

"Help, I keep getting a 'Permission Denied (publickey)' error when I push!"

This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:

  1. Open git bash (Use the Windows search. To find it, type "git bash") or the Mac Terminal. Pro Tip: You can use any *nix based command prompt (but not the default Windows Command Prompt!)
  2. Type cd ~/.ssh. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\ on Windows)
  3. Within the .ssh folder, there should be these two files: id_rsa and id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa and id_rsa.pub in order for Git, GitHub, and BitBucket to recognize them by default.
  4. To create the SSH keys, type ssh-keygen -t rsa -C "your_email@example.com". Th
You can’t perform that action at this time.