Skip to content

Instantly share code, notes, and snippets.

@clns
clns / SHADERed-crash-report.txt
Last active October 22, 2021 01:24
SHADERed Crash Report macOS Big Sur - using Watches/Immediate/Auto windows in the debugger
Process: SHADERed [56335]
Path: /Users/USER/*/SHADERed
Identifier: SHADERed
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [45090]
Responsible: Terminal [45088]
User ID: 501
Date/Time: 2021-10-20 16:51:38.713 -0600
@clns
clns / Custom_sitestacker.xml
Created May 25, 2017 15:31
[WIP] PhpStorm sitestacker support
<?xml version="1.0" encoding="UTF-8"?>
<framework xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="schemas/frameworkDescriptionVersion1.1.4.xsd" name="Custom_sitestacker" invoke="C:\Windows\System32\sitestacker.exe" alias="sitestacker" enabled="true" version="2">
<command>
<name>db</name>
<help><![CDATA[Import a remote Site Stacker database into your local database server]]></help>
<params>url</params>
<optionsBefore>
<option name="--dry-run" shortcut="-n">
<help><![CDATA[Show all actions that will take place, without making any changes]]></help>
</option>
# in Docker Quickstart Terminal, in Site Stacker root
docker run --rm -v "$(pwd):/var/www/html" sitestacker/dev compass compile packages/components/People/webroot/scss/
@clns
clns / Git.md
Last active March 14, 2023 15:17
Git commands
Quickly open git source code
vim $(git --exec-path)/git-rebase--interactive
Automatically change "pick" to "reword" in a rebase
GIT_SEQUENCE_EDITOR="sed -i '' -e 's/^pick/reword/g'" git rebase -i --root
@clns
clns / go-test-all.ps1
Last active August 29, 2015 14:23
go-mssqldb not working
> $env:HOST="localhost"; $env:SQLUSER=""; $env:SQLPASSWORD=""; $env:DATABASE="test"; go test
go : 2015/06/27 17:10:20 select 1
At line:1 char:84
+ ... TABASE="test"; go test > z.ps1 2>&1
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (2015/06/27 17:10:20 select 1:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
2015/06/27 17:10:20 select 1
@clns
clns / boot2docker-init.ps1
Created June 24, 2015 10:33
boot2docker problems on Windows 8.1
D:\> boot2docker.exe -v init
Boot2Docker-cli version: v1.7.0
Git commit: 7d89508
2015/06/24 13:25:16 executing: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe showvminfo boot2docker-vm --machineread
able
Latest release for github.com/boot2docker/boot2docker is v1.7.0
Downloading boot2docker ISO image...
Success: downloaded https://github.com/boot2docker/boot2docker/releases/download/v1.7.0/boot2docker.iso
to C:\Users\Calin\.boot2docker\boot2docker.iso
executing: C:\Program Files (x86)\OpenSSH\bin\ssh-keygen.exe ssh-keygen -t rsa -N -f C:\Users\Calin\.ssh\id_boot2docker
@clns
clns / README.md
Last active August 29, 2015 14:13 — forked from jonathantneal/README.md

Local SSL websites on Mac OSX

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on Mac OSX Yosemite.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward edit to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
@clns
clns / introrx.md
Last active August 29, 2015 14:11 — forked from staltz/introrx.md

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

@clns
clns / j2objc-make-dist-error.sh
Last active August 29, 2015 14:07
j2objc build error
This file has been truncated, but you can view the full file.
Building j2objc annotations
mvn generate-resources dependency:sources
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building j2objc 0.9.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.5:copy-dependencies (copy-dependencies) @ j2objc ---
[INFO] Copying org.eclipse.equinox.common-3.6.200.v20130402-1505.jar to /Users/calin/Projects/Java/graphhopper/j2objc/java_deps/build_result/org.eclipse.equinox.common-3.6.200.v20130402-1505.jar
@clns
clns / trove-link-err.sh
Created July 21, 2014 06:42
graphhopper-ios