Skip to content

Instantly share code, notes, and snippets.

import "@johnlindquist/kit";
import { generateMultiple, GenerateOptions } from "generate-password";
import rc from "rc";
const defaultConfig = {};
const config: GenerateOptions = rc("generate-password", defaultConfig);
const flags = {
copy: {
import "@johnlindquist/kit";
import { generateMultiple, GenerateOptions } from "generate-password";
import rc from "rc";
const defaultConfig = {};
const config: GenerateOptions = rc("generate-password", defaultConfig);
const flags = {
copy: {
// Name: Lorem ipsum
import "@johnlindquist/kit";
import { loremIpsum, ILoremIpsumParams } from "lorem-ipsum";
let ret: ReturnType<typeof loremIpsum>;
const DEFAULTS = {
count: 1,
// Name: Lorem ipsum
import "@johnlindquist/kit";
import { loremIpsum, ILoremIpsumParams } from "lorem-ipsum";
let ret: ReturnType<typeof loremIpsum>;
const DEFAULTS = {
count: 1,
@abernier
abernier / README.md
Last active September 7, 2023 08:31
toggle dark mode: 🔋 → 🌚 / 🔌 → ☀️

Every 60s: toggle dark mode if on battery (save previous value). If back on power, revert to previous value.

NB: You'll get a notification when changed.

INSTALL

  • ~/toggle_dark_mode.sh (don't forget to chmod u+x it)
  • ~/Library/LaunchAgents/com.user.toggle_dark_mode.plist
{
"asset" : {
"generator" : "Khronos glTF Blender I/O v1.7.33",
"version" : "2.0"
},
"scene" : 0,
"scenes" : [
{
"name" : "Scene",
"nodes" : [

Keybase proof

I hereby claim:

  • I am abernier on github.
  • I am abernier_ (https://keybase.io/abernier_) on keybase.
  • I have a public key ASDyVK6AAgsQ_KVnrAmaEj6kS1HWl5Iy_igxPqaU86P5ego

To claim this, I am signing this object:

@abernier
abernier / README.md
Last active May 26, 2020 15:20
ironunits