Skip to content

Instantly share code, notes, and snippets.

View dnck's full-sized avatar
😉
The essence of belief is the establishment of a habit.

Dan J Cook dnck

😉
The essence of belief is the establishment of a habit.
View GitHub Profile
@dnck
dnck / styles.less
Created April 12, 2022 14:31 — forked from yakovkhalinsky/styles.less
My Atom editor personal stylesheet
// colour vars (or color if you're American)
@plain-black: #000;
@plain-white: #fff;
@funky-green: #00ff00; // original
.title-bar {
padding: 15px;
letter-spacing: 0.08em;
font-size: 1.1em;
}
@dnck
dnck / fix_exfat_drive.md
Created December 10, 2019 17:28 — forked from scottopell/fix_exfat_drive.md
Fix corrupted exFAT disk macOS/OSX

exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.

Disk Utility is unable to repair this at first, but the fix is this:

  1. Use diskutil list to find the right drive id.
  2. You want the id under the IDENTIFIER column, it should look like disk1s1
  3. Run sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3
  4. -d is debug so you'll see all your files output as they're processed.
  5. Answer YES if it gives you the prompt Main boot region needs to be updated. Yes/No?
@dnck
dnck / gephistreamer_tutorial.py
Created October 24, 2019 08:38
A tutorial for gephistreamer
# coding: utf-8
# # Basic import
from gephistreamer import graph
from gephistreamer import streamer
# # Creating a streamer
# We use a websocket to connect the client to the server.
# The websocket defaults are localhost:8080 and workspace1. The server should be running in a Workspace with the name, "helix". So, make sure you change the workspace name according to your needs.
# Everything that is done here in Python can also be acheived through curl commands, but that is a bit slower.