Skip to content

Instantly share code, notes, and snippets.

@dotnetCarpenter
dotnetCarpenter / gpg.strace
Created May 10, 2019
WSL Ubuntu: git gpg signing Inappropriate ioctl for device
View gpg.strace
5834 execve("/usr/bin/gpg", ["gpg", "--clearsign"], 0x7fffe5253560 /* 23 vars */) = 0
5834 brk(NULL) = 0x7fffcb04c000
5834 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
5834 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
5834 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
5834 fstat(3, {st_mode=S_IFREG|0644, st_size=22726, ...}) = 0
5834 mmap(NULL, 22726, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa8e7598000
5834 close(3) = 0
5834 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
5834 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
@dotnetCarpenter
dotnetCarpenter / file1.mjs
Created Jul 20, 2018
es-check ES2015 modules
View file1.mjs
export default msg => { console.log(msg) }
@dotnetCarpenter
dotnetCarpenter / # python@2 - 2018-06-15_12-09-28.txt
Created Jun 15, 2018
python@2 on macOS 10.13.5 - Homebrew build logs
View # python@2 - 2018-06-15_12-09-28.txt
Homebrew build logs for python@2 on macOS 10.13.5
Build date: 2018-06-15 12:09:28
@dotnetCarpenter
dotnetCarpenter / 2017-12-16T08_57_12_227Z-debug.log
Created Dec 16, 2017
npm can not find package.json in git repository
View 2017-12-16T08_57_12_227Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/home/dotnet/.nvm/versions/node/v8.9.3/bin/node',
1 verbose cli '/home/dotnet/.nvm/versions/node/v8.9.3/bin/npm',
1 verbose cli 'i',
1 verbose cli '-g',
1 verbose cli 'git@github.com:dotnetCarpenter/node-ecstatic.git' ]
2 info using npm@5.6.0
3 info using node@v8.9.3
4 verbose npm-session d03ba394f38d5f28
5 silly install loadCurrentTree
@dotnetCarpenter
dotnetCarpenter / Kernel.php
Last active Apr 2, 2020
`./artisan server` for Lumen 5.3. Kernel.php is in app/Console/ and ServeCommand should be created in app/Console/Commands/
View Kernel.php
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Laravel\Lumen\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
@dotnetCarpenter
dotnetCarpenter / pre-push
Last active Nov 13, 2016
Before you push hook for svg.js
View pre-push
#!/bin/sh
npm run build:test && npm run test:quick
# check how the test went
testCode=$?
[ "$testCode" = 0 ] || echo "Your current build does not pass our unit tests - please make them pass before you push"
# revert artifacts created during build
git reset --hard $(git log -1 --pretty=%H)
# exit with the test exit code
@dotnetCarpenter
dotnetCarpenter / npm_test_output
Last active Oct 27, 2016
npm test fails but if we run the indivudual tests or the commands in the tests, everything is ok.
View npm_test_output
C:\Users\korsoxx\jon\pipetree>npm test
> pipetree@0.1.0 test C:\Users\korsoxx\jon\pipetree
> tap spec/*.js --100
spec/httpsget.js ...................................... 1/1 8s
spec/integration.js ................................... 0/4 3s
downloadUrl should
not ok Error: Command failed: node integration/cat.js fixtures/releases.json | node integration/downloadUrl.js 'C:\Users\korsoxx\.node-spawn-wrap-11056-b87e533d7c69' is not recognized as an internal or external command, operable program or batch file.
at:
View keybase.md

Keybase proof

I hereby claim:

  • I am dotnetCarpenter on github.
  • I am dotnetcarpenter (https://keybase.io/dotnetcarpenter) on keybase.
  • I have a public key whose fingerprint is 4DBC 96AE 79EE EACF 4052 AF89 AB34 16B5 6900 250B

To claim this, I am signing this object:

@dotnetCarpenter
dotnetCarpenter / dabblet.css
Last active Sep 27, 2016
Minimum required to set an underline that can be animated
View dabblet.css
/**
* Minimum required to set an underline that can be animated
*/
.f-jons-demo1 h2 {
display: inline; /* an inline element only takes up the size of its content (the content is "Hello World") */
color: darkred;/* not needed - set the color of the text */
background: linear-gradient(grey, grey) bottom / 100% .1em no-repeat;
}
/* The above can also be written like this: */
@dotnetCarpenter
dotnetCarpenter / dabblet.css
Last active Sep 27, 2016 — forked from LeaVerou/dabblet.css
Text-underline-animation
View dabblet.css
/**
* Text-underline-animation
*/
a {
font-size: 500%;
text-decoration: none;
background: linear-gradient(currentColor, currentColor) bottom / 0 .1em no-repeat;
transition: 1s background-size;
}