Skip to content

Instantly share code, notes, and snippets.

View holazt's full-sized avatar
🐧
Learning everything...

Ahmed holazt

🐧
Learning everything...
  • Geeker
  • City of Science
View GitHub Profile
@holazt
holazt / myobsidian.css
Created April 19, 2022 12:06 — forked from emisjerry/myobsidian.css
[My Obsidian CSS snippet for Ebullientworks theme] Changes for Ebullientworks theme #obsidian #obsidian-css
/* BEGIN: ebullientworks Dark Theme */
/* dark theme: code block原為--blue-2 */
.theme-dark {
--pre-code: var(--purple-3);
--tags: var(--pink-2);
}
/* dark mode在highlight裡黃底時,白色游標看不見 */
.theme-dark .cm-highlight {
caret-color: var(--text-highlight-fg);
@holazt
holazt / README.md
Created April 1, 2022 14:27 — forked from kabili207/Rclone systemd service.md
Rclone systemd user service

rclone systemd service

Preparation

This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.

Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.

mkdir ~/mnt/dropbox
@holazt
holazt / rclone-dropbox.service
Created April 1, 2022 13:15 — forked from guyru/rclone-dropbox.service
# Autostart rclone mount using systemd
[Unit]
Description=Dropbox (rclone)
AssertPathIsDirectory=%h/Dropbox
# Make sure we have network enabled
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount --vfs-cache-mode full Dropbox: Dropbox
@holazt
holazt / obsidian-ios-sync.md
Created March 12, 2022 13:42 — forked from agmm/obsidian-ios-sync.md
How to sync Obsidian Notes on iOS

⚠️ To prevent data loss make sure you understand how rclone sync and rclone copy work.

How to sync Obsidian Notes on iOS

  1. Download iSH from the AppStore

  2. Open iSH and install rclone and nano with the following command:

apk add rclone nano
@holazt
holazt / wordle.md
Created February 4, 2022 11:37 — forked from huytd/wordle.md
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@holazt
holazt / workflow_dispatch-from-blob.user.js
Created October 11, 2021 12:28 — forked from dscho/workflow_dispatch-from-blob.user.js
Trigger GitHub workflow_dispatch from the blob view of the workflow file
// ==UserScript==
// @name Trigger workflow_dispatch from the blob view of the workflow file
// @source https://gist.github.com/dscho/585172971f0989ed340a563bbacc6cad
// @updateURL https://gist.github.com/dscho/585172971f0989ed340a563bbacc6cad/raw/workflow_dispatch-from-blob.user.js
// @downloadURL https://gist.github.com/dscho/585172971f0989ed340a563bbacc6cad/raw/workflow_dispatch-from-blob.user.js
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Trigger a workflow from the blob view of the workflow file
// @author Johannes Schindelin
// @match https://github.com/*/blob/*/.github/workflows/*.yml
@holazt
holazt / dark_horse_downloader.js
Created July 10, 2021 05:45 — forked from oxguy3/dark_horse_downloader.js
Greasemonkey script for downloading a DRM-free copy of your Dark Horse digital comics
// ==UserScript==
// @name Dark Horse Downloader
// @namespace http://schiff.io/
// @version 0.1
// @description Download a DRM-free copy of your Dark Horse digital comics.
// @author Hayden Schiff (oxguy3)
// @match https://digital.darkhorse.com/read/*
// @match https://digital.darkhorse.com/bookshelf*
// @include https://*.cloudfront.net/*
// @grant GM_xmlhttpRequest
@holazt
holazt / script-template.sh
Created December 25, 2020 03:13 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@holazt
holazt / gnome-terminal-profiles.adoc
Created December 16, 2020 14:55
Export / Import Gnome Terminal Profiles

Export Gnome Terminal Profile

List profiles

dconf dump /org/gnome/terminal/legacy/profiles:/

Determine the terminal profile string for the profile you will need. This is the terminal profile that I will export:

@holazt
holazt / shanbay_remember.js
Created December 1, 2020 10:44 — forked from yihong0618/shanbay_remember.js
扇贝加密破解自动发送今日新词到 telegram
const https = require("https");
const token = ""; // change this to you telegram bot token!
const chatId = ""; // change this to your telegram chat id!
const cookie = ""; // change this to your shanbay cookie!
const PATH_API = (page) =>
`/wordsapp/user_material_books/blozps/learning/words/today_learning_items?ipp=10&page=${page}&type_of=NEW`;
const options = {