Skip to content

Instantly share code, notes, and snippets.

@bespoyasov
bespoyasov / removeNotStarredRepls.js
Last active May 10, 2024 14:48
Removes all repls one by one from list on https://repl.it/repls page
/**
* Removes all not starred repls one by one
* from list on https://repl.it/repls page
*
* Open browser console, put code in it
* and hit enter:
*/
const iterationsLimit = 1000
let iterationIndex = 0,
// Turn all HTML <a> elements into client side router links, no special framework-specific <Link> component necessary!
// Example using the Next.js App Router.
import { useRouter } from 'next/navigation';
import { useEffect } from 'react';
function useLinkHandler() {
let router = useRouter();
useEffect(() => {
let onClick = e => {
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 10, 2024 14:48
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
# Have you ever had multiple branches stacked on top of each other waiting for code review
# and need to merge origin/master (or some other change) up the chain through each of them.
# This script will do that!
# Example: merge_through_each master branch_parent branch_child branch_grand_child
run_command () {
echo ""
echo "running: $@"
if ! $@
@bespoyasov
bespoyasov / export-apple-notes.js
Last active May 10, 2024 14:47
Export content from the Apple Notes app.
/**
* Open Script Editor, change the current language to JavaScript, and paste the following code.
* You can also save the script as an app for faster access and run.
*
* By default, password-protected notes' content will be empty.
* For exporting protected notes as well, unlock them first.
*
* Based on: https://macmost.com/export-all-of-the-notes-on-your-mac-using-a-script.html,
* extends it with support for writing non-ASCII characters.
*/
@pagrpagr
pagrpagr / AppsList.md
Created March 29, 2024 02:31
Great Apps for Mac, iPhone, and iPad.

AppsList

Great Apps for Mac, iPhone, and iPad. Please submit any recommendations you have here. If you want a pretty, shareable list (most likely with less apps) share this link

Browsers

Arc - Productivity Focused Browser (Mac, iPhone)

Brave - Privacy Focused Browser (Mac, iPhone, iPad)

Orion - Safari alternative that supports Chrome extensions (Mac, iPhone, iPad)

@giridharmb
giridharmb / MACOSX-Notes.md
Last active May 10, 2024 14:46
Mac OSX Notes

Default Screenshot Location

defaults write com.apple.screencapture location /Users/user1/Desktop/screenshots

iCloud Drive - Create Soft Link

# ln -s /Users/user1/Library/Mobile\ Documents/com~apple~CloudDocs /Users/user1/icloud_drive
@caltemose
caltemose / fresh-mac-notes.md
Created October 4, 2015 14:54
Fresh Mac Notes
@swillits
swillits / appledev.html
Created February 11, 2017 06:11
Useful Apple Dev
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
body {
margin: 0;
padding: 0;
background: white;
font-family: 'Helvetica Neue', Helvetica, Arial, Geneva, sans-serif;