Skip to content

Instantly share code, notes, and snippets.

View jaymzcd's full-sized avatar
🍜
Maybe cooking some pad thai

jaymz campbell jaymzcd

🍜
Maybe cooking some pad thai
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jaymzcd on github.
  • I am jaymz (https://keybase.io/jaymz) on keybase.
  • I have a public key whose fingerprint is 8130 B5C5 7DD7 DF37 5F1E D32B 1F1B E3BE 4282 A8D1

To claim this, I am signing this object:

@jaymzcd
jaymzcd / youtrack-csv-fail.log
Created October 22, 2015 12:54
Driving me crazy...
13:49:45,086 WARN [BaseExceptionMapper ] [init servlet ] [root@127.0.0.1] REST exception for URL: /rest/admin/project/PLATFORM/customfield/project_id
jetbrains.mps.webr.rpc.rest.provider.exception.ForbiddenException: You have no permission for field [ project_id ] in project [PLATFORM ]
at jetbrains.charisma.smartadmin.rest.RequireReadPermissionToProjectFieldSecurityConstraint.check(RequireReadPermissionToProjectFieldSecurityConstraint.java:23)
at jetbrains.charisma.smartadmin.rest.AdminProjectProjectCustomfieldResource.get_CustomFieldName(AdminProjectProjectCustomfieldResource.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandler
@jaymzcd
jaymzcd / youtrack-csv-fail.log
Created October 22, 2015 12:54
Driving me crazy...
13:49:45,086 WARN [BaseExceptionMapper ] [init servlet ] [root@127.0.0.1] REST exception for URL: /rest/admin/project/PLATFORM/customfield/project_id
jetbrains.mps.webr.rpc.rest.provider.exception.ForbiddenException: You have no permission for field [ project_id ] in project [PLATFORM ]
at jetbrains.charisma.smartadmin.rest.RequireReadPermissionToProjectFieldSecurityConstraint.check(RequireReadPermissionToProjectFieldSecurityConstraint.java:23)
at jetbrains.charisma.smartadmin.rest.AdminProjectProjectCustomfieldResource.get_CustomFieldName(AdminProjectProjectCustomfieldResource.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandler
@jaymzcd
jaymzcd / ia_blocks_template.dot
Created January 6, 2015 11:57
Basic graph for drawing some techy diagrams
Digraph G {
compound = true;
nodesep = 2;
splines = ortho;
node[shape=record, fontsize=12, fontname=Helvetica, style=filled, fillcolor=white];
subgraph cluster_1 {
label = "System 1";
color = red;
@jaymzcd
jaymzcd / nginx.conf
Last active August 29, 2015 14:07 — forked from phpdude/nginx.conf
location /resize {
alias /tmp/nginx/resize;
set $width 150;
set $height 100;
set $dimens "";
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) {
set $width $1;
set $height $2;
set $image_path $3;
@jaymzcd
jaymzcd / ezproxy_oulist.txt
Created May 20, 2014 17:09
List of services from the root page of the OU
This is menu.htm from the docs subdirectory.
This page is the default menu of databases. It is typically used for testing, but not for deployment. See www.oclc.org/us/en/support/documentation/ezproxy/cfg/database.htm for more information.
Database Menu
IEEE Xplore
EEBO
ACS Publications
Cambridge Journals
@jaymzcd
jaymzcd / seb_mp3_names_from_files.py
Created April 23, 2014 16:47
Meh, can't be arsed :) not all tracks have id3 "files" it seems, and not all them have id3 tags! :) Will let you sort this out in some fancy tool way via iTunes or something, probably going OTT this way! :)
#!/usr/bin/env python2
import os
import re
for root, dirs, files in os.walk('.'):
for file in files:
if file[-1] == '0':
mp3 = os.path.join(root, file)
print "MP3: %s" % mp3
@jaymzcd
jaymzcd / menu_example.js
Last active August 29, 2015 13:57
Quick and dirty menu using nested arrays to any level and recursion
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script>
var menu = [
{name: "item 1", link: "http://google.com"},
{name: "item 2", items: [
{name: "subitem1", link: "#" },
{name: "subitem2", link: "#" }
]},
{name: 'item 3', link: 'http://u-dox.com'},
{name: 'item 4', link: '#'},
[16:12][bowser][jaymz][thbookdata][mergecp]$ ts
adicup: 1 windows (created Tue Jul 9 14:54:57 2013) [198x72]
bookapp: 3 windows (created Tue Jul 2 13:33:41 2013) [198x74]
bookdata: 4 windows (created Thu Jul 4 15:03:34 2013) [198x72]
brits: 2 windows (created Wed Jul 3 13:28:59 2013) [198x74]
catalog: 3 windows (created Wed Jul 3 10:34:50 2013) [198x72]
doxplatform: 1 windows (created Wed Jul 24 16:32:09 2013) [198x74]
dtsd: 2 windows (created Mon Jul 15 13:46:37 2013) [198x74]
iai: 3 windows (created Tue Jul 23 13:18:43 2013) [198x72]
leosound: 1 windows (created Fri Jul 26 09:38:26 2013) [198x72]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Project Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<link rel="shortcut icon" href="favicon.ico">
<!-- Twitter Bootstrap -->