Skip to content

Instantly share code, notes, and snippets.

@philcruz
philcruz / home.nix
Created June 23, 2023 20:56
home.nix
{ config, pkgs, ... }:
{
home = {
username = "phil";
homeDirectory = "/Users/phil";
# Specify packages not explicitly configured below
packages = with pkgs; [
autojump
aws-iam-authenticator
@philcruz
philcruz / flake.nix
Created June 23, 2023 20:01
flake.nix
{
description = "Phil's nix-darwin configuration";
inputs = {
# Package sets
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-23.05-darwin";
nixpkgs-unstable.url = github:NixOS/nixpkgs/nixpkgs-unstable;
#nixpkgs-with-patched-kitty.url = github:azuwis/nixpkgs/kitty;
# Environment/system management
component extends="testbox.system.BaseSpec"{
//this will run before every single test in this test case --->
public void function setUp(){
}
//this will run after every single test in this test case --->
public void function tearDown(){
@philcruz
philcruz / git-cheat-sheet.md
Last active October 3, 2016 15:21
Git Cheat Sheet

Create

Convert existing non-empty directory into a Git working directory and push files to a remote repository

cd <localdir>
git init
git add .
git commit -m 'message'
git remote add origin 
@philcruz
philcruz / gist:4f15f89df127a10b7886e7609b39ee92
Created August 18, 2016 15:25
Cannot create a session after the response has been committed
Message: Cannot create a session after the response has been committed
StackTrace: java.lang.IllegalStateException: Cannot create a session after the response has been committed
at org.apache.catalina.connector.Request.doGetSession(Request.java:3044)
at org.apache.catalina.connector.Request.getSession(Request.java:2416)
at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:897)
at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)
at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)
at coldfusion.runtime.AppHelper.setupJ2eeSessionScope(AppHelper.java:991)
at coldfusion.runtime.AppHelper.setupSessionScope(AppHelper.java:1084)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:397)
@philcruz
philcruz / test-rounding.cfm
Created June 13, 2016 18:10
testing-rounding.cfm
<cfset root = Expandpath("/") />
<cfset xlsFile = root & "\temp\CF-test-data.xlsx" />
<cfspreadsheet action="read" src="#xlsFile#" query="qry2" headerrow="1" excludeHeaderRow="true" />
<cfscript>
rowNumber = 1569;
columnName = "Total";
@philcruz
philcruz / writeLog.txt
Last active March 18, 2016 16:18
writeLog()
writeLog(text="...text to log...", file="application", type="Debug", application="no");
@philcruz
philcruz / designer.html
Last active August 29, 2015 14:16
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">

Keybase proof

I hereby claim:

  • I am philcruz on github.
  • I am philcruz (https://keybase.io/philcruz) on keybase.
  • I have a public key whose fingerprint is 9B8D 7A9A 55E9 1964 CE76 75CA CDB4 1FC3 D370 8D60

To claim this, I am signing this object: