Skip to content

Instantly share code, notes, and snippets.

@dnozay
dnozay / osx-fix-dock.sh
Created Aug 5, 2020
Fix bug where osx dock still shows when going fullscreen
View osx-fix-dock.sh
#!/bin/bash
# https://apple.stackexchange.com/questions/33600/
# Fix bug where osx dock still shows when going fullscreen
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -float 0.14
killall Dock
View README.md
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
pdf-diff lorem-ipsum1.pdf lorem-ipsum2.pdf > diff.png
View swimlanes.dot
digraph cloud_platform {
rankdir=LR
splines=ortho
subgraph cluster_1 {
11 -> 12 -> 13 -> 14
}
subgraph cluster_2 {
21 -> 22 -> 23 -> 24
@dnozay
dnozay / LICENSE
Created Apr 10, 2020
Find projects to fix in github based on matches in semaphore 2.0 secrets
View LICENSE
The MIT License
Copyright (c) 2020, Damien Nozay
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
View main.go
// exercise issue.
// https://github.com/semaphoreci/agent/pull/77
package main
import (
"fmt"
petname "github.com/dustinkirkland/golang-petname"
)
@dnozay
dnozay / FAQ.md
Created Sep 20, 2019
common problems with VSCode
View FAQ.md

Quick FAQ for issues I had with VSCode.

Best way to use this document is to ctrl-f / cmd-f.

vscode: go to symbol command not working (cmd-t)

Error:

/Library/Developer/CommandLineTools/usr/bin/ctags: illegal option -- -
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
@dnozay
dnozay / My Exiftool Cheatsheet.md
Last active May 23, 2020 — forked from rjames86/My Exiftool Cheatsheet.md
Cheatsheet for image / video metadata manipulation.
View My Exiftool Cheatsheet.md

Cheatsheet for image / video metadata manipulation.

Last updated 2019-07-24

Disclaimer

until more specific license...

THE CONTENT BELOW IS PROVIDED "AS-IS",
WE DISCLAIM LIABILITY FOR ALL USES TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW.
@dnozay
dnozay / LICENSE
Created Jul 2, 2019
This is a simple script to look at projects configuration in SemaphoreCI 1.0.
View LICENSE
Copyright (c) 2019 Damien Nozay
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@dnozay
dnozay / go-test2json-junit.py
Created Jun 4, 2019
transform test2json output to junit
View go-test2json-junit.py
#!/usr/bin/env python3
from collections import defaultdict
from datetime import datetime
import json
import fileinput
import os
import pprint
from xml.dom.minidom import Document
View testhelper.go
// LogNow logs the information right away.
// This is particularly useful for debugging information in case of a
// panic, or because (*testing.T) Log() output is buffered and rolled
// up with its parent test output.
func LogNow(t *testing.T, format string, args ...interface{}) {
_, file, line, ok := runtime.Caller(1)
if ok {
if file != "" {
// Truncate file name
if index := strings.LastIndex(file, "/"); index >= 0 {
You can’t perform that action at this time.