Skip to content

Instantly share code, notes, and snippets.

View skeltont's full-sized avatar
🏠
Working from home

Ty Skelton skeltont

🏠
Working from home
View GitHub Profile
@zackthehuman
zackthehuman / hexagons.js
Created February 20, 2012 03:46
Drawing a hexagonal grid with HTML canvas
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Canvas Hexagonal Map</title>
<style type="text/css">
canvas {
border:0;
display:block;
margin:0 auto;
@thebucknerlife
thebucknerlife / authentication_with_bcrypt_in_rails_4.md
Last active July 10, 2024 00:17
Simple Authentication in Rail 4 Using Bcrypt

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps

@jonathantneal
jonathantneal / README.md
Last active March 19, 2024 23:31
Local SSL websites on macOS Sierra

Local SSL websites on macOS Sierra

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

These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.

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

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
@benlinton
benlinton / multiple_mysql_versions_for_development.md
Last active September 23, 2023 09:38
Multiple MySQL Versions with Homebrew

Multiple MySQL Versions for Development

Options included below:

  • Using Docker docker-compose
  • Using Homebrew brew

Using Docker (recommended)

This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew any longer. Instead consider adding a barebones docker-compose.yml for each project and run docker-compose up to start each project's mysql service.

@directorscut82
directorscut82 / steps
Created January 11, 2018 13:30
[find highest cpu usage per thread] #CLI
Just to clarify all the steps required to diagnose this issue. (thanks everyone for postings) :
Following command shows the list of process with their CPU / Memory usage :
ps auxf
Following command gives the list of all threads of a process sorted with CPU usage.
top -H -p [PID]
@erfg12
erfg12 / fix.md
Last active December 3, 2023 23:14
PCSX2 Snowblind games fix (v1.5.0-dev-2640+)

Games list

  • Champions of Norrath (both games)
  • Baldur's Gate: Dark Alliance

Make game run at consistent frame rate

  • Plugin/Bios Selector > GPU > (select) GSdx * SSE4
  • Video (GS) > Plugin Settings... > (tick) Enable HW Hacks
  • Video (GS) > Plugin Settings... > Advanced Settings and Hacks > (tick) Fast Texture Invalidation
  • Video (GS) > Plugin Settings... > Advanced Settings and Hacks > Skipdraw Range > 1 - 4 (only for underpowered PCs)