Gists Archive
- Base62 encoding and decoding
Created: June 30, 2025Tags: #go #uuid #serialization
- Using ETags in your API
Created: June 25, 2025Tags: #etag #api
- Dependabot
Created: June 16, 2025Tags: #dependencies
- Simple Fastly Terraform Subscription
Created: June 13, 2025Tags: #tls #fastly #iac
- Homebrew: custom version install
Created: May 27, 2025Tags: #homebrew #macOS
- Go: httpx.WriteJSON
Created: May 23, 2025Tags: #go #http #json #api
- Go: 1.23 iter.Seq/iter.Seq2 iterators
Created: May 23, 2025Tags: #go #iterator
- Go: JSON omitempty vs omitzero
Created: May 23, 2025Tags: #go #json
- Go: HTTP handler Write error after WriteHeader
Created: May 14, 2025Tags: #go #http #middleware
- TLS, Certificate, and ACME Glossary
Created: April 23, 2025Tags: #TLS #ACME
- Go: Why choose tailscale.com/util/ctxkey over Go standard context package
Created: March 28, 2025Tags: #go #ctx
- DNS Delegation
Created: March 26, 2025Tags: #dns
- Basic Go Project Structure
Created: March 17, 2025Tags: #go #project
- Go: Serialize and Deserialize types using gob
Created: March 14, 2025Tags: #go #serialization
- Improving dig output
Created: March 12, 2025Tags: #dns #dig #bash #shell
- Well-Known URIs
Created: March 11, 2025Tags: #IANA #Well-Known
- Go: Ring Buffers
Created: March 11, 2025Tags: #go #ring #circular #queue
- Go: Generate UML
Created: March 11, 2025Tags: #go #uml #design #architecture #diagram
- Go: Exponential Backoff
Created: March 10, 2025Tags: #go #backoff #retry #resilience
- Project Planning
Created: March 6, 2025Tags: #project #architecture #design #planning
- Math: How to identify a number
Created: February 27, 2025
- DNS: Lookup of Host information
Created: February 13, 2025Tags: #dns #lookup #host
- Bash: Update same line for progress bar reporting
Created: February 7, 2025Tags: #bash #shell #progress
- Mermaid Diagram Examples
Created: January 27, 2025Tags: #diagrams
- Go: go work
Created: January 21, 2025Tags: #go #project
- xarg: parallel processing
Created: January 21, 2025Tags: #xarg
- Make: Makefile syntax
Created: January 14, 2025Tags: #make #makefile #shell
- OpenAPI: feature flags use different schemas
Created: January 13, 2025Tags: #schemas #openapi #api #design
- 1Password CLI
Created: January 7, 2025Tags: #shell
- Go: errgroup
Created: January 7, 2025Tags: #go #concurrency #errors
- macOS: automation with Hammerspoon
Created: January 5, 2025Tags: #hammer #hammerspoon #os #automation #macos #shell #lua
- Image resize with ImageMagick
Created: January 2, 2025Tags: #bash #shell #imagemagick #resize #image
- Go: Single-Flight
Created: December 20, 2024Tags: #go #performance #concurrency
- Code: Programming Terminology
Created: December 20, 2024Tags: #programming #terminology
- Go: Custom Error Handling
Created: December 19, 2024Tags: #go #errors
- Shell: Shell Scripting Best Practices
Created: December 18, 2024Tags: #shell #bash
- YAML: anchors
Created: December 9, 2024Tags: #yaml #anchors
- Go: Generic Slice Map function
Created: December 3, 2024Tags: #go #computation #generics
- Go: Delete a slice entry in Go
Created: December 3, 2024Tags: #go #computation
- Go: Simple line-by-line diff in Go
Created: December 2, 2024Tags: #go #utility
- Go: Structured Logging
Created: November 26, 2024Tags: #go #logs
- Go: Bitwise Operations in Go
Created: November 8, 2024Tags: #go #computation
- Fastly Code Test Asset
Created: November 4, 2024
- Go: concurrency
Created: October 29, 2024Tags: #go #concurrency
- macOS: Custom wireless battery alerts for mouse and keyboard
Created: October 22, 2024Tags: #macos #automator #notifications #battery
- Go: Custom DNS resolution in Golang
Created: October 18, 2024Tags: #go #dns
- Go: Codesign a Go test binary that listens on network and needs to accept incoming network connections
Created: October 17, 2024Tags: #go #macos #network #security
- OpenSSL: Working with SSL Certificates, Private Keys and CSRs
Created: October 1, 2024Tags: #openssl #ssl #tls #certs #csr
- Go: local SSH tunnel using google cloud
Created: September 20, 2024Tags: #go #ssh
- Go: GitHub Actions update app dependencies daily with private repo access
Created: September 12, 2024Tags: #ci #cron #go
- What is a SKU
Created: September 4, 2024Tags: #sku
- Pagination: offset vs cursor
Created: August 6, 2024Tags: #pagination #design
- Go: the goto statement
Created: August 6, 2024Tags: #go
- Go: f-tests replace table-driven tests
Created: July 17, 2024Tags: #go #tests
- Music: Separate the musical instruments from a song and make an instrumental
Created: June 26, 2024
- Vim: beginner notes
Created: June 5, 2024Tags: #vim #beginner
- Shell: rename files matching specific pattern
Created: May 22, 2024Tags: #shell #bash #macos #files #rename
- SSH: Proxy HTTP requests through a SSH connection via SOCKS5 proxy
Created: May 15, 2024Tags: #ssh #proxy #tunnel
- Markdown: Highligh notes and warnings in Markdown
Created: May 13, 2024Tags: #gist #github #notes
- Editor: Example Editor Config
Created: May 8, 2024Tags: #editorconfig
- Testing: Different Testing Styles
Created: April 29, 2024Tags: #tests #terminology #system
- Go: basic middleware abstraction
Created: March 26, 2024Tags: #go #middleware
- Go: Docker Go Image with mounted files
Created: March 14, 2024Tags: #docker #go
- Go: convert JSON types when unmarshalling
Created: March 7, 2024Tags: #go #json #serialization
- Make: Check if Makefile target is called with a required input arg
Created: March 1, 2024Tags: #Makefile #make
- macOS: Install Windows on macOS with VirtualBox
Created: February 29, 2024Tags: #virtualbox #vm #windows
- Fastly: create, validate, and destroy service
Created: February 28, 2024Tags: #CLI #Fastly
- GitHub: Download latest GitHub Asset Release
Created: February 23, 2024Tags: #github #asset #release
- Go: type cast
Created: February 9, 2024Tags: #go
- Go: structure logging
Created: January 24, 2024Tags: #go #logs
- Go: copy struct from pointer
Created: January 19, 2024Tags: #go
- Go: understanding init functions
Created: January 18, 2024Tags: #go
- Go: pointer receiver method avoids runtime panic
Created: January 12, 2024Tags: #go
- OpenAPI: generate schema dynamically
Created: December 15, 2023Tags: #openapi #template #bash #shell
- Go: range bug
Created: November 17, 2023Tags: #go #bug
- Go: filter secrets
Created: October 9, 2023Tags: #go #security
- Go: recursively walk tree looking for go files and analysing their imports
Created: September 22, 2023Tags: #go #ast #recursive
- Go: call method directly via method expressions
Created: June 16, 2023Tags: #go #expressions
- macOS: find files asynchronously
Created: June 5, 2023Tags: #xargs #async #find
- Go: stream new-line delimited JSON to Server
Created: May 18, 2023Tags: #go #api #stream #json #ndjson
- Make: Makefile help output
Created: April 25, 2023Tags: #make #makefile #help #docs
- API: Versioning Strategies
Created: April 25, 2023Tags: #api #versioning
- OpenSSL: Generate Certificate for Code Signing
Created: March 24, 2023Tags: #openssl #cert #codesign #AI
- Git: Generate change log between two tags
Created: March 23, 2023Tags: #changelog #git
- AWK: extract first changelog entry
Created: March 22, 2023Tags: #awk #changelog
- Go: spinner
Created: February 13, 2023Tags: #go #spinner
- Go: recursively search for a file until reaching user's home directory
Created: January 31, 2023Tags: #go #search #recursive
- Go: Playground multiple files
Created: January 16, 2023Tags: #go #playground
- API Clients: Publishing packages for multiple languages
Created: December 9, 2022Tags: #publish #package #ruby #php #python #go #js #javascript #rust #api #clients
- JS: Getting JS module published
Created: December 9, 2022Tags: #js #javascript #npm #module
- Go: Getting package documentation published
Created: December 9, 2022Tags: #go #pkg #docs
- Shell: Write to a variable multiple times before writing to disk
Created: December 1, 2022Tags: #bash #shell #performance
- RipGrep: inline file replacements
Created: November 29, 2022Tags: #riggrep #rg #sed #replacement #bash #shell
- Auth: CLI Device Authorization Flow with Auth0
Created: November 24, 2022Tags: #auth #auth0 #device #cli
- Auth: CLI PKCE with Auth0 or KeyCloak (inc code examples + sequence diagram)
Created: November 23, 2022Tags: #auth #auth0 #pkce #cli #keycloak
- Auth: OAuth2 and OIDC (OpenID Connect)
Created: November 9, 2022Tags: #OAuth #OIDC
- Make: Makefile prompt for user input
Created: October 4, 2022Tags: #make #shell
- Vim: increment numbers across blocks
Created: September 29, 2022Tags: #vim #increment
- Terraform: Debugging with Delve
Created: September 23, 2022Tags: #terraform #debug #delve
- Git: How to ignore root file but not a sub directory of the same name
Created: July 15, 2022Tags: #git #ignore
- Go: file lock
Created: June 30, 2022Tags: #go #network
- Go: retry logic
Created: June 30, 2022Tags: #go #resilience
- JS: Simple partial application function
Created: June 28, 2022
- Go: remove cookie from http.Request
Created: June 23, 2022Tags: #go #http
- Perl: add language to markdown code block
Created: June 21, 2022Tags: #perl #regex #codeblock #markdown
- Rust: flatten vector of Results
Created: June 20, 2022Tags: #rust
- Rust: Smart Pointers
Created: June 16, 2022Tags: #rust
- Rust: Tokio Spawn and Retry
Created: June 15, 2022Tags: #rust #async #retry
- Terraform: Debugging Variables
Created: June 14, 2022Tags: #terraform #debug #log
- JS: sort two-dimensional Array
Created: June 9, 2022Tags: #js #javascript #sort
- Rust: Basic parsing of go.mod with Rust
Created: May 23, 2022Tags: #rust #go #serialization
- Rust: Measure the elapsed time between two code sections in Rust
Created: May 19, 2022Tags: #rust #debug
- Shell: single line Ruby script in shell
Created: May 18, 2022Tags: #ruby #shell #script
- Go: REDACT tokens via regex pattern
Created: May 16, 2022Tags: #go #regex
- Network: Debug Wifi Issues
Created: May 16, 2022Tags: #wifi #network #debug
- Go: Docker Go/TinyGo Application
Created: May 3, 2022Tags: #docker #go
- Go: Version <1.16 Embed Data
Created: April 28, 2022Tags: #go
- macOS: view shutdown logs
Created: April 28, 2022Tags: #macOS #logs
- Shell: Track list of open files
Created: April 26, 2022Tags: #bash #tmux #lsof #unix #shell #monitor #zsh
- Laptop: New Laptop Software Installation
Created: March 29, 2022Tags: #laptop
- Rust: parse string to custom type
Created: March 29, 2022Tags: #rust #trait
- Rust: Parse program releases
Created: March 29, 2022Tags: #rust #exercise #io #file #semver #trait
- Terraform: create backend definitions from a list of hostnames
Created: March 18, 2022Tags: #terraform #fastly #work
- Go: random number generator
Created: March 9, 2022Tags: #go #rng
- Go: documentation generate example
Created: March 8, 2022Tags: #go
- Go: generate range between two numbers
Created: March 4, 2022Tags: #go
- Go: r.Host vs r.URL.Host
Created: March 3, 2022Tags: #go #http
- Shell: Authenticated curl of the GitHub API
Created: February 23, 2022Tags: #curl #bash #auth #github #api
- Go: GitHub API Client
Created: February 22, 2022Tags: #go #api
- Rust: anyhow vs thiserror
Created: February 21, 2022Tags: #rust #errorhandling
- macOS: Force eject DVD from external drive
Created: February 9, 2022Tags: #macOS #disk #drive #dvd
- Go: simplicity of mitchellh/cli
Created: February 8, 2022Tags: #go
- Shell: Generate Go documentation
Created: February 3, 2022Tags: #go #shell
- Go: handle unknown json data structure
Created: January 31, 2022Tags: #go #json #serialization
- Go: combine two structs with json.Marshal
Created: January 31, 2022Tags: #go #json #serialization
- Fastly: Terraform 1.0.0 Migration Guide
Created: January 28, 2022Tags: #delete #fastly #work
- Rust: ANSI Escape Code Clear Line
Created: January 27, 2022Tags: #rust #ansi
- Terraform: The problem with Terraform's schema.TypeSet
Created: January 27, 2022Tags: #terraform
- Rust: Packages, Crates, Modules
Created: January 18, 2022Tags: #rust #rustlang #learn
- Go: updating a pointer field value
Created: January 11, 2022Tags: #go
- Go: loop over struct fields
Created: January 7, 2022Tags: #go #reflection
- Go: Kingpin CLI IsGlobalFlagsOnly
Created: January 6, 2022Tags: #go
- Go: Compile go program for Windows
Created: January 6, 2022Tags: #go #compiler #windows
- Go: godoc example code generation
Created: January 6, 2022Tags: #go
- Go: macOS bug
Created: December 20, 2021Tags: #macOS #go #bug
- Rust: Command line utilities written in Rust
Created: December 20, 2021Tags: #cli #rust #utilities
- Terminal: Colour Support
Created: December 20, 2021Tags: #perl #terminal #colours
- Go: thread-safe bytes.Buffer
Created: December 17, 2021Tags: #go #concurrency
- Windows: Terminal Development
Created: December 16, 2021Tags: #terminals #windows #os #dev #nvim
- Writing: Article Notes and Asides
Created: December 15, 2021Tags: #writing #notes #asides
- Go: Generics
Created: December 15, 2021Tags: #go #generics
- Shell: Short one line Bash if else statement
Created: December 14, 2021Tags: #bash #shell #if #conditional
- Python: progress bar
Created: December 8, 2021Tags: #python #python3 #ansi #escape #progress
- Git: stage hunks for untracked files in git
Created: December 8, 2021Tags: #git #patch #staged #untracked
- Python: download YouTube Videos
Created: December 8, 2021Tags: #python #python3 #pytube #youtube #download
- Go: cross platform subprocess
Created: November 25, 2021Tags: #go #windows #macos
- Bash: moreutils examples
Created: November 18, 2021Tags: #bash #moreutils #shell
- Go: sharing behaviours between individual structs and a base struct
Created: November 18, 2021Tags: #go #principles
- Shell: jq and yq examples
Created: November 15, 2021Tags: #jq #yq #shell #bash #json
- Go: recursive function
Created: November 15, 2021Tags: #go #recursive
- Go: form encoding with various packages
Created: November 2, 2021Tags: #go #serialization
- Go: Replace Makefile with Taskfile
Created: November 1, 2021Tags: #go #build
- Go: Cross Compile Binary
Created: October 22, 2021Tags: #go #compiler #build
- Go: Understanding AST parser
Created: October 18, 2021Tags: #AST
- Shell: autocomplete for your custom programs
Created: October 14, 2021Tags: #bash #shell #autocomplete
- Network: BGP Debugging Tools
Created: October 13, 2021Tags: #bgp #network
- Go: CLI progress spinner
Created: October 7, 2021Tags: #go #tty
- Go: Enums
Created: October 7, 2021Tags: #go
- git: --theirs and --ours
Created: October 7, 2021Tags: #git #rebase #merge
- Design: nice fonts
Created: October 6, 2021Tags: #fonts
- JS: streaming server response
Created: October 6, 2021Tags: #js #javascript #stream
- Go: unzip(.zip) and untar(.tar.gz) contents of archive to specified destination
Created: October 6, 2021Tags: #go
- Go: Custom Error Log Abstraction
Created: October 6, 2021Tags: #go #errors #logs
- Zig: Install LSP
Created: October 5, 2021Tags: #lsp #zig #zls
- Compiler: Understanding linker files
Created: October 5, 2021Tags: #system #c #compiler #linker
- GPG: Fixing GPG and Agent Errors
Created: October 1, 2021Tags: #gpg #gpgagent #agent #pass
- Go: text indenting
Created: September 24, 2021Tags: #go #tty
- Go: Complex mapstructure example
Created: September 22, 2021Tags: #go #serialization
- Security: Confidentiality, Integrity, Availability, and the Factors of Authentication
Created: September 21, 2021Tags: #security #confidentiality #integrity #availability
- Git: restore and switch to replace git checkout
Created: September 3, 2021Tags: #git
- Vim: search multiple lines with line breaks using PCRE_DOTALL mode
Created: September 2, 2021Tags: #silversearcher #ag #ack #grep #PCRE #regex #vim #lookahead #ripgrep
- Vim: Tips
Created: September 2, 2021Tags: #vim #tips #tricks
- Rust: setup toolchain environment
Created: August 17, 2021Tags: #rust #rustlang #environment #overrides #toolchain
- Go: mocking multiple stdin prompts
Created: August 6, 2021Tags: #go #tty
- Shell: xarg examples
Created: August 4, 2021Tags: #xargs #bash #shell
- Go: difference between URL host and Request Header Host
Created: July 29, 2021Tags: #go #http
- Vim: word motion to be camelcase sensitive
Created: July 27, 2021Tags: #vim #viml
- Go: API JSON with empy vs null fields issues
Created: June 23, 2021Tags: #go #json #api
- Writing: kbd vs code vs pre vs samp
Created: June 22, 2021Tags: #kbd #markup #render #code
- PHP: setup Composer with local code
Created: June 10, 2021Tags: #php #composer #local
- Go: type asserting/coercing
Created: June 8, 2021Tags: #go
- Go: embed static file inside of compiled binary
Created: June 2, 2021Tags: #go
- Go: custom http client
Created: June 2, 2021Tags: #go #http #dns
- Git: multiple branches
Created: June 2, 2021Tags: #git
- Go: nested struct embedding
Created: May 25, 2021Tags: #go
- Go: reverse slice loop
Created: May 25, 2021Tags: #go
- Python: Run Python tests using -m
Created: May 24, 2021
- Vim: filter quickfix/location list results
Created: May 20, 2021Tags: #vim #filter #quickfix #locationlist
- Vim: programming autocomplete with no plugins
Created: May 19, 2021Tags: #vim #autocomplete
- Go: Useful tools to run over your project
Created: May 17, 2021Tags: #go #linting
- API vs ABI
Created: May 11, 2021Tags: #API #ABI
- Fastly: Terraform CLI with Terraform
Created: May 7, 2021Tags: #fastly #cli #terraform #wasm
- Organizational Values
Created: May 7, 2021Tags: #values
- The Benefits of Diversity
Created: May 6, 2021Tags: #diversity
- Go: Style Guide
Created: April 28, 2021Tags: #go #guides
- Docker: Dockerised Fastly CLI
Created: April 23, 2021Tags: #docker #fastly #cli #shasum #awk #regex #rust
- Yaml: merge key and reference pointer
Created: April 20, 2021Tags: #yaml #syntax #dereference #pointer #merge
- Go: TOML Examples with custom Marshaller
Created: April 20, 2021Tags: #go #serialization
- Go: panic vs os.Exit
Created: April 19, 2021Tags: #go #guides
- Terraform: ignore_changes
Created: April 15, 2021Tags: #terraform #tf
- Go: Install the Go programming language (with multiple versions + installing binaries)
Created: April 14, 2021Tags: #go #install
- Go: signal handling SIGINT/SIGTERM of a subprocess
Created: April 13, 2021Tags: #go
- Go: handle long running process
Created: April 13, 2021Tags: #go
- Go: new vs make
Created: April 8, 2021Tags: #go #performance
- Go: prepend line to stop of a file that uses toml marshal
Created: April 8, 2021Tags: #go #serialization
- Go: Application Design
Created: April 7, 2021Tags: #go #guide
- Go: syntax differences with Rust
Created: March 31, 2021Tags: #go #rust
- S3: backend for Terraform
Created: March 31, 2021Tags: #terraform #s3
- Vim: replace document quotations with monospace equivalent
Created: March 30, 2021Tags: #vim #quotes #monospace #substitution
- Fastly: Terraform Workspace example
Created: March 30, 2021Tags: #fastly #terraform #hcl #workspace
- Fastly: Terraform Multiple Environments using Modules
Created: March 30, 2021Tags: #terraform #environments #hcl #fastly
- Go: compile Rust program via shell to Cargo
Created: March 30, 2021Tags: #go #rust #compiler
- Rust: Print the type of a reference
Created: March 28, 2021Tags: #rust #type #reflection
- Terraform: Modules for structuring your resources
Created: March 26, 2021Tags: #terraform #modules #fastly
- Shell: Repeat a single character N times
Created: March 25, 2021Tags: #bash #shell #repeat
- Terraform: Fastly C@E Service
Created: March 24, 2021Tags: #terraform #fastly #compute #serverless #edge
- Rust: Ownership, Borrowing, Lifetimes
Created: March 23, 2021Tags: #rust #rustlang #ownership #memory
- Memory: The Stack and the Heap
Created: March 22, 2021Tags: #stack #heap #memory
- Go: custom Unmarshal using json.RawMessage
Created: March 19, 2021Tags: #go #json #serialization
- Go: remove line from file
Created: March 19, 2021Tags: #go
- Go: custom toml unmarshal wrapper for string to int
Created: March 10, 2021Tags: #go #serialization
- Network: Quick Fastly Logging Endpoint in Terminal
Created: March 9, 2021Tags: #fastly #logging #terminal #shell #ngrok #netcat
- Terraform: Modules
Created: March 3, 2021Tags: #terraform #tf #modules
- Terraform: Fastly Service]
Created: March 3, 2021Tags: #fastly #terraform
- Go: Code Generation
Created: February 25, 2021Tags: #go
- Go: Debugging with Delve
Created: February 23, 2021Tags: #go #debugging
- Vim: Display number of windows, buffers, tabs
Created: February 16, 2021Tags: #vim #display #count #windows #buffers #tabs
- API: OpenAPI Generator
Created: February 9, 2021Tags: #openapi #api #generator
- Vim: pretty print json
Created: February 5, 2021Tags: #vim #json #pretty #print
- Terraform: Provider Local Dev Environment
Created: February 4, 2021Tags: #terraform #tf #local #dev #environment
- Go: manage external tools via go modules
Created: February 2, 2021Tags: #go #dependencies
- CI: Github Action Workflow Example
Created: February 1, 2021Tags: #github #git #actions #workflows
- Go: defer with os.Exit(N)
Created: January 29, 2021Tags: #go
- Go: Make directory if it does not exist
Created: January 28, 2021Tags: #go
- Shell: rename multiple files extension
Created: January 25, 2021Tags: #bash #rename #extension
- Go: development tools as dependencies
Created: January 25, 2021Tags: #go #dependencies
- Terraform: what should and shouldn't be there
Created: January 13, 2021Tags: #tf #terraform #fastly
- Vim: search and replace content using native vim cdo and cfdo commands
Created: January 5, 2021Tags: #vim #replace #macro #quickfix
- Go: Deleting go package tagged versions from pkg.go.dev
Created: January 4, 2021Tags: #go
- Go: Developing local golang module
Created: December 30, 2020Tags: #go #dependencies
- Terminal: Colors
Created: December 16, 2020Tags: #terminal #colors
- Make: environment variables and passing values to make target
Created: December 11, 2020Tags: #make #makefile #args #env #vars
- Shell: Google Doc Code Syntax Highlighting
Created: November 20, 2020Tags: #google #doc #code #syntax #brew #highlight
- Go: Populate or update pkg.go.dev with new package
Created: November 18, 2020Tags: #go #dependencies
- Security: Encryption, Hashing, Signatures
Created: November 12, 2020Tags: #security #sec #encryption #hash #signatures #hmac
- Ruby: RVM
Created: November 11, 2020Tags: #ruby #rvm
- CLI: terminology and design guidelines
Created: November 11, 2020Tags: #cli #terminology #flags #arguments #args #options #design #guidelines #clap
- GPG: Github Commit Signing Key
Created: November 3, 2020Tags: #gpg #github #commit #sign #key
- Rust: Book Examples
Created: November 2, 2020Tags: #rust #rng
- GPG: Export Private Key
Created: October 27, 2020Tags: #gpg #private #key #export #backup
- Laptop: Configuration Summary
Created: October 11, 2020Tags: #new #laptop #configuration #macos
- CRDT: conflict-free replicated data type
Created: October 2, 2020Tags: #crdt #distributed
- Python: install package directly for the interpreter Vim is using
Created: October 2, 2020Tags: #vim #python
- Shell: Curl to JSON
Created: October 2, 2020Tags: #curl #bash #shell #json
- Python: tornado logging when request has completed
Created: September 25, 2020Tags: #python #logs
- Python: Asyncio built-in Socket Server
Created: September 25, 2020Tags: #python #python3 #asyncio #server #socket #web #http
- Python: Context and ContextVars
Created: September 25, 2020Tags: #python #python3 #context #contextvars
- Go: Named Return Zero Value
Created: September 23, 2020Tags: #go
- Videos: YouTube 'Watch' Channels
Created: September 21, 2020Tags: #youtube #watches
- Go: Module Versioning
Created: September 21, 2020Tags: #go #dependencies
- macOS: System Information
Created: September 18, 2020Tags: #macos #system #information #shell #bash
- Git: Revision Range
Created: September 16, 2020Tags: #git #revision #range
- Go: Running Benchmarks
Created: September 16, 2020Tags: #go #performance
- Reviews: Self Review Bullet List
Created: September 10, 2020Tags: #work #buzzfeed #process #reviews
- Go: Pointers - Guidelines
Created: September 9, 2020Tags: #go #guide
- Shell: Multiple searches via abstraction and grep
Created: September 8, 2020Tags: #bash #shell #grep #search #ag #silversearcher
- Docker: jump into running container
Created: September 7, 2020Tags: #docker #container #running #interactive #debugging
- Go: Sorting
Created: September 4, 2020Tags: #go
- Go: test command usage
Created: September 4, 2020Tags: #go #tests
- Go: 'Application' and 'Workspace' Directory Structure
Created: September 4, 2020Tags: #go #project
- Go: Custom Vegeta Attack
Created: September 3, 2020Tags: #go #performance
- Work: Onboarding Best Practices
Created: September 3, 2020Tags: #onboarding #work #interviews
- Security: Path Traversal
Created: September 2, 2020Tags: #security #hack #pentesting #traversal #path #encoding
- CLI Diff Tools
Created: September 2, 2020Tags: #shell
- Better Terraform Diff
Created: September 2, 2020Tags: #shell #iac
- Datadog Terraform - Import Existing Resource
Created: September 1, 2020Tags: #iac
- Mock HTTP Response via RoundTripper interface
Created: August 30, 2020Tags: #go #http
- Convert a Map to a Struct
Created: August 28, 2020Tags: #go #serialization
- Ex-mode Automation
Created: August 25, 2020Tags: #shell #vim
- HTTP routing in Go
Created: August 21, 2020Tags: #go #http
- Walk different types via reflection
Created: August 21, 2020Tags: #go
- Functional Programming Map
Created: August 20, 2020Tags: #go
- Fastly Terraform Import
Created: August 20, 2020Tags: #iac
- Extract mp4 from m3u8
Created: August 18, 2020Tags: #ffmpeg #shell
- Generic Status Handler Abstraction
Created: August 17, 2020Tags: #go #http
- Interface Value vs Interface Type
Created: August 13, 2020Tags: #go
- Pointer Dereferencing
Created: August 13, 2020Tags: #go
- Stack and Queue Implementation
Created: August 12, 2020Tags: #go
- Dynamically Create Struct
Created: August 6, 2020Tags: #go
- Datadog Structured Logging Abstraction with Logrus
Created: August 4, 2020Tags: #go #logs
- json.Decoder vs json.Unmarshal
Created: July 30, 2020Tags: #go #json #serialization
- Writing a HTTP Response
Created: July 30, 2020Tags: #go #http
- Module Error: malformed module path ... missing dot in first path element
Created: July 29, 2020Tags: #go
- Embed empty interface{} into explicit struct and then reflect the containing struct
Created: July 28, 2020Tags: #go
- Merge two structs
Created: July 27, 2020Tags: #go
- Comparison Matrix Table Properties
Created: July 17, 2020Tags: #project
- Closure Example
Created: July 17, 2020Tags: #go
- IP Transit
Created: July 17, 2020Tags: #network
- Simple Log Example with Configuration Overrides
Created: July 15, 2020Tags: #go #logs
- Valid URL Paths
Created: July 14, 2020Tags: #http #rfc
- Simple XHR function
Created: July 10, 2020Tags: #js
- Fuzz Testing
Created: June 22, 2020Tags: #go
- Compile Curl
Created: June 18, 2020Tags: #shell
- NSQ Questions
Created: June 17, 2020Tags: #queues
- Copying Files and Directories
Created: June 15, 2020Tags: #shell
- Go: return a sample (random bool) based on percentage
Created: June 11, 2020Tags: #go
- Virtual Environment with venv
Created: June 4, 2020Tags: #python
- Enum Example
Created: June 3, 2020Tags: #python
- Logging Message Format
Created: May 13, 2020Tags: #logs
- Searching files and contents
Created: May 7, 2020Tags: #vim
- Integer precision accuracy vs float
Created: April 27, 2020Tags: #go
- gnu sed alternation
Created: April 22, 2020Tags: #shell
- argparse cli flag examples
Created: April 19, 2020Tags: #python
- Datadog Python API
Created: April 8, 2020Tags: #python
- Coroutine comparison functions
Created: April 3, 2020Tags: #python
- Function Timer Decorator
Created: April 3, 2020Tags: #python
- run a macro multiple times
Created: April 2, 2020Tags: #vim
- use control key in norm Ex command
Created: April 2, 2020Tags: #vim
- Search, filter, cut, sort and get uniques + tee contents
Created: April 2, 2020Tags: #shell
- sed replace content across multiple files
Created: March 31, 2020Tags: #shell
- Pretty Print Dictionary
Created: March 25, 2020Tags: #python
- GitHub Open-Source Pull Request Flow
Created: March 23, 2020Tags: #git #github
- IO Packages
Created: March 18, 2020Tags: #go
- Simple retry logic for HTTP request
Created: March 13, 2020Tags: #go #http
- Don't follow 301 redirect
Created: March 13, 2020Tags: #go #http
- CPU Speed
Created: March 6, 2020
- linefeed and carriage return
Created: March 6, 2020Tags: #vim
- Redis Install and Examples
Created: March 5, 2020Tags: #shell
- Simple Fastly CDN Rate Limiting Logic using Vary behaviour for cacheable GET requests
Created: March 5, 2020Tags: #fastly #cdn
- Type check object is an instance of a specific struct
Created: February 28, 2020Tags: #go
- Context package
Created: February 27, 2020Tags: #go
- Runtime Profiler
Created: February 27, 2020Tags: #go #performance
- Go: Logrus JSON Example
Created: February 21, 2020Tags: #go #json #logs
- [AWS Active-Active Patterns Presentation (link to PDF)]
Created: February 14, 2020Tags: #aws #pdf #presentation #resilience #multiregion #activeactive #pattern #ha #availability
- [Golang Struct and Interface Embedding Examples]
Created: February 13, 2020Tags: #go #golang #struct #embedding #embed
- [nginx rate limiting is weird]
Created: February 12, 2020Tags: #nginx #ratelimit
- [Golang io.Pipe and io.TeeReader combined]
Created: February 12, 2020Tags: #go #golang #io #pipe #tee #reader #writer
- [Golang Gzip]
Created: February 11, 2020Tags: #golang #go #gzip #proxy
- [Python Boto3 S3 Example]
Created: February 5, 2020Tags: #python3 #boto3 #aws #s3
- [ADR Architecture Decision Record]
Created: February 5, 2020Tags: #architecture #decision #record #adr
- [File Permissions with Octal Notation Explanation]
Created: February 5, 2020Tags: #file #permissions #octal
- [Markdown syntax for links in bottom of document]
Created: February 4, 2020Tags: #markdown #links #reference
- [Python Atomic Counter]
Created: January 31, 2020Tags: #python3 #concurrency #threadsafe #lock #atomic #counter
- [Tornado configure AsyncHTTPClient to use Curl]
Created: January 29, 2020Tags: #python3 #tornado #configure #async #httpclient #curl #libcurl
- [Parsing HTML with Python standard library]
Created: January 28, 2020Tags: #python3 #html #parse #ast
- [Check Python Tornado version]
Created: January 27, 2020Tags: #python3 #tornado #version
- [Create a simple Pip Python Repository]
Created: January 27, 2020Tags: #python3 #pip #repository #pypi
- [Vim arg list and Search Replacement]
Created: January 17, 2020Tags: #vim #search #replace #args #case #lower #upper
- [High Availability Content and Resilient Systems with Redundancy]
Created: January 13, 2020Tags: #availability #resilience #tolerance #redundancy
- [CHANGELOG]
Created: January 9, 2020Tags: #changelog
- [Vim highlighting words]
Created: January 9, 2020Tags: #vim #highlight #code #comments
- [Go channel closing]
Created: January 9, 2020Tags: #go #golang #channel #close
- [Golang change function signature without breaking existing consumers]
Created: January 7, 2020Tags: #go #golang #default #variadic #interface #api
- [Python Print Parent Class]
Created: January 7, 2020Tags: #python #class #hierarchy
- [Flake8 Import Order]
Created: January 6, 2020Tags: #python #flake8 #import #order
- [Python Comprehensions]
Created: December 28, 2019Tags: #python3 #comprehensions
- [CPU bound vs I/O bound]
Created: December 24, 2019Tags: #cpu #io #bound
- [Golang Reduce Function Signature with Struct]
Created: December 18, 2019Tags: #go #golang #struct #options #arguments #parameters #function #signature
- [Good Naming Strategy]
Created: December 18, 2019Tags: #documentation #docs #guides #tutorials #reference #explanation #writing #naming #go #golang
- [How to write an introduction well Inbox]
Created: December 18, 2019Tags: #documentation #docs #guides #tutorials #reference #explanation #writing
- [Golang Custom Error Abstraction]
Created: December 18, 2019Tags: #go #golang #error #errorhandling #abstraction
- [Types of Documentation]
Created: December 18, 2019Tags: #documentation #docs #guides #tutorials #reference #explanation
- [Python Tox Explanation]
Created: December 18, 2019Tags: #python #tox #testing
- [Python3 pass vs ...]
Created: December 13, 2019
- [Python Fastly API Edge Dictionary Example]
Created: December 6, 2019Tags: #python3 #fastly #api #edge #dictionary #example #cdn
- [Python CLI Example Boilerplate with dependency validation]
Created: December 6, 2019Tags: #python3 #cli #flags #example #boilerplate #validation #dependencies
- [git edit hunk]
Created: December 3, 2019Tags: #git #edit #hunk #patch #diff
- [Bash find git repo root]
Created: December 2, 2019Tags: #bash #git #repo #root
- [Python standard library HTTP request example]
Created: November 26, 2019Tags: #python3 #standard #library #stdlib #http #client #request
- [Python3 Virtual Environment with Pyenv]
Created: November 21, 2019Tags: #python3 #pip #deps #dependencies #venv #virtualenvironment #env #tfswitch #tf #terraform
- [Fastly Varnish Serve Stale Testing]
Created: November 20, 2019Tags: #fastly #varnish #vcl #cdn #cache #stale #stale-while-revalidate #stale-if-error
- [Python copy file with permissions + add additional perms]
Created: November 20, 2019Tags: #python3 #permissions #chmod
- [Python print python version information]
Created: November 19, 2019Tags: #python #script #shell #version
- [Continuous Integration vs Delivery]
Created: November 19, 2019Tags: #ci #cd #continous #integration #delivery
- [Bash default variable value for script arguments]
Created: November 18, 2019Tags: #bash #shell #scripting #cli #terminal #defaults
- [Python Tornado Initialization and Multi-Process Mode]
Created: November 18, 2019Tags: #python #tornado #parallelization #multi-process #processes #cpu
- [Python Tornado Graceful Shutdown]
Created: November 13, 2019Tags: #python #python3 #tornado #graceful #shutdown #signals #sigterm #sigint
- [Golang Fastly Purge by URL and by Key]
Created: November 6, 2019Tags: #fastly #go #golang #purge #cdn #cache
- [Golang convert code into Assembly]
Created: November 6, 2019Tags: #assembly #go #golang
- [Security: Zero Trust Platform]
Created: November 6, 2019Tags: #security #zerotrust #zero #trust #platform
- [Golang HTTP Web Server Parallel Tee Goroutine per Request]
Created: November 4, 2019Tags: #go #golang #tee #parallel #http #web #server #request #pool #concurrency
- [Fakes vs Stubs vs Mocks]
Created: October 24, 2019Tags: #fakes #stubs #mocks #testing
- [Bash string wildcard glob conains example]
Created: October 16, 2019Tags: #bash #wildcard #glob #contains
- [Bash Hash Bang]
Created: October 16, 2019Tags: #bash #hash #bang
- [Fastly Clustering and Shielding Example]
Created: October 15, 2019Tags: #fastly #varnish #vcl #clustering #shielding #cluster #shield
- [Develop Streamlink Locally]
Created: October 5, 2019Tags: #streamlink #video #download #stream
- [SQL get unique values using BigQuery]
Created: October 2, 2019Tags: #bigquery #google #data #sql #unique
- [Golang http.Request.Context]
Created: September 9, 2019Tags: #go #golang #http #request #context
- [Curl Redirect Output and Grep]
Created: September 9, 2019Tags: #curl #redirect #stdout #grep
- [Safe Tech Terminology]
Created: September 9, 2019Tags: #safe #terminology #tech
- [Example System Contract for Caching Behaviours]
Created: August 16, 2019Tags: #system #contract #architecture #design #interface #SLA #fastly #cdn
- [Go embedding interface types]
Created: August 15, 2019Tags: #go #golang #interface #struct #field #type #assertion #embed #override #template #pattern
- [Golang Read HTTP Response Body TWICE!]
Created: August 13, 2019Tags: #go #golang #http #response #body #read
- [golang avoid promoted field in literal struct error]
Created: August 13, 2019Tags: #go #golang #struct #promoted #field #error
- [fastly default vcl, no custom vcl]
Created: August 6, 2019Tags: #fastly #varnish #vcl
- [ffmpeg examples]
Created: August 5, 2019Tags: #ffmpeg #crop #video #concat #split #resize
- [Go Access Underlying Slice Array]
Created: July 30, 2019Tags: #go #golang #slice #array #unsafe #reflect #header
- [Go Array Element Removal]
Created: July 30, 2019Tags: #go #golang #array #slice #splice #remove #element #item
- [Go Time Formating + Conversions and Comparisons + Stale]
Created: July 29, 2019Tags: #go #golang #time #formatting #layout #comparison #conversion #stale
- [vim open multiple files from a grep/sift search]
Created: July 24, 2019Tags: #vim #open #files #multiple #sift #grep #replace #search
- [Golang Array and Slices]
Created: July 19, 2019Tags: #go #golang #slice #slices #array #internal #pointers
- [Git Commit Frequency]
Created: July 18, 2019Tags: #git #commit #frequency #bash #perl
- [BGP IP Hijack]
Created: July 17, 2019Tags: #bgp #route #routing #as #autonomous #systems #network #networking #internet
- [golang cidr ip inspection]
Created: July 16, 2019Tags: #cidr #ip #network #go #golang
- [transmission torrent alias]
Created: July 15, 2019Tags: #transmission #torrent
- [dev deployment workflow process]
Created: July 14, 2019Tags: #workflow #process #deployment #ci #cd
- [transmission torrent tracker add script]
Created: July 6, 2019Tags: #tracker #torrent #client #transmission #bash #cli
- [go struct with mutex to encapsulate data from users and help hide required lock implementation]
Created: June 27, 2019Tags: #go #golang #struct #mutex #concurrency #encapsulation
- [Go Test Mocking Package Function]
Created: June 27, 2019Tags: #go #golang #mock #stub #testing #unittests #test
- [Deployment Types]
Created: June 20, 2019Tags: #deploy #rollout #types #deployment #bluegreen #canary
- [Python Auto-Formatter]
Created: June 14, 2019Tags: #autopep8 #black #python #format
- [Go Range List and Goroutine Async Processing with Errors]
Created: June 11, 2019Tags: #go #golang #concurrency #goroutines #thread #map
- [Golang Range and Binary Search]
Created: June 5, 2019Tags: #binarysearch #search #sort #go #golang #range
- [Golang ReverseProxy]
Created: May 21, 2019Tags: #go #golang #reverseproxy
- [How Vary HTTP header works]
Created: May 14, 2019Tags: #fastly #vcl #cdn #vary
- [Go Unit Table Test Example]
Created: May 9, 2019Tags: #go #golang #tests #testing #unittest #parallel #async #table #matrix
- [AWS Security Group Rule - Ingress vs Egress]
Created: May 9, 2019Tags: #aws #security #sg #sgr #rule
- [Python Poetry]
Created: May 7, 2019Tags: #python3 #poetry
- [Python3 Stream Server]
Created: May 7, 2019Tags: #python3 #asyncio #stream #server
- CDN Logs Sampling Rates
Created: April 26, 2019Tags: #cdn #logs #maths #performance #costs
- [Symlinking]
Created: April 23, 2019Tags: #terminal #command #symlink
- [Fastly Create Users + API tokens for Auditing purposes]
Created: April 16, 2019Tags: #fastly #cli #auth #api
- [Fastly VCL Multiplication]
Created: April 16, 2019Tags: #fastly #vcl #cdn #multiplication
- [Bash script with dynamic values for inputs using Expect]
Created: April 11, 2019Tags: #bash #shell #expect #dynamic #script #input #password
- Python: AWS Lambda sending S3 Fastly streamed logs to Datadog
Created: April 11, 2019Tags: #aws #python #logs
- [Backup Private GPG Key]
Created: April 9, 2019Tags: #gpg #backup #private #key
- [Lightline Status Line Tweaks]
Created: April 8, 2019Tags: #vim #lightline #powerline #statusline
- [Vim Highlight Current Line]
Created: April 8, 2019Tags: #vim #highlight #line
- [Vim open current line in GitHub UI]
Created: April 8, 2019Tags: #github #git #vim
- [Lazy Load NVM]
Created: April 8, 2019Tags: #lazy #load #nvm #node
- [Generate unique ID - UID]
Created: April 8, 2019Tags: #generate #unique #id #uid #uuid #uuidgen
- [Generate SSH Key]
Created: April 8, 2019Tags: #generate #ssh #key
- [Docker Cleanup Remove Prune]
Created: April 8, 2019Tags: #docker #remove #cleanup #prune
- [Simple Vim TODO list]
Created: April 8, 2019Tags: #vim #gtd #todo
- [Bash Print All Alias']
Created: April 8, 2019Tags: #bash #alias #list
- [Python -m cli flag]
Created: April 3, 2019Tags: #python #cli #flag
- [AWS Athena SQL]
Created: April 2, 2019Tags: #aws #athena #s3 #sql
- Fastly JSON Logging
Created: April 2, 2019Tags: #fastly #cdn #logs #json
- [Python VirtualEnv Dockerized]
Created: April 1, 2019Tags: #python #virtualenv #docker #venv
- [Fastly Purge with Python]
Created: March 26, 2019Tags: #python #tornado #cli #purge #cache #fastly #cdn
- [Golang Line Counter Alternative]
Created: March 8, 2019Tags: #go #golang #line #counter
- [Python Security Hashing]
Created: March 6, 2019Tags: #python #security #hashing #hash
- [Business Success]
Created: March 1, 2019Tags: #business #product #focus #priority #success
- [Calculating BigO]
Created: February 27, 2019Tags: #bigo #algorithms #analysis
- [Partial Application in Golang]
Created: February 26, 2019Tags: #go #golang #fp #partialapplication
- [Simple Tornado]
Created: February 26, 2019Tags: #python #python3 #tornado #example #basic #simple
- [Single Sign-On SSO]
Created: February 22, 2019Tags: #sso #singlesignon #auth #multipledomains #aws
- [Golang Design Patterns]
Created: February 22, 2019Tags: #go #golang #design
- [Python Exception Handling Guidelines]
Created: February 20, 2019Tags: #python #exceptions #design #guidelines
- [Golang Print over last line - like a counter]
Created: February 20, 2019Tags: #go #golang #counter #inplace #print
- [Set same cookie on multiple domains]
Created: February 18, 2019Tags: #cookie #multiple #domains
- [Golang Pretty Print]
Created: February 6, 2019Tags: #go #golang #prettyprint
- [Python Internals]
Created: January 29, 2019Tags: #python #internals
- [Rollout strategies for large code changes]
Created: January 7, 2019Tags: #rollout #strategy #plans #strangler #pattern
- [Sed Replace Pattern with File Contents]
Created: December 25, 2018Tags: #sed #bash #replace
- [Vim handling stdin]
Created: December 22, 2018Tags: #vim #stdin
- [Vim Directory Structure, Start-up and Debugging]
Created: December 22, 2018Tags: #vim #directory #structure #startup #debugging #debug
- [Vim Arg List and Searching]
Created: December 19, 2018Tags: #vim #vimgrep #arglist #search #regex
- [Python TTL Cache Decorator]
Created: November 25, 2018Tags: #python #decorator #async #ttl #cache
- [Python String Formatting]
Created: November 22, 2018Tags: #python #string #formatting
- [Python Tornado UVLoop]
Created: November 16, 2018Tags: #python #tornado #uvloop
- [Python pytest]
Created: November 16, 2018Tags: #pytest
- [Go Modules]
Created: November 16, 2018Tags: #go #golang #modules #dependencies #vendoring
- [Python Interfaces via Protocols and Abstract Base Classes (with Metaclasses)]
Created: November 13, 2018Tags: #python #interfaces #protocols #design #collections #abc #iterator #sized #metaclasses #abstract
- [Avoid Negative Language]
Created: November 13, 2018Tags: #language #negative #avoid
- [Python API Design]
Created: November 12, 2018Tags: #api #design #python
- [Python algorithm to generate single list]
Created: November 7, 2018Tags: #algorithm #python
- [Python Named Tuples Default Values]
Created: November 1, 2018Tags: #python #defaults #namedtuple
- [Python Mocking]
Created: October 30, 2018Tags: #python #mocking #mocks #tornado
- [Python Tornado Queue]
Created: October 29, 2018Tags: #python #tornado #queue
- [Python Custom Iterator]
Created: October 25, 2018Tags: #python #iterator
- [Go Guru and Vim-Go]
Created: October 16, 2018Tags: #go #golang #guru #interfaces #vim #vim-go
- [Vim Regex]
Created: October 15, 2018Tags: #vim #regex #lookaround #assertions
- [Bash loop files in a directory and check their types]
Created: October 14, 2018Tags: #bash #directory #file #search
- [Golang Long and Short Flags]
Created: October 3, 2018Tags: #go #golang #flags
- Python: Dynamic Log Levels via Abstraction
Created: September 27, 2018Tags: #python #logs
- GitHub: Collapsible Drop Down Menus
Created: September 25, 2018Tags: #GitHub #Collapsible #DropDown #Menus
- [Python Tornado Generic Exception Handling]
Created: September 24, 2018Tags: #python #tornado #exceptions #handling
- [Python Decorator Order]
Created: September 24, 2018Tags: #python #decorator #order
- [Modern JS]
Created: September 24, 2018Tags: #javascript #js #modern #tools #transpilers #babel #webpack
- [Fastly Edge Dictionaries API Examples]
Created: September 14, 2018Tags: #fastly #api #cdn #edge #dictionaries #bash #shell
- [Python Tornado Header Authorization Check]
Created: September 6, 2018Tags: #python #tornado #authorization #access
- [Python Generic Exception Logging]
Created: September 4, 2018Tags: #python #exceptions #error #logging
- [Python Get Function Name Dynamically At Runtime]
Created: September 4, 2018Tags: #python #inspect #stack
- [API Documentation Example]
Created: September 4, 2018Tags: #API #documentation
- [Python Exception Handling Attributes]
Created: August 31, 2018Tags: #python #exceptions
- [SLI, SLO, SLA]
Created: August 6, 2018Tags: #SLI #SLO #SLA #Process #Service
- [Build Go from source]
Created: August 3, 2018Tags: #go #golang #compile #source
- [APT Search for Packages using Cache command]
Created: July 31, 2018Tags: #apt #cache #packages #search
- [Compile NGINX from source, including its dependencies]
Created: July 30, 2018Tags: #nginx #open-source #compile #build
- [Sed Ignore Lines]
Created: July 30, 2018Tags: #sed #ignore #regex #patterns
- [Python Tornado Decorator with arguments]
Created: July 20, 2018Tags: #python #decorator #tornado #dict #compare
- [Distributed Tracing]
Created: July 19, 2018Tags: #distributed #tracing
- [Memory Sharing]
Created: July 19, 2018Tags: #python #rss #resident #virtual #memory
- [Mature Engineers]
Created: July 18, 2018Tags: #mature #senior #developer #qualities #engineer
- [Convert synchronous external Python code into asynchronous code]
Created: July 13, 2018Tags: #python #tornado #sync #async #requests #urllib
- [Calculate cost of electrical appliances]
Created: July 7, 2018Tags: #electrics #cost #money #calculate #home
- [Tornado AsyncHTTPClient POST form params example]
Created: July 3, 2018Tags: #python #tornado #post #httpclient #asynchttpclient
- [URI Regex]
Created: July 2, 2018Tags: #regex
- [Python Boto Exception Handling]
Created: June 21, 2018Tags: #boto #boto3 #python #cognito #aws
- Homebrew: Formula Example
Created: June 18, 2018Tags: #homebrew #package
- [Basic `tree` command written in Go]
Created: June 15, 2018Tags: #go #golang #tree
- [Memorize Days in the Month]
Created: June 14, 2018Tags: #month #day #calendar
- [Bash remove whitelist]
Created: June 12, 2018Tags: #bash #remove #whitelist
- [Python Lambda]
Created: June 12, 2018Tags: #aws #lambda #makefile #python #cognito
- [Vim substitution examples]
Created: June 7, 2018Tags: #vim #substitution #replace #global #viml #forloop #vimscript
- [Python Multiple Characters String Replacement]
Created: June 7, 2018Tags: #python #replacement #string #translate
- [Tornado AsyncHTTPClient - No Web Server]
Created: June 7, 2018Tags: #python #pipenv #tornado #async #concurrency #httpclient #asynchttpclient #tox #ini #basicauth #auth
- [Tiny Docker Builds]
Created: May 24, 2018Tags: #go #golang #docker #build
- [Go Server Boilerplate]
Created: May 24, 2018Tags: #go #golang #server #http #boilerplate #project #middleware
- [Project Management]
Created: May 24, 2018Tags: #management #process #project #pm
- [Python's Pipenv]
Created: May 23, 2018Tags: #python #pip #pipenv #virtualenv
- [Python Warrant Cognito]
Created: May 10, 2018Tags: #python #cognito
- [Python Cookies]
Created: May 10, 2018Tags: #python #cookies
- [Fastly VCL Boilerplate for handling mutliple subdomains]
Created: May 4, 2018Tags: #fastly #vcl #boilerplate
- [AWS Amplify Tips]
Created: May 1, 2018Tags: #aws #amplify #cognito #js #javascript
- [React JS]
Created: May 1, 2018Tags: #js #javascript #react
- [ElasticSearch]
Created: April 30, 2018Tags: #elasticsearch
- [Dockerize Node]
Created: April 30, 2018Tags: #docker #node
- [Python Type Hinting MyPy]
Created: April 25, 2018Tags: #mypy #python #types #hinting
- [Simple Math and Notation]
Created: April 9, 2018Tags: #math #number #notation #decimal #point #metric #prefix
- [Golang Prevent Directory Listing with Static FileServer]
Created: April 3, 2018Tags: #static #fileserver #go #golang
- [Python timestamp to epoch and back, inc. UTC timezone]
Created: April 3, 2018Tags: #python #timezone #timestamp #epoch #utc
- [Topics to discuss with a new employer]
Created: April 3, 2018Tags: #jobs #culture #questions
- [Go Standard Lib HTTP Routing]
Created: March 28, 2018Tags: #go #golang #http #routing #mux #http
- [Go Middleware]
Created: March 27, 2018Tags: #golang #go #middleware
- [Security Tools]
Created: March 26, 2018Tags: #security #pentesting
- [Grammar]
Created: March 26, 2018Tags: #grammar #english #language
- [Maths: variations/possible combinations]
Created: March 20, 2018Tags: #math #factorials #exponents #power #raise
- [SDK and API]
Created: March 19, 2018Tags: #sdk #api
- [GPN: Ganners Pipe Notation]
Created: March 19, 2018Tags: #GPN #design #architecture #systems
- [Varnish VCL Basic Authentication]
Created: March 16, 2018Tags: #security #basicauth #authentication #vcl #varnish #fastly #cdn
- [Process Substitution]
Created: March 14, 2018Tags: #bash #process #substitution
- [Python Class Implementation of a Decorator]
Created: February 27, 2018Tags: #python #decorator #class
- [gpg agent connection refused]
Created: February 20, 2018Tags: #gpg
- [Sync Pool Golang]
Created: February 14, 2018Tags: #pool #concurrency #go #golang
- [Python Async Decorator]
Created: February 14, 2018Tags: #python #asyncio #decorator
- [Pip Python Workflow]
Created: February 12, 2018Tags: #pip #python #workflow
- [Python Tornado Basic Auth Middleware]
Created: February 9, 2018Tags: #auth #authentication #basicauth #python #tornado #POST
- [Replace macOS Terminal Emulator with GPU accelerated Alacritty]
Created: February 8, 2018Tags: #macOS #terminal #shell #alacritty
- [Monitor TCP traffic from NGINX]
Created: February 1, 2018Tags: #nginx #tcp #tcpdump
- [Jack The Ripper]
Created: January 28, 2018Tags: #quotes
- [encrypt file using a keyring]
Created: January 25, 2018Tags: #gpg #keyring
- [image quality reduction]
Created: January 25, 2018Tags: #bash #image #quality
- [Vim Automatic Bootstrap]
Created: January 14, 2018Tags: #vim #bootstrap #install
- [Sorting a Dictionary by Key]
Created: January 12, 2018Tags: #python #sort
- [Handling CSV files in Python]
Created: January 11, 2018Tags: #csv #python
- [Bracket Terminology]
Created: January 11, 2018Tags: #bracket #terminology #parentheses #braces
- [Calculate Percentages]
Created: January 5, 2018Tags: #math #percentage
- [Python Semaphore]
Created: January 5, 2018Tags: #python #concurrency #semaphore
- [Rollout Strategies with A/B logic via Varnish and VCL]
Created: January 5, 2018Tags: #rollout #vcl #cdn #varnish #fastly #ab
- [Multi Torrent Site Search]
Created: December 31, 2017Tags: #torrents #cli #shell #bash #python
- [SBI Framework]
Created: December 31, 2017Tags: #framework #reviews
- [DNS Change Best Practice]
Created: December 31, 2017Tags: #dns #ttl
- [GPG Security Best Practice]
Created: December 26, 2017Tags: #gpg #security #encryption
- [Extend expired GPG key]
Created: December 26, 2017Tags: #gpg #keys #encryption
- [website day/night theme switcher with cookies]
Created: December 19, 2017Tags: #js #javascript #cookies
- [Using Vim to format nginx file]
Created: December 13, 2017Tags: #vim #nginx
- [Dynamically import modules from a package in Python]
Created: December 8, 2017Tags: #python
- [nginx redirect request to separate server block with different server_name]
Created: December 7, 2017Tags: #nginx #rewrite #server
- [Set Operations]
Created: December 5, 2017Tags: #set #theory #operations #go #golang
- [Limit Concurrency]
Created: December 5, 2017Tags: #go #golang #concurrency #semaphore
- [Upstream vs Downstream]
Created: November 30, 2017Tags: #upstream #downstream
- [UTC, GMT, BST, DST]
Created: November 29, 2017Tags: #time #timezones
- Python: Analyse Logs and report top N common matches
Created: November 13, 2017Tags: #python #logs
- [Python Boolean Argument Flag]
Created: November 9, 2017Tags: #python #cli #flags
- [Fastly's Custom VCL]
Created: November 1, 2017Tags: #fastly #cdn #varnish #vcl
- [vim-plug load specific plugin]
Created: October 30, 2017Tags: #vim #plugin
- [varnish hit-for-pass explanation]
Created: October 27, 2017Tags: #varnish #vcl
- [Python CLI Flags for CDN purge]
Created: October 26, 2017Tags: #python #cli #flags #cdn #purge
- [Python mutate list content and return new list as they're immutable]
Created: October 24, 2017Tags: #python
- [Golang AWS S3 Examples]
Created: October 20, 2017Tags: #go #golang #aws #s3
- [Fastly to S3 with Query Params]
Created: October 19, 2017Tags: #fastly #vcl #varnish
- [Validate README format with Python]
Created: October 18, 2017Tags: #python
- [Golang Generator (Yield) like Python]
Created: October 16, 2017Tags: #go #golang #generator #yield
- [GitHub DNS Reverse Lookup]
Created: October 16, 2017Tags: #dns #domain #ip #lookup
- [Python Flame Graph with pyflame]
Created: October 15, 2017Tags: #pyflame #flame #graph #python
- [Go Loop Alphabet via Code Points]
Created: October 13, 2017Tags: #go #golang
- [awk search and sum columns]
Created: October 12, 2017Tags: #awk #search #sum
- [list and store every key in a bucket]
Created: October 5, 2017Tags: #aws #cli #s3 #bash #python
- [Vegeta + pdsh wrapper for distributed load testing]
Created: October 3, 2017Tags: #distributed #loadtest #performance #vegeta #golang #python
- [Golang Memory Allocation]
Created: September 21, 2017Tags: #go #golang #memory #allocation
- [Git Search logs via Grep]
Created: September 18, 2017Tags: #git #grep #search
- [Bash basic syntax checker]
Created: September 4, 2017Tags: #bash #shell
- [Bash Show All Builtin Commands.sh]
Created: September 4, 2017Tags: #bash #shell
- [Check TLS version using by Python]
Created: September 4, 2017Tags: #python #tls #ssl
- [Sed Date Insertion]
Created: September 4, 2017Tags: #sed #bash #date
- [Bash Date Formatting]
Created: September 4, 2017Tags: #bash #date #gnu #posix
- [AWS CloudFront Signed-Cookie Access]
Created: September 2, 2017Tags: #aws #cloudfront #cookie #planz
- [Perl Regex Bash Example]
Created: September 1, 2017Tags: #perl #regex #pcre
- [Python URL Validation]
Created: August 31, 2017Tags: #python #urls #validation
- Shell: list, download and extract S3 log files
Created: August 29, 2017Tags: #aws #logs #shell
- [Requests per hour, per docker container]
Created: August 29, 2017Tags: #docker #rps #performance
- [Hugo build script for User page]
Created: August 28, 2017Tags: #github #hugo #build
- [Python profiling context management]
Created: August 23, 2017Tags: #python #profiling #performance
- [Bash search find and filter, then execute]
Created: August 23, 2017Tags: #bash #find #filter #execute #grep #uniq #sort #search
- [Python Garbage Collection Circular References]
Created: August 19, 2017Tags: #python #gc #memory
- [RFC Example Structure]
Created: August 19, 2017Tags: #rfc #example
- [Bash Column Sort and Sum]
Created: August 10, 2017Tags: #bash #sort #sum #column
- [curl via US proxy]
Created: August 2, 2017Tags: #curl #proxy
- Shell: AWS S3 CLI - Logs
Created: August 2, 2017Tags: #aws #shell #logs
- [Large Number of JavaScript Cookies]
Created: August 1, 2017Tags: #cookie #js
- [Refresh OAuth Token] For non-UI apps
Created: July 13, 2017Tags: #golang #oauth
- [Calculate Aspect Ratio]
Created: June 29, 2017Tags: #aspect #ratio #python
- [Python regex replace with capture group]
Created: June 13, 2017Tags: #python #regex #replace #substring
- [Base64 JS Object] Allow for passing complex object to an iframe via Query String
Created: June 13, 2017Tags: #js #pickle #base64
- [Python timestamp handling]
Created: May 31, 2017Tags: #python #date #time
- [Search for package versions]
Created: May 11, 2017Tags: #tags: bash, apt, versions
- [Python VCR]
Created: May 5, 2017Tags: #tags: python, vcr, testing
- [Golang Reflection with Struct]
Created: April 29, 2017Tags: #go #golang #pointer #struct #reflection #iterate #fields
- [Golang CLI Flags and Subcommands]
Created: April 28, 2017Tags: #tags: golang, go, cli, flags, subcommands, logs, logging
- [Simple Bash File Watcher]
Created: April 27, 2017Tags: #tags: bash, watcher, polling
- [Python CPU and Memory Profiling Tools]
Created: April 26, 2017Tags: #tags: python, profiling, perf
- [Python method signature syntax] Along with functools.partial interaction
Created: April 25, 2017Tags: #tags: python, args, kwargs, partial
- [Go defer cleanup exit pattern]
Created: April 19, 2017Tags: #tags: go, golang, pattern, cleanup
- [Python Tornado Example Application]
Created: April 16, 2017Tags: #python #python3 #tornado #example #basic #simple
- [Python Decorator with optional arguments]
Created: April 16, 2017Tags: #tags: python, decorator
- [Go Interface Design]
Created: April 16, 2017Tags: #tags: go, interface
- [Python and Go Structured Logging]
Created: April 6, 2017Tags: #go #golang #python #logging #structured #logrus #structlog
- [vim debugging]
Created: April 6, 2017Tags: #vim #debugging
- [Increment parsed number within a pipeline sub shell] When you need the next available port number
Created: March 29, 2017Tags: #buzzfeed #bash
- [Python Auto Generate API Documentation] Python Auto Generate API Documentation
Created: March 23, 2017Tags: #tags: python, git, bash, make
- [Python3 Logging] Simple Python3 Logging Configuration
Created: March 17, 2017Tags: #logs #python
- [Python Auto Documentation Generation] Use pycco for generating documentation using docstrings from code files
Created: March 13, 2017Tags: #python #docs
- [Python State Machine] simple state machine for replacing quotations in a string
Created: February 21, 2017Tags: #tags: python3, state-machine
- [HTTP Headers Shell Script Abstraction]
Created: February 15, 2017Tags: #tags: bash, http-headers
- [VCL Logging Abstraction] vcl abstraction around logging to make calls cleaner
Created: February 15, 2017Tags: #tags: vcl, varnish, logging
- Pylint Detect Similarities
Created: February 1, 2017
- [Varnish VCL] use vcl to store provided query string and path into HTTP response headers
Created: January 24, 2017Tags: #tags: vcl, varnish
- Python Class Decorator (AOP)
Created: January 18, 2017
- Example NGINX global "rollout" strategy
Created: January 17, 2017
- Install more recent version of Siege (https://github.com/JoeDog/siege) inside of a Docker container
Created: January 9, 2017
- Configure Wrk https://github.com/wg/wrk (brew install wrk) with Lua to execute against multiple URLs
Created: January 9, 2017
- Stylish Chrome Extension: github.com - stylised to be black as the white is a bit intense on my eyes
Created: January 9, 2017
- Stylish Chrome Extension: doc.rust-lang.org - stylised to be black as the white is a bit intense on my eyes
Created: January 9, 2017
- [Python Tornado Request Performance]
Created: January 6, 2017Tags: #tornado #performance #async #requests
- Storing Passwords (salt + pepper)
Created: January 3, 2017
- :w ~/.vim/colors/vim-integralist.vim - doesn't work though with macOS terminal :-( although it could be modified to use terminal equivalent like 'ctermbg=233' but refer to this palette... https://upload.wikimedia.org/wikipedia/en/1/15/Xterm_256color_chart.svg
Created: December 24, 2016
- Go test with interface
Created: December 20, 2016
- Python Format Date String
Created: December 15, 2016
- Python aiohttp example using mustache (also consider https://github.com/saghul/aiodns)
Created: December 9, 2016
- Python if/else list comprehension (generator expression)
Created: November 30, 2016
- Python subclass dictionary
Created: November 24, 2016
- netcat web server
Created: November 22, 2016
- Compile Mozilla's Servo web browser (built with their new Rust language)
Created: November 22, 2016
- Basic Shell Logger
Created: November 19, 2016
- Log to SysLog on the command line (terminal)
Created: November 19, 2016
- What's the difference between a router and a modem?
Created: November 19, 2016
- C vs System Calls and where to find documentation?
Created: November 18, 2016
- CSS representation of long hand division
Created: November 16, 2016
- Bits Explained (inc. IPs, CIDR, RAM etc)
Created: November 11, 2016
- C Concepts
Created: November 10, 2016
- DNS update strategy
Created: November 9, 2016
- Python extract query string params in order they are specified
Created: November 8, 2016
- Website Crawler
Created: November 8, 2016
- Mutt View Attachments Script
Created: November 7, 2016
- Mutt configuration and usage
Created: November 4, 2016
- Python Singleton
Created: November 1, 2016
- Multiple asynchronous HTTP GET requests with Python's aiohttp and asyncio
Created: November 1, 2016
- [Wait for multiple Python futures to finish using asyncio.wait()]
Created: November 1, 2016Tags: #asyncio #wait #concurrency #multiple #requests #httpclient
- Kali Linux Vim + Bash setup
Created: October 30, 2016
- VirtualBox: Kali Linux Linux Headers
Created: October 30, 2016
- Bash shortcut syntax for redirecting stderr to stdout
Created: October 28, 2016
- Taken from "Python for Programmers" https://leanpub.com/pythonforprogrammers
Created: October 27, 2016
- Vim filtering with global command, sorting and then filtering out duplicate lines for unique results
Created: October 21, 2016
- Complex log filtering in Vim
Created: October 21, 2016
- Python Sort List by Dictionary Key
Created: October 18, 2016
- MapReduce in Python (copied verbatim for posterity from https://www.reddit.com/r/Python/comments/572xtj/i_decided_to_teach_myself_how_mapreduce_works_and/)
Created: October 12, 2016
- Setup DNSMASQ
Created: October 11, 2016
- Can't replace or mv a file (e.g. like when using sed -i) when a file is bind mounted with Docker. So Vim to the rescue...
Created: October 10, 2016
- Python3 HTTP Server.py
Created: October 5, 2016
- Python Jinja Example
Created: October 4, 2016
- Domain Structure
Created: October 3, 2016
- [Docker NGINX Plus]
Created: September 29, 2016Tags: #nginx-plus #nginx #docker
- [Compiling Python]
Created: September 29, 2016Tags: #python #compile #manual #install
- Python2: YAML convert to OrderedDict (http://stackoverflow.com/questions/5121931/in-python-how-can-you-load-yaml-mappings-as-ordereddicts/21912744
Created: September 26, 2016Tags: #21912744)
- Papertrail Log Aggregator: Filter 5xx errors
Created: September 21, 2016
- Netcat in Python
Created: September 18, 2016
- Python TCP Client Server Example
Created: September 18, 2016
- Python coloured logs
Created: September 17, 2016
- Python stdlib scheduler
Created: September 17, 2016
- Netcat web server
Created: September 15, 2016
- Export code into formatted file
Created: September 15, 2016
- Terminal Resize Images with ImageMagick
Created: September 11, 2016
- Run foreground process in background (odd I know)
Created: August 24, 2016
- Coding Best Practices: High Level Principles
Created: August 22, 2016
- Bash rename function
Created: August 17, 2016
- Python 3: Reduce Array/List into Dict
Created: August 17, 2016
- Python 2: execute multiple shell cmds and print result
Created: August 17, 2016
- [Python ignore pylint and flake8 linter errors]
Created: August 16, 2016Tags: #tags: python, linter, ignore, pylint, flake8
- Bash split string by delimiter
Created: August 15, 2016
- Awk insert before and after regex match
Created: August 15, 2016
- Bold text in bash output
Created: August 15, 2016
- Python programmatically check installed module version
Created: August 15, 2016
- [First Time Flyers] Help for those new to flying
Created: August 13, 2016Tags: #tags: flight, flying
- Bash Associative Arrays
Created: August 11, 2016
- Bash join Array values
Created: August 8, 2016
- [Bash function passed an Array]
Created: August 8, 2016Tags: #bash #array
- Python EasyDict
Created: August 8, 2016
- Debugging nginx with custom headers
Created: August 4, 2016
- gpg-agent across vm ssh sessions
Created: August 2, 2016
- Managing resources with Python Context Managers
Created: July 28, 2016
- Python Asyncio Timing Decorator
Created: July 27, 2016
- [Python Custom Exception Handling]
Created: July 26, 2016Tags: #python #custom #exceptions #error #handling
- Python 3: Convert namedtuple into dict so we can convert it to json
Created: July 22, 2016
- Docker Alpine
Created: July 18, 2016
- Python Generator Expressions
Created: July 15, 2016
- nginx health check via docker
Created: July 13, 2016
- Python access the stack trace failed functions
Created: July 6, 2016
- Python calculate difference in dates
Created: July 6, 2016
- Python Exception Stack Trace Debugging
Created: July 4, 2016
- Python Asyncio Loop Forever
Created: July 4, 2016
- [Python Tornado Yield Multiple Async Requests]
Created: July 1, 2016Tags: #python #tornado #yield #splat #async #asynchttpclient #locals #vars #variables
- Algorithms in Python (modified from the excellent: Grokking Algorithms) - see also http://www.integralist.co.uk/posts/bigo.html for details on understanding Big O notation
Created: June 23, 2016
- Python Exception Logging Decorator
Created: June 14, 2016
- URL Shortener
Created: June 8, 2016
- Service Orchestration vs Choreography (http://developers.redhat.com/blog/2016/05/26/scalable-microservices-through-messaging/)
Created: June 3, 2016
- Sort an Array according to another Array
Created: June 2, 2016
- The Perfect Developer Qualities
Created: May 27, 2016
- Ruby WebMock Example
Created: May 25, 2016
- Find and execute using `find` and `-exec` flag
Created: May 25, 2016
- Vim Grep
Created: May 25, 2016
- Backup all your GitHub Gists (inc. private gists)
Created: May 24, 2016
- Cryptographic Hash Functions
Created: May 23, 2016
- Docker and StatsD
Created: May 23, 2016
- keybase.md
Created: May 22, 2016
- Testing Go Web Applications http://www.meetspaceapp.com/2016/05/16/acceptance-testing-go-webapps-with-cookies.html
Created: May 22, 2016
- Local Memcache and ElastiCache
Created: May 10, 2016
- AWS KMS
Created: May 5, 2016
- git commit template example file
Created: May 3, 2016
- [Python asyncio]
Created: May 3, 2016Tags: #python #asyncio #helloworld
- SSH port binding
Created: May 3, 2016
- Python Binary Search Tree
Created: April 26, 2016
- Functional Ruby with Lambda/Procs
Created: April 26, 2016
- [Python3 Virtual Environment with virtualenv]
Created: April 26, 2016Tags: #python3
- ls command behave like tree command
Created: April 25, 2016
- Programming Languages - Word Association
Created: April 24, 2016
- Python equivalent to Ruby's Pry (update: use https://docs.python.org/3/library/pdb.html - see also https://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/)
Created: April 18, 2016
- Update Homebrew Apache Bench
Created: April 18, 2016
- Python setup for NeoVim
Created: April 17, 2016
- Bash read the user input and react to it
Created: April 17, 2016
- Redirect stdout and stderr
Created: April 14, 2016
- Git Workflow
Created: April 11, 2016
- Git Request Pull
Created: April 11, 2016
- Ruby Socket Wrapper (one connection, multiple messages)
Created: April 11, 2016
- gRPC: a REAL beginners guide
Created: April 10, 2016
- Sinatra errors
Created: April 7, 2016
- Test Rubocop against inline code
Created: April 1, 2016
- Install dotfiles and give users options
Created: March 27, 2016
- Bootstrap Mac OS X Configuration
Created: March 27, 2016
- Ruby Dynamic JSON Logger session via Lambda
Created: March 23, 2016
- Bash update current line when `echo`ing updating output
Created: March 23, 2016
- SCP Remote Logs to Local Machine
Created: March 22, 2016
- Apple Curl Issues
Created: March 22, 2016
- Ruby stdlib debugger
Created: March 21, 2016
- Bash ask user a question
Created: March 21, 2016
- Ruby Sinatra Sessions
Created: March 21, 2016
- Bash Strict Mode (http://redsymbol.net/articles/unofficial-bash-strict-mode/)
Created: March 20, 2016
- Different Linux utility commands (e.g. top, ps, strace, lsof, netstat, ifconfig, iftop, iptraf, tcpdump, wireshark)
Created: March 18, 2016
- Ruby Mock Redis
Created: March 17, 2016
- Microservices
Created: March 9, 2016
- [Vegeta load test examples https://github.com/tsenart/vegeta]
Created: March 4, 2016Tags: #go #golang #vegeta #examples #loadtest #benchmark #report
- Debug
Created: March 4, 2016
- [Bash Watchtower]
Created: March 1, 2016Tags: #bash #shell #watchtower
- Nice Ruby Rack Tests
Created: February 29, 2016
- Ruby Load Path
Created: February 29, 2016
- Print the next line AFTER your pattern has matched with AWK
Created: February 28, 2016
- Ruby Google Calendar API
Created: February 28, 2016
- chmod and chown explained
Created: February 26, 2016
- Ruby Bundler Nokogiri Bug
Created: February 25, 2016
- Git Patch and Apply (see alternative patch generation and applying in reverse: https://gist.github.com/Integralist/13d9f5e8ec197e5e53c6)
Created: February 25, 2016
- Ruby Threads: failing fast
Created: February 23, 2016
- Ruby Thread speed and fail fast
Created: February 23, 2016
- WebSockets with Vanilla JS and Ruby Faye
Created: February 18, 2016
- Ruby client communicating with Go RPC over a TCP socket
Created: February 18, 2016
- [Trap exit and error (defer cleanup execution when bash script fails)]
Created: February 11, 2016Tags: #bash #trap #catch #errorhandling
- Apache LogFormat Example
Created: February 10, 2016
- Avoid SSH connection timeout & freezing of terminal tab
Created: February 10, 2016
- Redis testing on EC2 instance with CentOS
Created: February 10, 2016
- Restrict Access to pushing updates to an API in the Live environment (except via Jenkins CI) via Apache
Created: February 10, 2016
- Bash Template (an older version with different variations can be found here: https://gist.github.com/Integralist/c16c4cc7698cebb8d606)
Created: February 4, 2016
- Simple check for git repo in Bash
Created: February 4, 2016
- Basic Bash Configuration (superseded by https://gist.github.com/Integralist/970b8e4a595b118acdd3)
Created: February 1, 2016
- Access Instance and Class level methods (one example using `new`)
Created: January 29, 2016
- Example script that uses the `&` trick (typically used to convert an object to a proc; e.g. https://gist.github.com/Integralist/11206577) to convert a method (retrieved using `method()`) to a proc so it can be utilised by another method
Created: January 29, 2016
- Basic Vim config for when ssh'ed onto an EC2 instance (yum install vim -y)
Created: January 27, 2016
- Networking CIDR explained
Created: January 25, 2016
- Ruby: get class name and method name
Created: January 19, 2016
- Best Practice Code Design and Architecture
Created: January 15, 2016
- Code of Conduct (Template)
Created: January 15, 2016
- List remote NPM dependencies
Created: January 13, 2016
- HTTP Status Codes
Created: January 12, 2016
- Search for files and pipe into Vim
Created: January 5, 2016
- Redis vs Memcache
Created: January 5, 2016
- [Update all submodules for a repo with a single command]
Created: January 4, 2016Tags: #git #submodules
- Guitar Music Theory
Created: December 28, 2015
- OAuth
Created: December 22, 2015
- [Datadog Monitoring and Metrics]
Created: December 22, 2015Tags: #datadog #metrics #monitoring #cost
- Flawed Golang concurrency logic: diff below shows the fixed code
Created: December 21, 2015
- DB migrations
Created: December 19, 2015
- Year in Review 2015
Created: December 19, 2015
- Ruby Alephant JSON Logger
Created: December 18, 2015
- Semantic Versioning Explanation
Created: December 11, 2015
- Docker Compose: Example Ruby Application
Created: December 11, 2015
- RPC: Remote Procedure Call
Created: December 4, 2015
- Ruby Decorator Design Pattern for BBC: with a little imagination you can see how we could store data in S3 instead of "printing" it to the screen AND also how we could have some models extend based on a whitelist (as some components you'll want to extend ALL formatters, and other components you'll only want to extend from one or two formatters)
Created: December 2, 2015
- Ruby Fail vs Raise
Created: November 30, 2015
- Install Redis CLI on AWS Instance
Created: November 27, 2015
- [Programming types: imperative vs declarative vs structured]
Created: November 27, 2015Tags: #types #procedural #imperative #declarative #structured
- Bash pipestatus
Created: November 25, 2015
- Jenkins CI -> GitHub API
Created: November 25, 2015
- HTTP Security Headers
Created: November 19, 2015
- Senior Ruby Programmer: Job Spec
Created: November 19, 2015
- [REST design: PUT vs POST]
Created: November 19, 2015Tags: #REST #API #PUT #POST #DELETE #GET #methods #http
- [Caching strategies and headers] (see also http://fideloper.com/api-etag-conditional-get)
Created: November 18, 2015Tags: #cache #caching #headers #stale #revalidate #memcache #redis #varnish #nginx #fastly #cdn #if-none-match #conditional #http
- Ruby parsing of complex nested data structures from the Query String
Created: November 18, 2015
- Convert a P12 into a PEM and vice versa
Created: November 17, 2015
- Use Docker to setup a Ruby application to use a private gem server. The reason I'm documenting this is because Ruby's Bundler gem is notoriously problematic using SSL
Created: November 16, 2015
- SCP examples (local to remote and remote to local)
Created: November 11, 2015
- tree exclude directories
Created: November 10, 2015
- Kubernetes Essentials
Created: November 8, 2015
- Demonstrating the set-up of CoreOS and how to utilise Etcd along with Systemd and Fleet
Created: October 29, 2015
- Faraday TLS Connection
Created: October 26, 2015
- Sift example that demonstrates how to ignore a directory and also display the line numbers whilst using a regex pattern with a word boundary
Created: October 21, 2015
- irssi irc connecting to network and joining a channel (and identify yourself if you seen an error about joining a channel)
Created: October 19, 2015
- HTTP/2 notes (taken from https://www.nginx.com/wp-content/uploads/2015/09/NGINX_HTTP2_White_Paper_v4.pdf)
Created: October 19, 2015
- Go running in Lambda: https://gist.github.com/miksago/d1c456d4e235e025791d and http://blog.0x82.com/2014/11/24/aws-lambda-functions-in-go/ and https://github.com/jasonmoo/lambda_proc for more details
Created: October 14, 2015
- Faraday SSL example
Created: October 13, 2015
- `curl -s -L bit.ly/ | bash` <- bit.ly should point to a private gist that pulls content from a public S3 bucket
Created: September 16, 2015
- Demonstrates how to use Sumo Logic query language
Created: September 16, 2015
- AWS Assume Role
Created: September 9, 2015
- Dockerfile that demonstrates how to use Supervisord.org
Created: September 1, 2015
- Building a Go program via Docker
Created: August 27, 2015
- Godo re-build task
Created: August 25, 2015
- [curl performance timing]
Created: August 22, 2015Tags: #curl #performance #monitoring
- Regular Expression that matches Camel Cased words
Created: August 17, 2015
- Zsh and Bash Array Shift (remove first item from the Array)
Created: August 17, 2015
- Docker Machine on Mac OS X
Created: August 15, 2015
- If a shell command returns an exit status then you'll find that in a CI environment that the job will immediately fail. To resolve this you should capture the error and then pipe the result and then use PIPESTATUS instead
Created: August 13, 2015
- Test Files for Composition Example
Created: August 11, 2015
- git merge --squash brings in your changes but doesn't create a commit. Instead it will stage your changes so you can create a fresh commit for it (avoiding ugly merge commits showing in GitHub when using a standard git merge)
Created: August 7, 2015
- Super basic concurrency based HTTP requester
Created: August 4, 2015
- [Bash Array Looping]
Created: July 28, 2015Tags: #bash #shell #loop #code #gen
- Modify Boot2Docker to default specific arguments when executing the docker command
Created: July 27, 2015
- Multiline Curl PUT'ing of data with no extra processing (thanks to --data-binary flag). We also use @ with a hyphen, so @- (the hyphen indicates input from stdin)
Created: July 21, 2015
- Benchmark MRI vs JRuby
Created: July 17, 2015
- Basic Ruby exception and error handling
Created: June 11, 2015
- Array flatten function written in ES6 syntax
Created: May 20, 2015
- Golang Essentials
Created: May 11, 2015
- Building an RPM https://github.com/integralist/simple-rpm
Created: May 11, 2015
- Sinatra and Docker
Created: May 8, 2015
- Siege load/stress testing utility (https://www.joedog.org/siege-manual/)
Created: May 8, 2015
- nginx and ruby
Created: May 4, 2015
- Docker container for a better curl than found natively on Mac OSX
Created: April 20, 2015
- AWS Lambda using Ruby (via uploaded compiled binary of MRI)
Created: April 17, 2015
- [Sed Insert Append + Prefix and Suffix]
Created: April 15, 2015Tags: #sed #bash #insert #append #prefix #suffix
- Example of a slightly complex search/filter query for Elasticsearch (the - before message means NOT)
Created: April 15, 2015
- This is a nice concise where to extract the successful match within a capture group using Ruby: http://ruby-doc.org/core-2.2.0/String.html
Created: April 10, 2015Tags: #method-i-5B-5D
- Optimise image size using Ruby
Created: April 10, 2015
- Example of a detailed Makefile
Created: April 3, 2015
- [Tech Books: Recommended Reading]
Created: March 22, 2015Tags: #reading #books #list
- Clojure Destructuring Tutorial and Cheat Sheet
Created: February 17, 2015Tags: #clojure
- Clojure Macros cheat sheet
Created: February 16, 2015
- Clojure talking to Spurious
Created: February 8, 2015
- Rubocop: ignore/disable features + example configuration yaml
Created: February 4, 2015
- POST data via curl command using CERT and password
Created: January 26, 2015
- Clojure deftype, defrecord, defprotocol
Created: January 24, 2015
- Server-Sent Events in Ruby
Created: January 13, 2015
- Executing the Clojure STM within JRuby (code modified from "Programming Concurrency on the JVM")
Created: January 10, 2015
- Ruby Array subset methods (intersection, difference, union)
Created: January 5, 2015
- How encryption with certificates and public/private keys work
Created: January 5, 2015
- Rust Cargo Guardfile
Created: January 4, 2015
- Rust Guardfile
Created: January 4, 2015
- Spawning Actors in Celluloid
Created: January 3, 2015
- VimScript custom function that triggers tmux pane to open specified gem contents within Vim
Created: January 1, 2015
- Ruby: override `new` constructor method using meta programming
Created: December 31, 2014
- Clojure Thread State
Created: December 29, 2014
- Ruby DI Container Example (Dim)
Created: December 28, 2014
- Ruby Meta Programming: Dynamically create Class methods with values populated from YAML config
Created: December 28, 2014
- Year in Review 2014
Created: December 24, 2014
- Concurrency: JRuby vs MRI
Created: December 23, 2014
- Zsh tips
Created: December 22, 2014
- Ruby: private class level methods
Created: December 18, 2014
- Trello API
Created: December 17, 2014
- JIRA API creating a ticket/issue
Created: December 16, 2014
- Some basic examples of executing external commands within Vim's COMMAND-LINE mode
Created: December 16, 2014
- Reading "Programming Concurrency on the JVM" I found an example (which I've modified below) using Clojure to solve a classic concurrency dilemma by using the STM to help keep things sane.
Created: December 15, 2014
- RSpec described_class
Created: December 12, 2014
- DynamoDB (using Spurious)
Created: November 24, 2014
- DynamoDB Update Document
Created: November 24, 2014
- Netcat
Created: November 24, 2014
- Terminal go back up one line
Created: November 24, 2014
- Rack Middleware
Created: November 15, 2014
- Fix EC2 Timezone issues
Created: November 7, 2014
- [Manually compile Vim]
Created: November 2, 2014Tags: #tags: vim, compile
- Go Guardfile: `bundle exec guard`
Created: October 31, 2014
- Ruby Gems Docker
Created: October 31, 2014
- JS "pass by"
Created: October 28, 2014
- Ruby JSON Schema Generator and Validator
Created: October 24, 2014
- Ruby Faraday SSL
Created: October 24, 2014
- Get HTTP Status Code
Created: October 20, 2014
- Sinatra Reloader
Created: October 15, 2014
- Bankers Dilemma
Created: October 12, 2014
- Ruby Namespace Concern
Created: October 9, 2014
- Designing Systems and Applications
Created: October 3, 2014
- Docker tagging and ONBUILD
Created: October 3, 2014
- Node Dockerfile with PhantomJS
Created: October 2, 2014
- Ruby: Check Balanced Params
Created: October 1, 2014
- Design Patterns: Adapter vs Facade vs Bridge
Created: September 26, 2014
- Ruby Threads
Created: September 25, 2014
- Manually SSH into Vagrant
Created: September 18, 2014
- Clojure Homework
Created: September 13, 2014
- Testing a Ruby Gem
Created: September 10, 2014
- EC2 Roles applied by InstanceProfiles.md
Created: September 4, 2014
- Create JSON from Yaml
Created: September 1, 2014
- Homebrew: switch to custom versions of software
Created: August 29, 2014Tags: #homebrew #brew #install #versions #switch
- Software Simplicity
Created: August 23, 2014
- Ruby string formatting functionality (like PHP's sprintf)
Created: August 22, 2014
- Process for rebasing Pull Request
Created: August 19, 2014
- Download and Install htop command
Created: August 13, 2014
- Ruby: Command Design Pattern (can allow for "undo" history feature)
Created: August 8, 2014
- Ruby: use Struct for inheritance chain
Created: August 8, 2014
- AWS EC2 SSH Access and creating new AMI
Created: August 4, 2014
- AWS Instance types
Created: August 4, 2014
- Curry implementation in Node
Created: August 1, 2014
- Using git bisect to find where a bug was introduced
Created: July 25, 2014
- Monads in JavaScript and the power of composability
Created: July 21, 2014
- Test "Duck Typing" using RSpec 3's `instance_double`
Created: July 18, 2014
- Get a git diff and apply git diff using gist ruby gem -> https://github.com/defunkt/gist (also see this alternative using `git format-patch`: https://gist.github.com/Integralist/87852ced09d7918322c0)
Created: July 16, 2014
- Recursion and Trampolines in JavaScript (code copied from JS Drip Newsletter
Created: July 14, 2014Tags: #65)
- Mori.js Calendar Application (NodeJS) -> copied from the talk http://vimeo.com/96425437
Created: July 11, 2014
- Mori.js ClojureScript Data Structures in plain vanilla JavaScript -> http://swannodette.github.io/mori/ and https://github.com/swannodette/mori
Created: July 11, 2014
- Data Structures
Created: July 10, 2014
- Polling example with back pressure handling
Created: July 8, 2014
- Ruby OOP vs FP (examples are from ThoughtBot's Weekly Iteration -> you should subscribe!)
Created: July 7, 2014
- Auto Currying JavaScript Function
Created: June 27, 2014
- Functional Programming: Polling XHR
Created: June 23, 2014
- RoboHydra
Created: June 23, 2014
- [Example of using cat to pass HEREDOC content into a file]
Created: June 11, 2014Tags: #bash #heredoc #file
- Currying vs Partial Application
Created: June 7, 2014
- Best way to modular Grunt tasks
Created: June 4, 2014
- Run Sass within Ruby
Created: June 4, 2014
- Ruby: pass a block to a function that has zero arity (i.e. don't define &block inside of our initialize method). The point of this demonstration is that you are able to pass a block through to another method whilst not initially defining an argument for the block to be passed by. This way we gain better performance (calling a proc is very slow compared to yielding), and regardless we're not able to pass a yield through to another method.
Created: May 26, 2014
- JavaScript Function Programming (scratch pad) -> Most of the code here is modified from the excellent O'Reilly book "Functional JavaScript".
Created: May 18, 2014
- Ruby Meta Programming
Created: May 15, 2014
- Why does this fail in MRI 2.0 but pass in JRuby (which is API compat with MRI 1.9.3)?
Created: May 15, 2014
- Pro Vim `.zshrc` configuration file
Created: May 13, 2014
- Ruby Array Guarding
Created: May 9, 2014
- Ruby's "Around Alias" pattern
Created: May 9, 2014
- Expanding scratch pad of Clojure code
Created: May 2, 2014
- Clojure's "Thread First" and "Thread Last" macros
Created: April 29, 2014
- Clojure destructuring using `let` (which allows local storage inside of a function, we would say a local "variable" but that would be misleading because all data is immutable in Clojure)
Created: April 28, 2014
- Loop recursively through a multi-level array using the SPL (Standard PHP Library) RecursiveArrayIterator
Created: April 25, 2014
- JS Tail Call Optimisation
Created: April 24, 2014
- Ruby Splat (single and double)
Created: April 23, 2014
- Ruby: Symbol class to_proc and custom class object to_proc (see also https://gist.github.com/Integralist/8079e79c5eb4e7b88183 to see how to use `&` with `method()`)
Created: April 23, 2014
- Ruby Data Structures: Set
Created: April 23, 2014
- Ruby Data Structures: Queue
Created: April 23, 2014
- Public-key infrastructure (PKI)
Created: April 10, 2014
- Custom Ruby Error Handling
Created: April 8, 2014
- For up to date list of plugins please see my Fresh Install repository: https://github.com/Integralist/Fresh-Install/
Created: April 6, 2014
- Ruby lambdas
Created: April 5, 2014
- Refactoring Ruby -> not all conditionals can be removed, and those that can can't necessarily use the standard refactoring methods such as "Replace Type Code with Module Extension", "Replace Type Code with Polymorphism" or "Replace Type Code with State/Strategy". The below examples demonstrate this.
Created: April 1, 2014
- Messing around with AWS and DynamoDB
Created: March 31, 2014
- git reset --soft/--mixed/--hard
Created: March 31, 2014
- AOP (Aspect-Oriented Programming)
Created: March 31, 2014
- Ruby: reducing context
Created: March 26, 2014
- Examples of mocking and faking data using PHPUnit
Created: March 26, 2014
- Object-Oriented Design Principles (Code Design)
Created: March 26, 2014
- Concurrency vs Parallelism
Created: March 26, 2014
- Polymorphism using `if` condition in JavaScript
Created: March 14, 2014
- Convert Ruby Hash keys into symbols
Created: March 12, 2014
- S.O.L.I.D principles in Ruby
Created: March 11, 2014
- Download a single file from a private GitHub repo. You'll need an access token as described in this GitHub Help article: https://help.github.com/articles/creating-an-access-token-for-command-line-use
Created: March 11, 2014
- [Example of POST'ing data via Curl command]
Created: March 4, 2014Tags: #curl #post #body
- Passing through key and value to a reduce method block rather than just the item
Created: February 27, 2014
- In Ruby using the `<<` operator as a method identifier has special meaning. It allows us to call the method without using a period (so we can do `foo << "abc"` and not have to do `foo.<< "abc"`)
Created: February 27, 2014
- How to clone a Hash (in Ruby) and modify the cloned hash without affecting the original object
Created: February 16, 2014
- Demonstrate how to handle bubbling errors by consolidating them (modified from: http://blog.ponyfoo.com/2013/07/12/teach-yourself-nodejs-in-10-steps)
Created: February 14, 2014
- Web Scraping with NodeJS (copied from http://www.storminthecastle.com/2013/08/25/use-node-js-to-extract-data-from-the-web-for-fun-and-profit/)
Created: February 14, 2014
- Playing around with DynamoDB (old)
Created: February 14, 2014
- Variety of different Capybara configurations, tips and tricks
Created: February 14, 2014
- Ruby HEREDOC but not worrying about the crappy spacing
Created: February 12, 2014
- npm in-house registry cache using nginx
Created: January 29, 2014
- Looking at the Thread API in Ruby
Created: January 22, 2014
- Refactor this Ruby code...
Created: January 22, 2014
- Example of importing Java libraries into JRuby
Created: January 15, 2014
- Private and Privileged methods using the Constructor pattern in JavaScript
Created: January 14, 2014
- Better Mocking using RequireJS' `undef` method to unset redefined modules
Created: January 13, 2014
- Rack Server Example
Created: January 9, 2014
- Shortcut Vim mappings for running RSpec and Cucumber tests
Created: December 24, 2013
- Trying to run RSpec and Cucumber tests via Vim but found executing commands in different contexts means scope changes between what's available in the $PATH to the installed Ruby version and it's available gemsets.
Created: December 24, 2013
- Playing around with http://gulpjs.com/
Created: December 23, 2013
- 2013 review: looking back at what I achieved this year...
Created: December 20, 2013
- Is there a more elegant way in Ruby to filter data from an object and store it in another object. We're searching for a key (which can appear multiple times) and I only want to store the key once, but to also increment that key's value every time the key is found.
Created: December 19, 2013
- Mocking the `window` object in JavaScript unit tests
Created: December 17, 2013
- RSpec Template
Created: December 15, 2013
- S.O.L.I.D principles
Created: December 15, 2013
- Sandi Metz advice for writing tests
Created: December 13, 2013
- JavaScript: mocking the Window and Document objects
Created: December 12, 2013
- Node debugger API
Created: December 11, 2013
- [Cucumber Gherkin Template Feature File]
Created: December 2, 2013Tags: #gherkin #cucumber #userstory #story #feature #scenario
- The importance of refactoring...
Created: November 29, 2013
- [The distinction between "arguments" and "parameters"]
Created: November 28, 2013Tags: #args #params #vs
- Sass REM
Created: November 22, 2013
- Clamps a block of text to a certain number of lines followed by an ellipsis in Webkit and Blink based browsers
Created: November 22, 2013
- Complex Sass example found in the wild...
Created: November 20, 2013
- Example of how to structure your Grunt files
Created: November 14, 2013
- How to extract JSHint details into its own config file
Created: November 14, 2013
- JavaScript grid overlay
Created: November 8, 2013
- JavaScript: function to determine object's type
Created: November 7, 2013
- BBC News' RTL (right to left) solution
Created: November 1, 2013
- How should we handle sub elements within an existing element? Should it be converted into a block?
Created: November 1, 2013
- CabinJS static generator example
Created: October 22, 2013
- PhantomJS network tests
Created: September 26, 2013
- MongoDB: when using the `find()` method on a Collection you'll need to `toArray()` on results as it doesn't run your query but instead returns new Cursor instance
Created: September 15, 2013
- Thoughts re: UnCSS (a way to parse CSS files to see if all of the rules/selectors apply to a HTML page)
Created: September 15, 2013
- Imager.js (as of 14th August 2013)
Created: August 14, 2013
- Sass mixin that handles span'ing content based off of a 12 column grid (could be updated to accept dynamic content)
Created: August 13, 2013
- This is how BBC News currently implements it's Image Enhancer for responsive images. Note: this is a completely rebuilt version of the code so the BBC's original source code doesn't actually look anything like the below example.
Created: August 5, 2013
- Firefox chokes on this code without the `setTimeout`...
Created: July 29, 2013
- Is this good flow control? Or would Promises (or Generators) make this much simpler and easier to read? I write my code in such a way that I try to be as 'functional' as possible, and that the code reads in a linear fashion (as if telling a story, there is a start, middle and an end).
Created: July 26, 2013
- JavaScript: inheritance by proxy
Created: July 20, 2013
- JavaScript function that lets you query for the API or provide a fallback if not available
Created: July 17, 2013
- Strategy pattern to remove the need for conditionals. If you find yourself writing conditionals then that's really just an object waiting to be made. Yes there are more lines of code, but this enforces the 'open/closed principle' which means the code is open for extension but closed for modification and means our code can scale a lot more easily than the conditional style.
Created: July 12, 2013
- The power of r.js is incredible. `insertRequire` and `onBuildRead` are insanely useful in the right situation (not to mention other useful features such as `fileExclusionRegExp`, `removeCombined` and literally a ton more)...
Created: June 30, 2013
- Ruby: calculate reading time based on length of text
Created: June 19, 2013
- Example of how Sass mixins when used excessively and without thought can actually be more of a code smell than a helper.
Created: June 17, 2013
- Over engineered Sass...
Created: June 13, 2013
- Mocking a Window object for unit-testing purposes
Created: June 13, 2013
- S.O.L.I.D - (L)iskov Substitution.
Created: June 12, 2013
- S.O.L.I.D - (D)ependency Inversion. In the bad example, yes we're injecting our dependency but the Button class is now no longer reusable as it is too tightly coupled to the Lamp class. In the better example, we're still injecting our dependency but we now inverse the control via the use of an Interface. So now any `SwitchableDevice` can be used with the Button class.
Created: June 12, 2013
- Avoid direct access to complex data structures, transform them to avoid problems when the structure changes
Created: June 11, 2013
- Need help watching/compiling multiple Sass files in a project with a awkward folder structure...
Created: June 11, 2013
- S.O.L.I.D - (O)pen/Closed Principle
Created: June 11, 2013
- S.O.L.I.D - (S)ingle Responsibility Principle
Created: June 11, 2013
- Strategy Design Pattern in JavaScript
Created: June 8, 2013
- Example of a r.js build script for AMD formatted modules loaded using RequireJS
Created: May 14, 2013
- addEventListener polyfill
Created: May 9, 2013
- There are a couple of different ways to `require` a module using RequireJS
Created: May 8, 2013
- Using RequireJS, switch from jQuery 2.0 down to 1.9.1
Created: April 25, 2013
- Ruby 1.8.7 doesn't support regular expression lookbehind assertions -> so this example mimicks it using lookaheads and some trickery. Basically the solution is to reverse your content and lookahead for the items you want to avoid or include.
Created: April 23, 2013
- Accessing PR information within your .git folder
Created: April 22, 2013
- PHP Reflection Example
Created: April 22, 2013
- CSS touch delay
Created: April 22, 2013
- PubSub in JavaScript
Created: April 16, 2013
- [Sass: avoiding @if conditionals]
Created: April 11, 2013Tags: #sass #if #conditions
- [Sass: right-to-left CSS]
Created: April 10, 2013Tags: #sass #css #rtl
- Basic Closure example in PHP
Created: March 26, 2013
- The responsive GEL grid system
Created: March 25, 2013
- Basic script loader example that works for all browsers
Created: March 20, 2013
- A few (of the many) different ways to create a Singleton in JavaScript. Be warned some of these examples require a lot more code to make them true Singletons. As is the case with most problems: simplicity is the key.
Created: March 19, 2013
- Boilerplate for AMD, Node and browser global
Created: March 12, 2013
- The difference between JavaScript's `exec` and `match` methods is subtle but important, and I always forget...
Created: March 11, 2013
- Add properties to PHP object dynamically
Created: March 7, 2013
- Comments on Analytics code...
Created: March 6, 2013
- Example of prototypal inheritance but done in a 'classical inheritance' style...
Created: March 5, 2013
- Example code using RubyInline which lets you run foreign code (such as C or C++) within Ruby which has much greater performance over Ruby itself.
Created: March 3, 2013
- The difference between `prototype` and `__proto__`
Created: March 2, 2013
- Was reading http://jspro.com/raw-javascript/intelligent-string-abbreviation/ and decided to try and clean up the example.
I then made another version which separated specific functionality into individual functions.
Finally I made a third variation which made dependencies external.
Created: February 16, 2013
- In CSS/BEM: how do we name a sub-block that is related to its parent block?
Created: February 15, 2013
- Made a super quick bookmarklet for displaying the current screen dimensions for Chrome
Created: February 5, 2013
- I'm trying to get the cleanest, most basic export from r.js
Created: January 26, 2013
- Cranium (Backbone API)
Created: January 18, 2013
- Refreshing my memory on PHP inheritance and general OOP
Created: December 18, 2012
- The last time I wrote any real PHP (of any production worth) was back in 2006 (it's now December 2012). I thought I would share some potentially terrible PHP code I wrote today whilst trying to refresh my memory. Definitely feel free to have a good laugh, but what would be even better would be some constructive criticism. This isn't supposed to be anything remotely near finished code. The purpose was to get me back into the feel for writing PHP. If there are suggestions about what I've written (things I should avoid for example) then I'd love to hear them. Thanks!
Created: December 17, 2012
- Extending placeholder selectors within media queries
Created: November 22, 2012
- Ensure two columns match heights (rather than tweaking CSS for multiple browser's rendering differences)
Created: November 20, 2012
- The Checkbox CSS Hack (doesn't work in IE <= 8, but all other browsers fine)
Created: November 20, 2012
- Doesn't work: preload images so we can check when background images are loaded via CSS
Created: October 24, 2012
- Detect CSS Animation support and provide object of normalised properties
Created: October 23, 2012
- Sass Mixin for CSS3 Animations
Created: October 22, 2012
- Data warehouse module
Created: October 21, 2012
- Backbone example
Created: October 19, 2012
- Example of passing a code block to a Mixin to make it more flexible (especially for displaying retina content)
Created: October 18, 2012
- Updated truncation script/module
Created: October 16, 2012
- Basic Sass Grid
Created: September 30, 2012
- My mammoth View file (this needs refactoring for sure - maybe into sub views?)
Created: September 26, 2012
- The model only triggers the change event when the value being set is unique (i.e. not set before)
Created: September 21, 2012
- Backbone.js example script (?)
Created: September 18, 2012
- Toast Grid Code
Created: September 8, 2012
- Basic Page Layout
Created: August 24, 2012Tags: #basic #html
- Example font-face code
Created: August 21, 2012
- 140byt.es -- addObserverMethods
Created: August 15, 2012
- Sass: referencing parent selector
Created: August 1, 2012
- JavaScript pass by value/reference example
Created: July 27, 2012
- I'm glad ES4 never happened. Couldn't imagine writing bullshit JavaScript like this ActionScript code...
Created: July 24, 2012
- WinXP IE8 doesn't work, but Win7 IE8 Browser/Document Mode does work?
Created: July 4, 2012
- Chunky script
Created: June 27, 2012
- How to access a specific :after pseudo-element's styles via JavaScript
Created: June 26, 2012
- How to target close button
Created: June 26, 2012
- Mega Validation Form
Created: June 21, 2012
- More ActionScript, how I hate dealing with Flash
Created: June 18, 2012
- Animating image slides in ActionScript
Created: June 15, 2012
- Create basic site using Ruby and Sinatra (and external templates)
Created: June 3, 2012
- Create basic Web Server in Ruby (using WEBrick)
Created: June 3, 2012
- Basic Form Validator
Created: May 24, 2012
- Ordered Lists
Created: May 15, 2012
- CSS alignment test
Created: May 12, 2012
- Custom Scrollbars (WebKit only because no other browser has similar feature)
Created: May 10, 2012
- HTML5 Placeholder Polyfill
Created: April 27, 2012
- Recruitment Questions for front-end developer (modified from https://github.com/darcyclarke/Front-end-Developer-Interview-Questions)
Created: April 27, 2012
- Relative Sizing
Created: April 15, 2012
- [JS before AMD]
Created: April 14, 2012Tags: #amd #lab #js #html
- Experimenting with component-based HTML/CSS naming and patterns
Created: March 27, 2012
- Git Workflow using an organisation account with Private repositories
Created: March 27, 2012
- Aspect Ratio Calculator
Created: March 14, 2012
- Unit Testing with BusterJS
Created: March 13, 2012
- Automatically generated images via JavaScript Canvas API
Created: March 4, 2012
- Canvas example
Created: March 4, 2012
- Checkbox Hack
Created: February 29, 2012
- IE Box Model in other browsers
Created: February 24, 2012Tags: #js
- set-up remote git repository
Created: February 21, 2012Tags: #git
- Star ratings
Created: February 15, 2012Tags: #css
- Google Maps with native HTML5 geolocation + audio
Created: January 31, 2012Tags: #js
- Beware of setting 'require' as a dependancy
Created: January 23, 2012Tags: #js
- Sinon.js Fake XHR
Created: January 17, 2012Tags: #js
- Detect `onhashchange` support
Created: January 12, 2012Tags: #js
- Error Handling with RequireJs
Created: January 12, 2012Tags: #js
- Host Objects
Created: January 11, 2012Tags: #js
- Element dimensions
Created: December 28, 2011Tags: #js
- Execution context (Variable/Activation Object) from @kangax's
Created: December 27, 2011Tags: #js
- Feature Testing a Host Method
Created: December 27, 2011Tags: #js
- Calculate distance between two co-ordinates on a Map (Lat/Lng)
Created: December 23, 2011Tags: #js
- How to use @testling
Created: December 8, 2011Tags: #js
- browser cache prevents image onload event
Created: December 7, 2011Tags: #js
- JSON-P
Created: December 4, 2011Tags: #php
- Detect previousElementSibling/nextElementSibling
Created: November 25, 2011Tags: #js
- News Ticker
Created: November 25, 2011Tags: #js
- mixins > inheritance
Created: November 24, 2011Tags: #js
- List of Twitter Bootstrap CSS classes
Created: November 24, 2011Tags: #css
- JSONP Async Loading via RequireJs
Created: November 16, 2011Tags: #js #php
- Examples of jsonp loading via RequireJs
Created: November 16, 2011Tags: #js
- Attempt at polyfilling addEventListener in IE7 via .htc hack
Created: November 14, 2011Tags: #js
- Curl Google Plugin Example
Created: November 14, 2011Tags: #js
- Curl Example
Created: November 11, 2011Tags: #js
- jQuery Mobile application event list
Created: November 3, 2011Tags: #js
- cancel all jQuery AJAX requests
Created: November 3, 2011Tags: #js
- RequireJS Async Load Plugin
Created: October 26, 2011Tags: #js
- Deferred implementations
Created: October 25, 2011Tags: #js
- jQuery Ajax Test (using Deferred/Promises)
Created: October 21, 2011Tags: #js
- Analyze the viewport size
Created: October 21, 2011Tags: #js
- RequireJs Build Script
Created: October 3, 2011Tags: #js
- Create Elements using memoization technique (modified to @GarrettS' points)
Created: September 28, 2011Tags: #js
- @madrobby's 140 bytes template engine
Created: September 18, 2011Tags: #js
- Better CSS Grid System
Created: September 13, 2011Tags: #css
- Access original value of property that has been over-written /via @jdalton and modified by @dperini
Created: September 1, 2011Tags: #js
- displays CSS properties that support URL as value via @LeaVerou
Created: September 1, 2011Tags: #js
- server-sent events
Created: September 1, 2011Tags: #php
- better CSS pseudo-element selector detector
Created: August 16, 2011Tags: #js
- detect CSS pseudo-element selector support
Created: August 16, 2011Tags: #js
- lookbehind implementations
Created: August 3, 2011Tags: #regex
- CSS Syntax Terminology
Created: July 26, 2011Tags: #css
- input placeholder polyfill
Created: July 13, 2011Tags: #js
- Cheap 'inArray' trick by @ded
Created: July 12, 2011Tags: #js
- Generic JavaScript library
Created: March 28, 2011Tags: #js
- Mobile Selector Engine
Created: March 24, 2011Tags: #js
- JavaScript CSS animation
Created: January 30, 2011Tags: #js
- Observer Design Pattern
Created: January 3, 2011Tags: #patterns