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/sh | |
| set -eu | |
| SCRIPT_DIR="$(CDPATH= cd -- "$(dirname "$0")" && pwd)" | |
| BUILD_DIR="$SCRIPT_DIR/build" | |
| mkdir -p "$BUILD_DIR" | |
| clang \ | |
| -fobjc-arc \ | |
| -framework Foundation \ |
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
| #!/usr/bin/env bash | |
| # | |
| # Add an app bundle to the Finder toolbar without replacing the stock items. | |
| # | |
| # Usage: | |
| # ./add-to-finder-toolbar.sh /Applications/SomeApp.app POSITION | |
| # POSITION is 0-based; use -1 for the last position. | |
| set -euo pipefail |
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
| // Usage: | |
| // npm i otplib fs-extra irestore simple-plist prompt-sync cli-table3 tmp | |
| // node authy-extractor.js <iOS backup path> | |
| const { authenticator } = require('otplib'); | |
| const fs = require('fs-extra'); | |
| const IRestore = require('irestore'); | |
| const path = require('path'); | |
| const plist = require('simple-plist'); | |
| const prompt = require('prompt-sync')({ sigint: true }); |
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
| const fs = require('fs'); | |
| const path = require('path'); | |
| const readline = require('readline'); | |
| const clientId = ""; | |
| const clientSecret = ""; | |
| const TOKEN_FILE = 'token.json'; | |
| const tokenExists = () => fs.existsSync(TOKEN_FILE); | |
| const getAccessToken = () => JSON.parse(fs.readFileSync(TOKEN_FILE)).access_token; |
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
| const playlistId = ''; | |
| let playlist = await youtube.getPlaylist(playlistId); | |
| let videos = playlist.items; | |
| while (playlist.has_continuation) { | |
| playlist = await playlist.getContinuation(); | |
| videos = videos.concat(playlist.items); | |
| } |
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
| #!/usr/bin/env osascript -l JavaScript | |
| var filePaths = []; | |
| function fixFile(filePath) { | |
| console.log(filePath); | |
| var xcode = Application('Xcode'); | |
| xcode.activate(); |
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
| class LlvmMingwW64 < Formula | |
| desc "LLVM/Clang/LLD based mingw-w64 toolchain" | |
| homepage "https://github.com/mstorsjo/llvm-mingw" | |
| version "20230517" | |
| on_macos do | |
| url "https://github.com/mstorsjo/llvm-mingw/releases/download/#{version}/llvm-mingw-#{version}-ucrt-macos-universal.tar.xz" | |
| sha256 "ad4502a4a427aa16736c59e87e2f7657fe8431002133eb286984d25c2bd2c949" | |
| end | |
| on_linux do | |
| on_arm do |
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 | |
| check_battery() { | |
| shortcuts run 'Save Apple Watch Battery Level' | |
| FILENAME="$HOME/Library/Mobile Documents/iCloud~is~workflow~my~workflows/Documents/AppleWatchBattery.txt" | |
| LEVELS=(`tail -2 "$FILENAME"`) | |
| if [[ ${LEVELS[1]} -eq 100 && ${LEVELS[1]} -gt ${LEVELS[0]} ]]; then | |
| shortcuts run 'Apple Watch Fully Charged' |
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
| const { parse } = require('node-html-parser'); | |
| const { Feed } = require('feed'); | |
| const fetch = require('node-fetch'); | |
| const he = require('he'); | |
| const BERLIN_DAILY_NEWS_URL = 'https://www.exberliner.com/english-news-berlin/'; | |
| const parseHomeHtml = (html) => { | |
| const root = parse(html); |
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 { ActionPanel, showToast, ToastStyle, List, closeMainWindow } from "@raycast/api"; | |
| import fs from "fs"; | |
| import path from "path"; | |
| import { exec } from "child_process"; | |
| import untildify from "untildify"; | |
| type directories = { | |
| [key: string]: string; | |
| }; |
NewerOlder