This file contains hidden or 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
import "@johnlindquist/kit"; | |
// Menu: Code Snippets | |
// Description: Easily organize your code snippets | |
// Author: Altrim Beqiri | |
// Twitter: @altrimbeqiri | |
import "@johnlindquist/kit"; | |
const wrapCode = (html: string) => `<pre class="px-4"> |
This file contains hidden or 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
import "@johnlindquist/kit"; | |
// Menu: Translate Image | |
// Description: Translate text extracted from a selected image | |
// Author: Altrim Beqiri | |
// Twitter: @altrimbeqiri | |
const vision = await npm("@google-cloud/vision"); | |
const gtranslate = await npm("@google-cloud/translate"); | |
const { Translate } = gtranslate.v2; |
This file contains hidden or 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
import "@johnlindquist/kit"; | |
// Menu: Translate Image | |
// Description: Translate text extracted from a selected image | |
// Author: Altrim Beqiri | |
// Twitter: @altrimbeqiri | |
const vision = await npm("@google-cloud/vision"); | |
const gtranslate = await npm("@google-cloud/translate"); | |
const { Translate } = gtranslate.v2; |
This file contains hidden or 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
import "@johnlindquist/kit"; | |
// Menu: Translate Image | |
// Description: Translate text extracted from a selected image | |
// Author: Altrim Beqiri | |
// Twitter: @altrimbeqiri | |
const vision = await npm("@google-cloud/vision"); | |
const gtranslate = await npm("@google-cloud/translate"); | |
const { Translate } = gtranslate.v2; |
This file contains hidden or 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
import "@johnlindquist/kit"; | |
// Menu: Translate Image | |
// Description: Translate text extracted from a selected image | |
// Author: Altrim Beqiri | |
// Twitter: @altrimbeqiri | |
const vision = await npm("@google-cloud/vision"); | |
const gtranslate = await npm("@google-cloud/translate"); | |
const { Translate } = gtranslate.v2; |
This file contains hidden or 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
import "@johnlindquist/kit"; | |
// Menu: Layout Shift | |
// Description: Testing layout shift | |
// Author: Altrim Beqiri | |
// Twitter: @altrimbeqiri | |
const delayPromise = (ms = 3000) => new Promise((res) => setTimeout(res, ms)); | |
while (true) { | |
await arg({ |
This file contains hidden or 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
import "@johnlindquist/kit"; | |
// Menu: Speed Test | |
// Description: Test the speed and performance of your internet connection | |
// Author: Altrim Beqiri | |
// Twitter: @altrimbeqiri | |
const speedTest = await npm("speedtest-net"); | |
interface SpeedTestResult { |
This file contains hidden or 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
import "@johnlindquist/kit"; | |
// Menu: Speed Test | |
// Description: Test the speed and performance of your internet connection | |
// Author: Altrim Beqiri | |
// Twitter: @altrimbeqiri | |
const speedTest = await npm("speedtest-net"); | |
interface SpeedTestResult { |
This file contains hidden or 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
import "@johnlindquist/kit"; | |
// Menu: Notion Thoughts | |
// Description: Add quick thoughts to a notion journal page | |
// Author: Altrim Beqiri | |
// Twitter: @altrimbeqiri | |
/** @type {typeof import("@notionhq/client")} */ | |
const { Client } = await npm("@notionhq/client"); | |
/** @type {typeof import("date-fns")} */ |
This file contains hidden or 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
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
apt-get install pkg-config libmagickwand-dev -y | |
cd /tmp | |
wget https://pecl.php.net/get/imagick-3.4.4.tgz | |
tar xvzf imagick-3.4.4.tgz |
NewerOlder