Skip to content

Instantly share code, notes, and snippets.

View semanticdata's full-sized avatar
🦝

Miguel Pimentel semanticdata

🦝
View GitHub Profile
@ElianCodes
ElianCodes / workflows-nightly.yaml
Created March 15, 2024 07:01
Upgrade your Astro integrations nightly
name: nightly
on:
schedule:
- cron: '0 0 * * *'
jobs:
upgrade:
runs-on: ubuntu-latest
env:
@mitul45
mitul45 / ticktick-sync-json-to-csv.js
Created December 20, 2023 17:42
Convert TickTick backup JSON created by `thesamim/TickTickSync` Obsidian plugin to a format that TickTick accepts for import
const fs = require('fs');
const inputFilePath = "./ticktick.json"
const outputFilePath = "./ticktick-output.csv"
const blob = JSON.parse(fs.readFileSync(inputFilePath));
let output = `"Date: 2023-12-20+0000"
"Version: 7.1"
"Status:
0 Normal
@kj800x
kj800x / Hacking the LG Monitor's EDID.md
Last active May 3, 2024 20:14
Hacking the LG Monitor's EDID

preface: Posting these online since it sounds like these notes are somewhat interesting based on a few folks I've shared with. These are semi-rough notes that I basically wrote for myself in case I ever needed to revisit this fix, so keep that in mind.

I recently bought an LG ULTRAGEAR monitor secondhand off of a coworker. I really love it and it's been great so far, but I ran into some minor issues with it in Linux. It works great on both Mac and Windows, but on Linux it displays just a black panel until I use the second monitor to go in and reduce the refresh rate down to 60 Hz.

This has worked decent so far but there's some issues:

  • It doesn't work while linux is booting up. The motherboards boot sequence is visible just fine, but as soon as control is handed over to Linux and I'd normally see a splash screen while I'm waiting for my login window, I see nothing.
  • It doesn't work on the login screen. This would be fine if login consistently worked on my second screen, but I need to manually switch
@wouterraateland
wouterraateland / screenshot_guidelines.md
Created November 2, 2022 10:18
Consistent screenshots in browser

Consistent screen setup:

  1. Open devtools alt + cmnd + I
  2. Open device toolbar cmnd + shift + M
  3. Click on dots top right and click "Add device pixel ratio" (DPR)
  4. Set DPR (probably to 2.0)
  5. Set resolution

Consistent screenshots:

  1. Select the element you want to capture in the "Elements panel"
  2. Open command center cmnd + shift + P
@belgattitude
belgattitude / ci-pnpm-install.md
Last active June 26, 2024 13:02
Composite github action to improve CI time with pnpm

Why

Although @setup/node as a built-in cache option, it lacks an opportunity regarding cache persistence. Depending on usage, the action below might give you faster installs and potentially reduce carbon emissions (♻️🌳❤️).

Requirements

pnpm v7 or v8 (not using pnpm ? see the corresponding yarn action gist)

Bench

@iamandrewluca
iamandrewluca / bookmarklets.md
Last active June 3, 2024 18:43
Collection of bookmarklets that I use day to day #bookmarklets
@ld100
ld100 / ArchLinuxWSL2.md
Last active June 25, 2024 15:57
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Obsolete notice

This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var domStyle = document.createElement("style");
domStyle.append(
'* { color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }\
* * { background-color: rgba(0,255,0,.2) !important; }\
* * * { background-color: rgba(0,0,255,.2) !important; }\
* * * * { background-color: rgba(255,0,255,.2) !important; }\
* * * * * { background-color: rgba(0,255,255,.2) !important; }\
@parmentf
parmentf / GitCommitEmoji.md
Last active June 28, 2024 10:47
Git Commit message Emoji
@gtallen1187
gtallen1187 / scar_tissue.md
Created November 1, 2015 23:53
talk given by John Ousterhout about sustaining relationships

"Scar Tissues Make Relationships Wear Out"

04/26/2103. From a lecture by Professor John Ousterhout at Stanford, class CS142.

This is my most touchy-feely thought for the weekend. Here’s the basic idea: It’s really hard to build relationships that last for a long time. If you haven’t discovered this, you will discover this sooner or later. And it's hard both for personal relationships and for business relationships. And to me, it's pretty amazing that two people can stay married for 25 years without killing each other.

[Laughter]

> But honestly, most professional relationships don't last anywhere near that long. The best bands always seem to break up after 2 or 3 years. And business partnerships fall apart, and there's all these problems in these relationships that just don't last. So, why is that? Well, in my view, it’s relationships don't fail because there some single catastrophic event to destroy them, although often there is a single catastrophic event around the the end of the relation