Skip to content

Instantly share code, notes, and snippets.

View jocubeit's full-sized avatar
🎯
Focusing

Dom Jocubeit jocubeit

🎯
Focusing
View GitHub Profile
import 'package:flutter/material.dart';
main() {
runApp(MaterialApp(
home: Scaffold(
body: SafeArea(
child: Stack(
children: <Widget>[
const Lines(),
const IgnorePointer(
@brandoncc
brandoncc / config.yml
Last active October 26, 2018 17:47
nanobox circleci config
version: 2
jobs:
test-job:
machine: true
steps:
- checkout
- run: sudo bash -c "$(curl -fsSL https://s3.amazonaws.com/tools.nanobox.io/bootstrap/ci.sh)"
- run: nanobox evar add local CLOUDINARY_API_KEY=$CLOUDINARY_API_KEY
@russmckendrick
russmckendrick / docker-compose.yml
Created January 21, 2017 16:03
Minio Docker Compose
version: "3"
services:
minio1:
image: minio/minio
ports:
- "9000:9000"
networks:
- minionet
upstream app {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name localhost;
location / {
proxy_read_timeout 600;
@sebboh
sebboh / gist:f1dfe4f096746c45f3e9ea06a09743a0
Last active February 27, 2024 17:10 — forked from masonforest/gist:4048732
Installing a Gem on Heroku from a Private GitHub Repo

Installing a Gem on Heroku from a Private GitHub Repo

Sometimes you want to use a gem on Heroku that is in a private repository on GitHub.

Using git over http you can authenticate to GitHub using basic authentication. However, we don't want to embed usernames and passwords in Gemfiles. Instead, we can use authentication tokens.

This method does not add your OAuth token to Gemfile.lock. It uses bundle config to store your credentials, and allows you to configure Heroku to use environment variables when deploying.

  1. Generate an OAuth token from GitHub
@muammar
muammar / getFirafonts.sh
Created May 23, 2016 08:41
Download and install Fira fonts in Linux or Mac OS X
#!/bin/bash
## cf from http://programster.blogspot.com/2014/05/ubuntu-14-desktop-install-fira-sans-and.html
cd /tmp
# install unzip just in case the user doesn't already have it.
if [[ `uname` = Linux ]]; then
sudo apt-get install unzip -y
wget "http://www.carrois.com/downloads/fira_4_1/FiraFonts4106.zip"
@bibendi
bibendi / README.md
Last active May 8, 2018 05:03
Kontena rails app

Usage

Setup kontena.io

$ gem install kontena-cli
$ kontena login {ip}
$ kontena grid use staging
$ kontena vpn config > kontena.ovpn
$ sudo openvpn --config kontena.ovpn --script-security 2 --daemon
@popravich
popravich / PostgreSQL_index_naming.rst
Last active March 25, 2024 12:42
PostgreSQL index naming convention to remember

The standard names for indexes in PostgreSQL are:

{tablename}_{columnname(s)}_{suffix}

where the suffix is one of the following:

  • pkey for a Primary Key constraint;
  • key for a Unique constraint;
  • excl for an Exclusion constraint;
  • idx for any other kind of index;
@kasperpeulen
kasperpeulen / README.md
Last active February 20, 2024 02:52
How to pretty-print JSON using Dart.
@mrtnpro
mrtnpro / virtualhostx-rails-app-conf
Created May 18, 2015 15:59
VirtualHostX Custom Directives config for Rails apps
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ http://localhost:3000/%{REQUEST_URI} [P,QSA]
<Proxy *>
Allow from all
</Proxy>