Skip to content

Instantly share code, notes, and snippets.

@YesThatAllen
YesThatAllen / gist:6097019
Created July 28, 2013 01:49
error regarding zendesk plugin to reorder apps
WARNING: The way that the {{view}} helper affects templates is about to change. Previously, templates inside child views would use the new view as the context. Soon, views will preserve their parent context when rendering their template. You can opt-in early to the new behavior by setting `ENV.VIEW_PRESERVES_CONTEXT = true`. For more information, see https://gist.github.com/2494968. You should update your templates as soon as possible; this default will change soon, and the option will be eliminated entirely before the 1.0 release. vendor-4eeb7f12fbe79c0106bafa8d2b88580c.js?host=watchmanmonitoring.zendesk.com:12
'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead.
Object
installed.js:705
Failed to load resource: the server responded with a status of 404 (Not Found) https://watchmanmonitoring.zendesk.com/agent/assets/icons/globals-s54b9a09d1f.png
Object
installed.js:718
@YesThatAllen
YesThatAllen / gist:8328404
Created January 9, 2014 02:25
nginx conf used to host our discourse community, where any http request is moved to https for delivery
# Additional MIME types that you'd like nginx to handle go in here
types {
text/csv csv;
}
upstream discourse {
server unix:/var/www/discourse/tmp/sockets/thin.0.sock;
server unix:/var/www/discourse/tmp/sockets/thin.1.sock;
server unix:/var/www/discourse/tmp/sockets/thin.2.sock;
server unix:/var/www/discourse/tmp/sockets/thin.3.sock;
@YesThatAllen
YesThatAllen / gist:8382519
Created January 12, 2014 09:10
errors from a newbie running Discourse on a 10.9.1 box
Finished in 4 minutes 14.5 seconds
3367 examples, 26 failures
Failed examples:
rspec ./spec/controllers/list_controller_spec.rb:29 # ListController indexes allows users to filter on a set of topic ids
rspec ./spec/models/topic_spec.rb:1202 # Topic for_digest returns regular topics
rspec ./spec/models/topic_spec.rb:773 # Topic revisions changing category removing a category creates a new revision
rspec ./spec/models/topic_spec.rb:882 # Topic change_category with a previous category when the category exists resets the category
rspec ./spec/models/topic_spec.rb:803 # Topic change_category without a previous category should not change the topic_count when not changed
@YesThatAllen
YesThatAllen / rake.rb
Last active December 15, 2020 13:14
Rake tasks in Discourse as of April 13, 2017
# /var/discourse# ./launcher enter app
# RAILS_ENV=production bundle exec rake -T
rake about # List versions of all Rails frameworks and the environment
rake add_topic_to_quotes # Add the topic to quotes
rake admin:create # Creates a forum administrator
rake admin:invite[email] # invite an admin to this discourse instance
rake api_key:get # generate api key if missing, return existing if already there
rake assets:clean[keep] # Remove old compiled assets
rake assets:clobber # Remove compiled assets
<?php
/*
Plugin Name: Disqus Comment System
Plugin URI: http://disqus.com/
Description: The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus. Head over to the Comments admin page to set up your DISQUS Comment System.
Author: Disqus <[email protected]>
Version: 2.74
Author URI: http://disqus.com/
*/
tester105-vm (172.16.46.105)
total 8
drwxr-xr-x 5 root wheel 170 Dec 28 07:24 .
drwxr-xr-x 6 root wheel 204 Dec 28 07:24 ..
drwxr-xr-x 8 root wheel 272 Dec 28 11:46 2.3
drwxr-xr-x 11 root wheel 374 Dec 28 12:48 2.5
lrwxr-xr-x 1 root wheel 3 Dec 28 07:24 Current -> 2.5
@YesThatAllen
YesThatAllen / wm.sh
Last active August 29, 2015 14:02
How to install the Watchman Monitoring agent in four lines
/usr/bin/defaults write /Library/MonitoringClient/ClientSettings ClientGroup -string "Insert_ClientGroup_variable_here" && \
/usr/bin/curl -L --sslv3 https://{subdomain}.monitoringclient.com/downloads/MonitoringClient.pkg > /tmp/MonitoringClient.pkg && \
/usr/sbin/installer -target / -pkg /tmp/MonitoringClient.pkg
/bin/rm /tmp/MonitoringClient.pkg
@YesThatAllen
YesThatAllen / postflight-add-on.py
Last active June 15, 2017 17:44
Disabling a Watchman Monitoring plugin before first run
#To disable a specific plugin
# Don't.. you probably would rather have the plugin ignored on the server side, so that the data can still be gathered.
Instructions for clearing expired DigiCert SSL certificate on OSX
NOTICE: The following instructions “worked for me.” Proceed at your own risk.
Symptoms:
* Visiting several sites, such as github, gravatar, twitter’s CDN results in “invalid certificate” errors
* For example: http://i.imgur.com/8gPRfI3.png
## Instructions
@YesThatAllen
YesThatAllen / gist:674ef18167494d991597
Created September 29, 2014 02:10
Liteswitch looping logs
9/28/14 9:09:09.887 PM NotificationCenter[1037]: Dock connection interrupted!
9/28/14 9:09:09.887 PM NotificationCenter[1037]: disconnect 0x60800010f150
9/28/14 9:09:09.888 PM NotificationCenter[1037]: Dock connection invalid!
9/28/14 9:09:09.888 PM NotificationCenter[1037]: disconnect 0x0
9/28/14 9:09:09.900 PM com.apple.xpc.launchd[1]: (com.apple.Dock.agent[58574]) Service exited with abnormal code: 1
9/28/14 9:09:09.987 PM WindowServer[216]: Surface testing disallowed updates for 10 sequential attempts...
9/28/14 9:09:09.996 PM WindowServer[216]: Surface test allowed updates after 11 attempts
9/28/14 9:09:10.000 PM kernel[0]: Sandbox: storeuid(1803) deny mach-lookup com.apple.dock.server
9/28/14 9:09:10.000 PM kernel[0]: Sandbox: storeuid(1803) deny mach-lookup com.apple.dock.server
9/28/14 9:09:10.673 PM com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.