Skip to content

Instantly share code, notes, and snippets.

View dewcked's full-sized avatar
🐢
Slow turtle

dewcked

🐢
Slow turtle
  • No job.
  • Kyonggi-do, South Korea
View GitHub Profile
@dewcked
dewcked / script.js
Created April 28, 2022 14:09
Enable dark theme (via firefox console - F12) in addon.mozilla.org aka AMO
// Navigate to any AMO webpage and run the script in console
// AMO/blog, AMO/etc.... are not supported.
function decimalToHex(decimal) {
if (decimal < 16)
return "0" + decimal.toString(16);
else if (decimal > 255)
return "00";
else
return decimal.toString(16);
@dewcked
dewcked / Guide-to-watch-Youtube-while-keeping-privacy.md
Last active April 13, 2022 10:38
Guide to watch Youtube while keeping privacy in chromium based browsers

Disclaimer

The author is not responsible for any results occured by referencing to this document.

How to

Ublock Origin

ublock origin is great anti tracker & ad blocker. But you can use adblock instead.

@dewcked
dewcked / vscode-clang-format-command.txt
Created February 14, 2022 14:50
Windows visual studio style clang-format executable command
clang-format --style="{BasedOnStyle: llvm,Standard: Latest,AccessModifierOffset: -2,AlignAfterOpenBracket: Align,ColumnLimit: 0,IndentWidth: 2,NamespaceIndentation: All,BreakBeforeBraces: Allman,UseTab: Never,TabWidth: 2,PointerAlignment: Right}" "src.cpp" > "temp_src.cpp" & move /Y "temp_src.cpp" "src.cpp"
@dewcked
dewcked / Windows-10-Desktop-Aqtinstall-Guide.md
Last active February 14, 2022 14:13
Windows 10 (amd) Desktop Aqtinstall Qt installation and setting guide

This simple guide might be maintained for my needs.

Todo: convert default vscode format setting into clang formatter style

Todo2: figure out right way to use project specific setting.

Installation

Install prerequirements.

@dewcked
dewcked / sveltekit-post.js
Created December 12, 2021 12:28
Script for transporting yaml-markdown into compatible svelte route directory files.
import { parse } from 'marked';
import fs from 'fs';
import { promisify } from 'util';
import { resolve } from 'path';
const readdir = promisify(fs.readdir);
const readFile = promisify(fs.readFile);
const writeFile = promisify(fs.writeFile);
const access = promisify(fs.access);
const mkdir = promisify(fs.mkdir);