-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- PGP signing 🔏 - Some TypeScript ⌨️ - Font tweaks 𝑻 - Windows 98 inspired icon for Dark mode switcher
- Loading branch information
1 parent
bfcf230
commit a089e38
Showing
21 changed files
with
12,919 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "typescript", | ||
"tsconfig": "tsconfig.json", | ||
"option": "watch", | ||
"problemMatcher": ["$tsc-watch"], | ||
"group": "build" | ||
}, | ||
{ | ||
"type": "typescript", | ||
"tsconfig": "tsconfig.json", | ||
"problemMatcher": ["$tsc"], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 0 additions & 16 deletions
16
content/blog/2019/privacy-and-security-series-part-i-password-managers/index.md.asc
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//@ts-check | ||
import React from 'react'; | ||
import { Link } from 'gatsby'; | ||
|
||
import { rhythm } from '../utils/typography'; | ||
|
||
const rawGithubPrefixUrl = | ||
'https://raw.githubusercontent.com/jay-hankins/jayhankins.me/master/content/blog/'; | ||
|
||
const githubPrefixUrl = | ||
'https://github.com/jay-hankins/jayhankins.me/tree/master/content/blog'; | ||
|
||
const PGPInfo = ({ slug }) => { | ||
return ( | ||
<div className="PGPInfo"> | ||
<ul> | ||
<li> | ||
<a href={`${githubPrefixUrl}${slug}`}>View Post Source</a> | ||
</li> | ||
<li> | ||
<a href={`${githubPrefixUrl}${slug}index.md.asc`}> | ||
View PGP Signature | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PGPInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"target": "es5", | ||
"jsx": "preserve", | ||
"outDir": "utils/" | ||
}, | ||
"exclude": ["node_modules", "**/node_modules/*"], | ||
"include": ["utils/src/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var fs = require("file-system"); | ||
var child_process_1 = require("child_process"); | ||
function spawnGPG(filePath) { | ||
console.log("Signing " + filePath); | ||
var options = ['--armor', '--batch', '--sign']; | ||
var childProc = child_process_1.spawn('gpg', options.concat([filePath])); | ||
childProc.on('exit', function (code) { | ||
code !== 0 ? console.log("GPG error code: " + code) : null; | ||
}); | ||
} | ||
function signOrSkipFile(filePath) { | ||
fs.access(filePath + ".asc", fs.constants.F_OK, function (err) { | ||
if (err && err.code === 'ENOENT') { | ||
spawnGPG(filePath); | ||
} | ||
}); | ||
} | ||
function signFolder(folderPath) { | ||
fs.recurse(folderPath, ['**/*.md'], function (filePath, relative, fileName) { | ||
if (fileName) { | ||
signOrSkipFile(filePath); | ||
} | ||
}); | ||
} | ||
signFolder('content/blog'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = { | ||
env: { | ||
node: true, | ||
es6: true, | ||
}, | ||
parserOptions: { | ||
sourceType: 'module', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import * as fs from 'file-system'; | ||
import { spawn } from 'child_process'; | ||
|
||
function spawnGPG(filePath: string): void { | ||
console.log(`Signing ${filePath}`); | ||
|
||
const options: Array<string> = ['--armor', '--batch', '--sign']; | ||
const childProc = spawn('gpg', [...options, filePath]); | ||
childProc.on('exit', code => { | ||
code !== 0 ? console.log(`GPG error code: ${code}`) : null; | ||
}); | ||
} | ||
|
||
function signOrSkipFile(filePath: string): void { | ||
fs.access(`${filePath}.asc`, fs.constants.F_OK, err => { | ||
if (err && err.code === 'ENOENT') { | ||
spawnGPG(filePath); | ||
} | ||
}); | ||
} | ||
|
||
function signFolder(folderPath: string): void { | ||
fs.recurse( | ||
folderPath, | ||
['**/*.md'], | ||
(filePath: string, relative: string, fileName: string) => { | ||
if (fileName) { | ||
signOrSkipFile(filePath); | ||
} | ||
} | ||
); | ||
} | ||
|
||
signFolder('content/blog'); |
Oops, something went wrong.