Skip to content

Instantly share code, notes, and snippets.

@ksafranski
ksafranski / codio.sh
Last active August 29, 2015 14:01
Codio Setup
echo "zsh && exit 0" >> ~/.bash_profile &&
curl -L http://install.ohmyz.sh | sh
@ksafranski
ksafranski / setup.sh
Last active February 3, 2016 01:59
Environement Setup
#!/bin/bash
# Run update
apt-get update
wait
# Install build-essentials
apt-get --yes --force-yes install build-essential
wait
// Client-side
io.connect({
forceNew: true,
transports: [ 'websocket' ]
});
// Server-side
var io = require('socket.io');
var app = require('express')();
var server = require('http').createServer(app);
/* global: indexedDB, IDBKeyRange */
// index.js
// Provides easy interaction with indexedDB
// ---
// Part of the Riggr SPA framework <https://github.com/Fluidbyte/Riggr> and released
// under the MIT license. This notice must remain intact.
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {

hello

Click to expand whatever
@ksafranski
ksafranski / README.md
Last active September 25, 2017 01:19
Slecret - Slack Secret

Slecret

Add a Slash command to easily share secrets on Slack.

Setup

There are three components to using this Webtask

1. Create Redis Instance on RedisLabs

Using Git

This document is a quick-start dive into using Git for version control, branching, and collaborative work on projects. It is intended to be a primer on core concepts. For more information, see the Git Docs.

Authentication

The best way to use Git + Github (or any Git hosting) is via SSH. To do this you need an SSH Key (Mac/Linux):

ssh-keygen
import { observable, computed, action } from 'mobx'
import TodoModel from './TodoModel'
export default class TodoListModel {
@observable todos = []
constructor () {
try {
this.todos = JSON.parse(window.localStorage.getItem('todos'))
#!/bin/sh
sudo xrandr --newmode "2560x1080_60.00" 230.00 2560 2720 2992 3424 1080 1083 1093 1120 -hsync +vsync
sudo xrandr --addmode HDMI-1 "2560x1080_60.00"
FROM mhart/alpine-node:8.9
# Dependencies
RUN apk --no-cache add --virtual builds-deps build-base python vim
# Specify pgweb version
ENV PGWEB_VERSION=0.9.12 \
PGWEB_USER=pgweb \
PGWEB_DIR=/app/pgweb