Skip to content

Instantly share code, notes, and snippets.

View hedefalk's full-sized avatar

Viktor Hedefalk hedefalk

View GitHub Profile
@hedefalk
hedefalk / gist:bf96685098a8cb7d964625c79fa4d421
Created March 29, 2019 07:42
hit refresh on attestation report page
2019-03-29 07:39:53.004 QUERY [user.sessions] : {"status": {"$ne": "done"}, "last": {"$lt": ISODate("2019-03-29T07:27:53.000Z")}}. 0 returned.
2019-03-29 07:39:53.004 QUERY [main.presence] : {"ts": {"$lt": ISODate("2019-03-29T07:34:53.001Z")}}. 0 returned.
2019-03-29 07:39:53.006 QUERY [main.reminder_dues] : {"isSent": false, "due": {"$lte": ISODate("2019-03-29T07:44:53.001Z")}}. 0 returned.
2019-03-29 07:39:54.970 QUERY [user.extsessions] : {"_id": UUID("8a47393c-e444-7d38-33c0-a2836555e893")}. 1 returned.
2019-03-29 07:39:54.973 UPDATE [sessions] : {"_id": "node01xgokhdkztnp377n8pg9ukty30"}, {"$set": {"status": "active", "last": ISODate("2019-03-29T07:39:54.967Z")}}. 1 updated.
2019-03-29 07:39:55.002 QUERY [user.users] : {"_id": ObjectId("5c1b7e0f06026f305f1d7d56")}. 1 returned.
2019-03-29 07:39:55.006 QUERY [main.companies] : {"_id": ObjectId("51e96f2284ae91c8800365d4")}. 1 returned.
2019-03-29 07:39:55.011 QUERY [main.notifications] : {"ar": {"$ne": true}, "u": ObjectId("5c
@hedefalk
hedefalk / gist:ac6a21aab8b775b3681563b792d53c5a
Last active August 2, 2018 23:02
Building gerbv on mac WIP
Need autopoint which is part of gettext:
brew install gettext
Keg only so need to have the path:
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.zshrc
Unfortunatly libtool and libtoolize are prefixed with g on homebrew? So edited autoconf.sh accordingly,
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="444.13pt" height="274.58pt" viewBox="0 0 444.13 274.58" version="1.1">
<defs>
<clipPath id="clip1">
<path d="M 0 13 L 444.128906 13 L 444.128906 274.578125 L 0 274.578125 Z M 0 13 "/>
</clipPath>
</defs>
<g id="surface1">
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(93.600464%,18.22052%,18.275452%);fill-opacity:1;" d="M 32.09375 29.601562 C 26.949219 29.601562 22.761719 25.414062 22.761719 20.269531 C 22.761719 15.125 26.949219 10.9375 32.09375 10.9375 C 37.238281 10.9375 41.421875 15.125 41.421875 20.269531 C 41.421875 25.414062 37.238281 29.601562 32.09375 29.601562 Z M 51.011719 13.042969 C 48.089844 5.429688 40.722656 -0.00390625 32.09375 -0.00390625 C 20.914062 -0.00390625 11.820312 9.089844 11.820312 20.269531 C 11.820312 31.445312 20.914062 40.542969 32.09375 40.542969 C 40.523438 40.542969 47.761719 35.367188 50.8125 28.03125 C 51.808594 25.640625 52.363281 23.0195
Process: pcbnew [75736]
Path: /usr/local/Caskroom/kicad/4.0.7/Kicad-apps/kicad.app/Contents/Applications/pcbnew.app/Contents/MacOS/pcbnew
Identifier: org.kicad-pcb.pcbnew
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: pcbnew [75736]
User ID: 501
Date/Time: 2018-03-08 14:16:13.733 +0100
@hedefalk
hedefalk / gist:98a89e5aa0c6dc104549cda7836bed03
Created March 4, 2018 08:42
eeschema erc after import of pure-vcf
ERC report (2018 March 04, Sunday 09:41:02, Encoding UTF8 )
***** Sheet /
ErrType(8): Global label not connected to any other global label
@ (116.84 mm,17.78 mm): Global label B$1 is not connected to any other global label.
ErrType(4): Conflict problem between pins. Severity: warning
@ (345.44 mm,81.28 mm): Pin 1 (Power input) of component #SUPPLY02 is connected to
@ (381.00 mm,68.58 mm): pin 11 (Unspecified) of component IC5 (net 2).
ErrType(3): Pin connected to some others pins but no pin to drive it
@ (345.44 mm,81.28 mm): Pin 1 (Power input) of component #SUPPLY02 is not driven (Net 2).
( pcb2gcode 1.3.2 )
( Software-independent Gcode )
( This file uses 6 drill bit sizes. )
( Bit sizes: [0.3mm] [0.4mm] [0.6mm] [0.8mm] [1mm] [1.016mm] )
G94 (Inches per minute feed rate.)
G20 (Units == INCHES.)
G91.1 (Incremental arc distance mode.)
G90 (Absolute coordinates.)
@hedefalk
hedefalk / keybase.md
Created December 5, 2017 12:21
keybase.md

Keybase proof

I hereby claim:

  • I am hedefalk on github.
  • I am hedefalk (https://keybase.io/hedefalk) on keybase.
  • I have a public key ASAaK0ZXnEU5eqaD0heM2NNM71Cy2LRDC9KfiQmZAtjXZAo

To claim this, I am signing this object:

@hedefalk
hedefalk / gist:3e66f60714714675f8805ef68f97acba
Created August 31, 2017 07:52
npm publish ensime-client 0.10
~/d/p/ensime-node ❯❯❯ npm publish ⏎ master ◼
> ensime-client@0.10.0 prepublish /Users/viktor/dev/projects/ensime-node
> typings install; gulp build
typings WARN enoent Path "/Users/viktor/dev/projects/ensime-node/typings.json" is missing
[09:51:11] Using gulpfile ~/dev/projects/ensime-node/gulpfile.js
[09:51:11] Starting 'compile-ts'...
2017-03-10 21:02:44,977 - octoprint.server.util.sockjs - INFO - New connection from client: 10.0.1.20
2017-03-10 21:02:46,668 - octoprint.plugins.announcements - INFO - Loaded channel _important from http://octoprint.org/feeds/important.xml in 0.34s
2017-03-10 21:02:47,469 - octoprint.plugins.announcements - INFO - Loaded channel _news from http://octoprint.org/feeds/news.xml in 0.26s
2017-03-10 21:02:48,637 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2017-03-10 21:04:56,309 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.0.1.20
2017-03-10 21:04:58,101 - octoprint.server.util.sockjs - INFO - New connection from client: 10.0.1.20
2017-03-10 21:05:44,321 - tornado.access - WARNING - 404 GET /static/webassets/sockjs.js.map (127.0.0.1) 3.39ms
2017-03-10 21:09:47,529 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.0.1.20
2017-03-10 21:09:49,456 - tornado.access - WARNING - 404 GET /static/webassets/sockjs.js.map (127.0.0.1) 3.42ms
2017-03-10 21:
@hedefalk
hedefalk / scad
Created February 15, 2017 09:30
OctoPI mount
*color("red") translate([-5, 96.5, 0]) rotate([90, 0, 0])
import("/Users/viktor/Downloads/Support.STL");
*color("red") translate([-80, 96.5, 0]) rotate([90, 0, 0])
import("/Users/viktor/Downloads/Support.STL");
hole_height = 5;
M3_diam = 2.8;
module raised_hole(innerdiam) {