Skip to content

Instantly share code, notes, and snippets.

@Arty2
Arty2 / vscode_settings.json
Last active Oct 24, 2021
Visual Studio Code Markdown styles inspired from iAWriter
View vscode_settings.json
"editor.tokenColorCustomizations": {
"[Material Theme Darker]": { // replace with your dark theme
"textMateRules":[
{
"scope": [
"markup.italic.markdown",
"punctuation.definition.italic.markdown",
"punctuation.definition.bold.markdown",
"markup.bold.markdown",
"string.other.link.title.markdown",
@Arty2
Arty2 / objkt-capture-frames.js
Last active May 30, 2021
Browser console script to render frames from a rotating OBJKT on hicetnunc.xyz and save as PNGs
View objkt-capture-frames.js
/*
objkt-capture-frames.js
Description: Browser console script to render frames from a rotating OBJKT on hicetnunc.xyz and save as PNGs
Version: 0.2
Author: Heracles Papatheodorou / @Arty2
Website: https://gist.github.com/Arty2/cc438cc516bfc443cf4f7756343188bc
License: MIT License
*/
// styles for the new elements
@Arty2
Arty2 / fixedsearch.js
Last active Oct 3, 2021 — forked from cmod/hugofastsearch.md
Super fast, client side search for Hugo.io with Fusejs.io
View fixedsearch.js
// static/scripts/fixedsearch/fixedsearch.js
/*--------------------------------------------------------------
fixedsearch — Super fast, client side search for Hugo.io with Fusejs.io
based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993
--------------------------------------------------------------*/
if (typeof variable !== 'undefined') {
console.log('fixedsearch.js already loaded');
} else {
fixedsearch = function(){
@Arty2
Arty2 / jpg-to-page-bundle.bat
Last active Dec 27, 2020
Loop through every .jpg file in the same directory and make a Hugo page bundle out of each.
View jpg-to-page-bundle.bat
@echo OFF
rem loop through all JPG files
for %%f IN (*.jpg) DO (
rem make a new directory with the same filename
mkdir %%~nf
rem move file the new directory
move %%f %%~nf/%%f
rem go inside the new directory
cd %%~nf
@Arty2
Arty2 / logitech-craft.ahk
Created May 23, 2020
Hide popup for Logitech Craft's crown.
View logitech-craft.ahk
; make Logitech craft windows transparent, restart the script and use the crown to hide it
; see https://github.com/Logitech/logi_craft_sdk/issues/31
; ← everything after this character is a comment
SetTimer, LogiOverlay, -5000 ; this timer runs once, after 5 seconds
LogiOverlay(){
If WinExist("ahk_EXE LogiOverlay.exe") {
WinClose, ahk_EXE LogiOverlay.exe ; close the window, comment to disable
; WinSet, Transparent, 20, ahk_EXE LogiOverlay.exe ; uncomment this line to change its opacity instead
}
@Arty2
Arty2 / mic-toggle.ahk
Created Apr 16, 2020
An AutoHotKey script to mute/unmute all microphones on a system level. Works with Windows 10.
View mic-toggle.ahk
; An AutoHotKey script to mute/unmute all microphones on a system level. Toggle with Caps Lock.
; Emits a single beep on mute, double on unmute. Tray icon changes accordingly.
; Requires https://www.nirsoft.net/articles/mute_microphone_command_line.html
; Note: SoundSet doesn't work as intented
; TODO: detect tap and hold to speak, based on https://github.com/YoYo-Pete/AutoHotKeys/blob/master/PushToTalk.ahk
; https://www.howtogeek.com/446418/how-to-use-caps-lock-as-a-modifier-key-on-windows/
; also https://stackoverflow.com/questions/1794258/detect-a-double-key-press-in-autohotkey
$Capslock::
@Arty2
Arty2 / dropbox-paper-focus.css
Created Apr 6, 2020
dropbox-paper-focus.css
View dropbox-paper-focus.css
/*
A set of styles that turns the sideba and menus partialy transparent when the cursor is not over them.
Includes some stylistic changes over the display of text, eg. — instead of bullet points, Anonymous Pro font (if exists on the system).
*/
::-moz-selection { background: #000; }
::selection { background: #000; }
/*---------
@Arty2
Arty2 / custom-accent.css
Last active Apr 7, 2020
Firefox CSS to change the accent color on top of tabs. Use with userChrome.css
View custom-accent.css
/*
1. Navigate to `%APPDATA%\Mozilla\Firefox\Profiles ...` or locate the exact directory at `about:profiles`
2. Create a folder named `chrome` then create a file named userChrome.css inside it and paste this code
3. If userChrome.css doesn’t seem to work, open `about:config` and set `toolkit.legacyUserProfileCustomizations.stylesheets=true`
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
.tab-line[selected="true"] {
background-color : #841ebe;
@Arty2
Arty2 / thin-scrollbars.css
Last active Sep 10, 2019
User Style for Firefox that replaces all scrollbards with their thin equivalent. To be used with Stylus or similar extention.
View thin-scrollbars.css
* {
scrollbar-color: rebeccapurple transparent; /* ← use a color that matches your Firefox of Windows 10 color-scheme */
scrollbar-width: thin;
}
@Arty2
Arty2 / airtable-dark-theme.css
Created Aug 29, 2019
User Style for airtable.com that introduces a Dark theme and other visual tweaks. To be used with Stylus or similar extention
View airtable-dark-theme.css
/*
Makes text a bit blurry due to ClearType being disabled when CSS Filters are used. Should probably use a less *naive* way.
*/
#hyperbaseContainer {
filter: invert(100%);
}
#hyperbaseContainer img,
#hyperbaseContainer button { /* revert images back to normal */