Skip to content

Instantly share code, notes, and snippets.

View selfsimilar's full-sized avatar

Colin Sheaff selfsimilar

View GitHub Profile
@selfsimilar
selfsimilar / sample.txt
Created February 10, 2023 17:03
DSLCAD sample when hung
Analysis of sampling dslcad (pid 65720) every 1 millisecond
Process: dslcad [65720]
Path: /Users/USER/Documents/*/dslcad
Load Address: 0x100478000
Identifier: dslcad
Version: 0
Code Type: ARM64
Platform: macOS
Parent Process: zsh [12926]
sw_vers
ProductName:	macOS
ProductVersion:	12.0.1
BuildVersion:	21A559
valet --version
Laravel Valet 2.16.1
@selfsimilar
selfsimilar / curry.md
Last active April 12, 2021 01:33
Cabbage and Carrot Curry Recipe

Cabbage and Carrot Curry Recipe

Fresh Ingredients:

  • 1/2 head cabbage, finely shredded
  • 3 medium carrots, peeled and sliced into 1" slivers

Spices:

  • 4 tbsp cooking oil
@selfsimilar
selfsimilar / certs_gen.sh
Last active April 1, 2016 17:39
Generate and install self-signed certificates in OS X based on hosts file entries
#!/usr/bin/env bash
# A script for OS X to help generate and install SSL certificates for localhost.
# This is known to work on El Capitan, but should work on all 10.x releases.
#
# NOTE: THIS SCRIPT MUST BE RUN AS SU.
#
# This parses your hosts file and for all hostnames mapped to 127.0.0.1 it
# checks to see if a certificate exists for that domain. If not it:
# * Creates an SSL key and certificate.
<?php
date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php
/**
* The root directory where the repos live.
*
* @var string
*/
$root_dir = '/your/root/dir/';
@selfsimilar
selfsimilar / gist:8409626
Last active January 3, 2016 04:29
php -m
Drupal 7
Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in includes/database/mysql/database.inc on line 46
$ php -m
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.15: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so' - libmysqlclient.so.15: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - libmysqlclient.so.15: cannot open shared object file: No such file or directory in Unknown on line 0
[PHP Modules]
apc
bz2
$ RAILS_ENV=production bundle exec rake --trace generate_session_store
(in /var/www/html/redmine-1.2)
** Invoke generate_session_store (first_time)
** Invoke config/initializers/session_store.rb (first_time)
** Execute config/initializers/session_store.rb
rake aborted!
Permission denied - /var/www/html/redmine-1.2/config/initializers/session_store.rb
/var/www/html/redmine-1.2/lib/tasks/initializers.rake:6:in `initialize'
/var/www/html/redmine-1.2/lib/tasks/initializers.rake:6:in `open'
/var/www/html/redmine-1.2/lib/tasks/initializers.rake:6
@selfsimilar
selfsimilar / ror error
Created October 2, 2011 20:21
stack trace
$sudo rake --trace db:migrate:upgrade_plugin_migrations RAILS_ENV=production
(in /var/www/html/redmine-1.2.1)
** Invoke db:migrate:upgrade_plugin_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant Rails::Plugin::Dependencies
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:131:in `const_missing'
/var/www/html/redmine-1.2.1/vendor/plugins/redmine_google_calendar/init.rb:47:in `reloadable!'
/var/www/html/redmine-1.2.1/vendor/plugins/redmine_google_calendar/init.rb:47:in `each'