Skip to content

Instantly share code, notes, and snippets.

View nutjob4life's full-sized avatar
💭
Contemplating next hair color

Sean Kelly nutjob4life

💭
Contemplating next hair color
View GitHub Profile
@nutjob4life
nutjob4life / ignore.css
Created May 19, 2020 01:54
Ignore this
:root {
--primary-color: #fff;
--background-color: #e5e5e5;
--text-color: #2d2d2d;
}
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: Lato;
@nutjob4life
nutjob4life / interesting.txt
Last active March 18, 2020 17:19
Interesting
__ _______ .______ __ __ ______ .__ __. _______
| | | ____| | _ \ | | | | / __ \ | \ | | | ____|
| | | |__ | |_) | | |__| | | | | | | \| | | |__
| | | __| | ___/ | __ | | | | | | . ` | | __|
| | | | | | | | | | | `--' | | |\ | | |____
|__| |__| | _| |__| |__| \______/ |__| \__| |_______|
.___________. __ __ _______ .__ __. .___ ___. _______ .___________. _______ .______
| || | | | | ____|| \ | | | \/ | | ____|| || ____|| _ \
`---| |----`| |__| | | |__ | \| | | \ / | | |__ `---| |----`| |__ | |_) |
@nutjob4life
nutjob4life / crash.log
Created February 27, 2020 14:27
Minecraft Launcher (654 (1)) reliably crashing after starting Minecraft Java Edition (1.15.2) on macOS (10.15.3)
Process: launcher [48979]
Path: /Applications/Minecraft.app/Contents/MacOS/launcher
Identifier: com.mojang.minecraftlauncher
Version: 654 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: launcher [48979]
User ID: 501
Date/Time: 2020-02-27 08:25:18.461 -0600
from zope.component.hooks import setSite
setSite(app.plone)
catalog = app.plone.portal_catalog
results = catalog(portal_type='MyType')
if len(results) > 0:
print 'Found items of "MyType" in the catalog! Our product that provides MyType is being used!'
Calling:
migrationTool = getToolByName(portal, 'portal_migration')
migrationTool.upgrade(dry_run=False)
On a Plone 5.0.4 site to upgrade to Plone 5.0.7 gives this (but works fine upgarding to Plone 5.0.6):
2017-03-24 17:11:24 ERROR plone.app.upgrade Upgrade aborted. Error:
Traceback (most recent call last):
File "/Users/kelly/.buildout/eggs/Products.CMFPlone-5.0.7-py2.7.egg/Products/CMFPlone/MigrationTool.py", line 268, in upgrade
fo.write('{}\t{}\t{}\t{}\t{}\t{}\t\n'.format(
rock_jd[x], julian_date[match[y]], rock_ra[x], rock_dec[x], rock_mag[x], cadence[match[y]]
)
-------------------------------------------------------------------------------
Test set: org.apache.oodt.cas.resource.queuerepo.TestXmlQueueRepository
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.132 sec <<< FAILURE!
testMapping(org.apache.oodt.cas.resource.queuerepo.TestXmlQueueRepository) Time elapsed: 0.119 sec <<< FAILURE!
junit.framework.AssertionFailedError: expected:<[test-queue-1, quick]> but was:<[quick, test-queue-1]>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:280)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:71)
@nutjob4life
nutjob4life / keybase.md
Created September 17, 2014 21:55
Proof of Sean Kelly's (nutjob4life's) Keybase proof (https://keybase.io/nutjob).

Keybase proof

I hereby claim:

  • I am nutjob4life on github.
  • I am nutjob (https://keybase.io/nutjob) on keybase.
  • I have a public key whose fingerprint is B2A2 33AF 1AD1 8B14 F1A5 4068 E421 E163 B304 646A

To claim this, I am signing this object:

@nutjob4life
nutjob4life / gist:9a9bb9803aa67ca51aec
Created August 12, 2014 15:51
Shapely with libgeos-dev, python-numpy, and cython installed
Running setup.py install for Shapely
building 'shapely.speedups._speedups' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include -I/usr/include/python2.7 -c shapely/speedups/_speedups.c -o build/temp.linux-x86_64-2.7/shapely/speedups/_speedups.o
shapely/speedups/_speedups.c: In function ‘__pyx_pf_7shapely_8speedups_9_speedups_2geos_linestring_from_py’:
shapely/speedups/_speedups.c:1533:20: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
shapely/speedups/_speedups.c:1891:20: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
shapely/speedups/_speedups.c: In function ‘__pyx_pf_7shapely_8speedups_9_speedups_4geos_linearring_from_py’:
shapely/speedups/_speedups.c:2575:20: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
shapely/speedups/_speedups.c:3021:20: warning: assignment discards ‘cons
@nutjob4life
nutjob4life / gist:4c9e23d9ba599d8731d9
Created June 26, 2014 22:54
Another JCC setup.py patch
--- setup.py.orig 2014-06-26 17:16:26.000000000 -0500
+++ setup.py 2014-06-26 17:51:32.000000000 -0500
@@ -44,6 +44,8 @@
elif platform in ("darwin",):
try:
from helpers.darwin import JAVAHOME, JAVAFRAMEWORKS
+ # Don't use Java 8 on my system:
+ JAVAHOME = '/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home'
except ImportError:
JAVAHOME = None