Skip to content

Instantly share code, notes, and snippets.

@cvladan
cvladan / README.md
Last active July 19, 2023 02:19
Fixed "CSS to Tailwind" Chrome Extension

I have corrected the original extension CSS To Tailwind to make it work again, but how long it will continue to work remains to be seen.

To install the modified extension, please follow these steps:

  1. Download the .zip file css-to-tailwind-2.0.0.0-fixed.zip from this Gist.
  2. Unzip the file and save it somewhere on your computer.
  3. Remove the existing "official" version of the extension, which is not working anyway.
  4. Open Google Chrome and go to the "Extensions" page. You can access the Extensions page by entering chrome://extensions in the address bar.
  5. Enable "Developer mode" by toggling the switch in the top right corner of the page.
  6. Click on the "Load Unpacked" button that appears in left area.
@phenomen
phenomen / Gallery.astro
Created January 26, 2023 18:29
NoJS Astro + TailwindCSS Gallery with Lightbox Zoom
@sheepla
sheepla / LinuxユーザーのためのWindowsカスタマイズガイド.md
Last active November 4, 2024 08:15
LinuxユーザーのためのWindowsカスタマイズガイド

LinuxユーザーのためのWindowsのおすすめツール・アプリケーション+個人的なカスタマイズガイド

これはなに?

普段はLinux(Arch Linux + i3)を使っているsheeplaが、Windowsでいい感じの環境を作るためにもがいた記録です。 「キーボード操作ですべてを完結させたい」「お気に入りのフォント・キーバインドを設定して生活したい」といったこだわりを捨てられない人におすすめです。 逆に、「安定した環境を使いたい」「Windowsのデフォルトの設定を壊したくない」「細々としたカスタマイズに時間を掛けたくない」人や商用のリッチなソフトウェアを多用する人にはあまり役に立たないかもしれません。

ターミナル

@mattbell87
mattbell87 / remote-wsl.md
Last active November 6, 2024 01:04
VSCode Remote: Connect to WSL2 from another machine

VSCode Remote: Connect to WSL2 from another machine

Do you want to do remote development on your WSL2 container in Visual Studio Code? Read this.

Proxy jump method

  1. On the host set up OpenSSH for Windows
  2. Run wsl --update to make sure you are running the latest WSL
  3. Open WSL and install another SSH server inside WSL with sudo apt-get install openssh-server
  4. Now run sudo systemctl enable --now ssh to automatically start ssh when WSL starts.
@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active November 11, 2024 09:31
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

@panakuma
panakuma / RTXとNEC IXでNGN網折り返しIPSec IX側
Last active November 2, 2023 13:38
RTXとNEC IXでNGN網折り返しIPSec構築 (RTXはVPNに必要な部分だけ)
! NEC Portable Internetwork Core Operating System Software
! IX Series IX2105 (magellan-sec) Software, Version 10.1.14, RELEASE SOFTWARE
! Compiled Mar 06-Wed-2019 14:03:05 JST #2
! Current time Mar 26-Tue-2019 04:29:21 JST
!
timezone +09 00
!
logging buffered 204800
!
ntp server 133.243.238.163
@ytakano
ytakano / epubVertical.sh
Last active August 15, 2024 15:04
横書きのepubファイルを縦書きに変更するスクリプト
#!/usr/bin/env sh
if [ $# -ne 1 ]; then
echo "need epub file!" 1>&2
echo "example:" 1>&2
echo " $ $0 ebook.epub" 1>&2
exit 1
fi
FILE=`basename "$1" .epub`
@erukiti
erukiti / review.md
Last active October 20, 2024 03:33
Re:VIEWチートシート

Re:VIEWチートシート

いつもいつもいつもRe:VIEWの記法に悩んでぐぐってしまう皆さんへ送るチートシートです。

基本

名称 ルール 概要・備考
段落 1行以上の空行をはさむと別の段落になる HTMLでいうP
見出し =ではじまる行 =の個数で、章・節・項・段という感じで増えます。HTMLで言うH1, H2, H3, H4, H5
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active November 17, 2024 04:56 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export to tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@poppen
poppen / init.lua
Last active May 18, 2018 23:44
KarabinerでやっていたことをHammerspoonで代替する(USキーボード用)
local VK_SEMICOLON = 0x29
local VK_ESC = 0x35
local VK_RIGHT_BRACKET = 0x21
local VK_J = 0x26
-- Auto reload config
function reloadConfig(files)
doReload = false
for _,file in pairs(files) do
if file:sub(-4) == ".lua" then