Skip to content

Instantly share code, notes, and snippets.

View KeithETruesdell's full-sized avatar
🎯
slowly slowly slowly says the sloth

Keith E. Truesdell KeithETruesdell

🎯
slowly slowly slowly says the sloth
View GitHub Profile
@reidjs
reidjs / note_organization_structure.md
Last active August 27, 2022 00:14
A five point strategy to keep your notes organized and easily searchable

A five point strategy to keep your notes organized and easily searchable

Why structure your notes?

There isn't a correct way to take notes, but I have found that having a system, any system, is extremely beneficial when you are working on large projects. Conventions allow you to stop thinking about the style of your notes and focus on quality and content. This isn't a list of rules that must be followed at all times, it's a recurring process that leads to a more useful collection of notes over time.

My system

  1. Keep all your structured notes in a single root folder and make sure it's safely backed up. I keep my notes in iCloud.
  2. Minimize directory depth. For example, you may have a music folder, but you should not have ANY folders within it, if possible. If you start accumulating a lot of guitar specific notes, you should make a new folder at the root directory named guitar.

Example file structure

@MarioCarrion
MarioCarrion / go.vim
Last active November 17, 2023 22:20
Nvim Go configuration
"-- vim-go specific configuration
" run :GoBuild or :GoTestCompile based on the go file
function! s:build_go_files()
let l:file = expand('%')
if l:file =~# '^\f\+_test\.go$'
call go#test#Test(0, 1)
elseif l:file =~# '^\f\+\.go$'
call go#cmd#Build(0)
endif
@josemarimanio
josemarimanio / install_pyenv_mac_zsh.rst
Created May 13, 2020 12:13
Installing pyenv on macOS for Zsh using Homebrew
@KeithETruesdell
KeithETruesdell / Google-Sheet-Form-Post.md
Last active November 5, 2019 17:49 — forked from willpatera/Google-Sheet-Form-Post.md
Post to google spreadsheet from html form

Overview

This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form> following the example by Martin Hawksey

Run example

You should be able to just open index.html in your browser and test locally.

However if there are some permissions errors you can make a quick html server with python. Open terminal and cd to the directory where the gist files are located and enter python -m SimpleHTTPServer. By default this creates a local server at localhost:8000

@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active November 15, 2024 20:31
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@rhukster
rhukster / sphp.sh
Last active March 30, 2024 10:41
Easy Brew PHP version switching (Now moved to https://github.com/rhukster/sphp.sh)
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
#
# >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh
# >>> Kept here for legacy purposes
#
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
@sdnts
sdnts / example.md
Last active January 10, 2023 20:50
Postman pm.sendRequest example

To send a request via the sandbox, you can use pm.sendRequest.

pm.test("Status code is 200", function () {
    pm.sendRequest('https://postman-echo.com/get', function (err, res) {
        pm.expect(err).to.not.be.ok;
        pm.expect(res).to.have.property('code', 200);
        pm.expect(res).to.have.property('status', 'OK');
    });
});
@inancgumus
inancgumus / xmlToJson.xslt
Created May 16, 2017 10:20
XML to JSON using XSLT
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="utf-8"/>
<xsl:template match="/*[node()]">
<xsl:text>{</xsl:text>
<xsl:apply-templates select="." mode="detect" />
<xsl:text>}</xsl:text>
</xsl:template>
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 16, 2024 16:15
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@guillaumemolter
guillaumemolter / saml-response.cfm
Created August 10, 2015 14:24
Reading, decoding and inflating a SAML XML respone with Coldfusion
<!---
Reading, decoding and inflating a SAML XML respone with Coldfusion
This script is heavily inspired by the following posts:
- Ciarán Archer : https://flydillonfly.wordpress.com/2011/06/28/using-coldfusion-to-unzip-a-gzip-base64-string/
- Ryan Loda : http://www.coderanch.com/t/545270/java/java/Decode-SAML-Request
- Ben Nadel : http://www.bennadel.com/blog/1343-converting-a-base64-value-back-into-a-string-using-coldfusion.htm
--->