Skip to content

Instantly share code, notes, and snippets.

@natanlao
natanlao / syncthing-photo-sync.md
Last active May 12, 2024 22:51
Syncing iPhone photos with Syncthing

For those who prefer to avoid solutions like iCloud Photos and Dropbox for backing up photos, you can sync your iPhone photos with Syncthing. To do this, you'll need two things:

  • Möbius Sync is, to my knowledge, the only actively-maintained Syncthing client for iOS. It's free to sync up to 20 MB, and only $4.99 (one-time) to remove that limit.

  • PhotoSync is a nifty iOS app for syncing photos to a number of different destinations. It's free for low-quality

@Blackshome
Blackshome / low-battery-notifications-and-actions.yaml
Last active May 12, 2024 22:51
low-battery-notifications-and-actions.yaml
blueprint:
name: Low Battery Notifications & Actions
description: >
# 🪫 Low Battery Notifications & Actions
**Version: 2.1**
🚀 Stay Charged, Stay Smart! Let's automate and take charge of your battery maintenance!🔋⚡
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Scrollbar</title>
<style>
.scroll-box {
position: relative;
/* border-right: 1px solid #000; */
@AustinWongParker
AustinWongParker / gist:cdbd9fc78afb8336259331ecd6417910
Last active May 12, 2024 22:51
Deploying Flask Website | Amazon Lightsail
How to deploy your flask application using Amazon Lightsail
-----------------------------------------------------------
Lightsail set-up:
1. Go to Lightsail and spin-up an Ubuntu server
a. I did Ubuntu 18.04 LTS
2. Assign a static IP to it -> Networking tab of your instance (save this for later).
3. Create your www.website_here.com Domain and DNS zone on LightSail
a. Navigate back to home page of lightsail -> Domains & DNS -> create new DNS zone -> specify your domain name (I got mine from domains.google.com)
b. Go to domains.google.com and go to DNS -> Custom Name Servers
c. You want the flow to be Lightsail name servers -> put into domains.google name servers to route them
@brooksvb
brooksvb / Uptime-Kuma-Status-Page-Dark-Mode-High-Density-Tweaks.css
Last active May 12, 2024 22:50
These CSS tweaks are for higher density display for Uptime Kuma status pages in dark mode.
:root {
--min-item-width: 28ch;
--max-item-width: .5fr;
--grid-spacing: .25rem;
--item-padding: .25rem;
}
/* Let items expand on small screens */
@media (max-width: 600px) {
:root {
@HPZ07
HPZ07 / FixYoutubeAltTabPlayPauseIssue.user.js
Last active May 12, 2024 22:50
Fix YouTube's Alt-Tab Pause/Play Issue
// ==UserScript==
// @name Fix YouTube's Alt-Tab Pause/Play Issue
// @namespace http://tampermonkey.net/
// @version 0.4
// @description Fix YouTube's Alt-Tab Pause/Play Issue
// @author HPZ07
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Scrollbar</title>
<style>
.scroll-box {
position: relative;
/* border-right: 1px solid #000; */
@Dexterp37
Dexterp37 / simple-use-mamba.ipynb
Created March 20, 2024 10:34
Using Vision Mamba (Vim) for image classification
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AlexPl292
AlexPl292 / .ideavimrc
Last active May 12, 2024 22:46
My `~/.ideavimrc` file
let mapleader=" "
""" Plugins --------------------------------
set surround
set multiple-cursors
set commentary
set argtextobj
set easymotion
set textobj-entire
set ReplaceWithRegister
@HPZ07
HPZ07 / DisableYoutubeScrolling.user.js
Last active May 12, 2024 22:42
Disable YouTube Spacebar Scrolling
// ==UserScript==
// @name Disable YouTube spacebar scrolling
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Disables spacebar scrolling and forces it to pause the video instead
// @author HPZ07
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==