It happens that there are many standards for storing cryptography materials (key, certificate, ...) and it isn't always obvious to know which standard is used by just looking at file name extension or file content. There are bunch of questions on stackoverflow asking about how to convert from PEM to PKCS#8 or PKCS#12, while many tried to answer the questions, those answers may not help because the correct answer depends on the content inside the PEM file. That is, a PEM file can contain many different things, such as an X509 certificate, a PKCS#1 or PKCS#8 private key. The worst-case scenario is that someone just store a non-PEM content in "something.pem" file.
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
// zod schema | |
z.object({ | |
// valid if string or: | |
optional: z.string().optional(), // field not provided, or explicitly `undefined` | |
nullable: z.string().nullable(), // field explicitly `null` | |
nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined` | |
}); | |
// type | |
{ |
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
export function identity<T>(item: T) { | |
return item | |
} |
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
// ==UserScript== | |
// @name OG Developer Sound Pack | |
// @namespace https://saldainius.lt | |
// @downloadUrl https://gist.github.com/Dainius14/8a9d5bfa06458a93a00b8d34111e7e4f/raw/og-developer-sound-pack.user.js | |
// @updateUrl https://gist.github.com/Dainius14/8a9d5bfa06458a93a00b8d34111e7e4f/raw/og-developer-sound-pack.user.js | |
// @website https://gist.github.com/Dainius14/8a9d5bfa06458a93a00b8d34111e7e4f/ | |
// @version 1.5.2 | |
// @description Plays sound when interacting with Bitbucket and Jira | |
// @author Dainius | |
// @match https://bitbucket.cid-dev.net/projects/*/repos/*/pull-requests/* |
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
;; File has moved over to https://github.com/kaushikgopal/dotfiles/blob/master/.karabiner.edn | |
;; Feel free to raise github issues in that repo, if you have questions/comments/edits |
Line-up
Recordings (added progressively)
social engineering
,media manipulation
- Note: Basically How to Become TripAdvisor’s #1 Fake Restaurant
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
#!/usr/bin/env ruby | |
require "fileutils" | |
require "shellwords" | |
require "yaml" | |
CIRCLE1_DEFAULT_CACHE_DIRECTORIES = [ | |
"vendor/bundle", | |
"~/.m2", | |
"~/.bundle", |
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
// smash Medium's clap button the max number of times | |
function simulateClick(node) { | |
var md = document.createEvent('MouseEvents'); | |
md.initEvent('mousedown', true, false); | |
node.dispatchEvent(md); | |
var mu = document.createEvent('MouseEvents'); | |
mu.initEvent('mouseup', true, false); | |
node.dispatchEvent(mu); | |
} |
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
(() => { | |
const up$ = new MouseEvent("mouseup", { bubbles: true }); | |
const down$ = new MouseEvent("mousedown", { bubbles: true }); | |
const node = document.querySelector( | |
`.js-postActionsFooter button[data-action="multivote"]` | |
); | |
let attempts = 0; |
npm list -g --depth=0
NewerOlder