Skip to content

Instantly share code, notes, and snippets.

View cessationoftime's full-sized avatar

Chris Van Vranken cessationoftime

  • Akron, OH
View GitHub Profile
# https://github.com/nix-community/nix-direnv
# https://github.com/oxalica/rust-overlay
{
description = "A basic flake with a shell";
nixConfig.bash-prompt = "\[rust-plot\]($(parse_git_branch))$ ";
inputs.nixpkgs-pinned.url = "github:NixOS/nixpkgs?rev=85f1ba3e51676fa8cc604a3d863d729026a6b8eb";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.rust-overlay.url = "github:oxalica/rust-overlay";
{ pkgs ? import <nixpkgs> {} }: with pkgs;
stdenv.mkDerivation {
name = "frontend";
src = ../.;
buildInputs = [ elmPackages.elm nodejs nodePackages.yarn ];
HOME=".";
@cessationoftime
cessationoftime / botos3upload.py
Created May 13, 2017 20:17 — forked from SavvyGuard/botos3upload.py
Use boto to upload directory into s3
import boto
import boto.s3
import os.path
import sys
# Fill these in - you get them when you sign up for S3
AWS_ACCESS_KEY_ID = ''
AWS_ACCESS_KEY_SECRET = ''
# Fill in info on data to upload
@cessationoftime
cessationoftime / autosuggest.elm
Last active March 24, 2017 23:56 — forked from TheSeamau5/autosuggest.elm
Autosuggest with caching in Elm
import Dict exposing (Dict)
import Html exposing (Html, div, text, input, ul, li)
import Html.Events exposing (..)
import Task exposing (Task)
import String
---------------------------
main =
Html.program
@cessationoftime
cessationoftime / ConfigurableAssets.scala
Last active January 10, 2017 22:59 — forked from drcharris/ConfigurableAssets.scala
Use different assets for different configurations with Play Framework
package controllers
import play.api.Play
import play.api.mvc.Action
import play.api.mvc.AnyContent
import com.google.inject.Inject
import play.api.http.HttpErrorHandler
class ConfigurableAssets @Inject() (playConfig: play.api.Configuration, errorHandler: HttpErrorHandler) extends AssetsBuilder(errorHandler) {

SQL Developer Manual

Problems unique to querying Oracle from Access

Syntax Error in FROM clause, invalid use of vertical bars in query expression

Oracle queries can fail for no good reason when running in Access.

When using || to concatenate, or at other times.

@cessationoftime
cessationoftime / default.nix
Created July 28, 2014 00:05
Example Nix expression, with python and python dependency
let
pkgs = import <nixpkgs> {};
in
{ stdenv ? pkgs.stdenv, python ? pkgs.python, pythonIRClib ? pkgs.pythonIRClib }:
stdenv.mkDerivation {
name = "python-nix";
version = "0.1.0.0";
src = ./.;
@cessationoftime
cessationoftime / pythonMessedUp.nix
Last active August 29, 2015 14:04
Nix, with python, bad expression
#this is a bad version of a python NIX expression, with pythonIRClib dependency.
#arguments for the nix expression, syntax is { argname ? defaultvalue, argname ? defaultvalue }
{ stdenv ? (import <nixpkgs> {}).stdenv ,python ? (import <nixpkgs> {}).python, pythonPackages ? (import <nixpkgs> {}).pythonPackages, pythonIRClib ? (import <nixpkgs> {}).pythonIRClib }:
stdenv.mkDerivation {
name = "python-nix";
version = "0.1.0.0";
src = ./.;
VERSION=1.6.1
ARCH=`uname -m`
ARCH_SYS=`uname -s | tr "[A-Z]" "[a-z]"`
if [[ "$ARCH" = "i386" ]]
then
ARCH = "i686"
fi
WORK_DIR=`pwd`
@cessationoftime
cessationoftime / FirewallMain.scala
Created November 21, 2012 02:24
Attempt to use Bridj to retrieve information about the firewall
package firewall
import org.bridj.Pointer
import org.bridj.BridJ
import org.bridj.Pointer
import org.bridj.cpp.com.COMRuntime
object FirewallMain extends App {
val x: INetFwMgr = COMRuntime.newInstance(classOf[INetFwMgr]);
val point = Pointer.allocatePointer(classOf[INetFwPolicy]);