Skip to content

Instantly share code, notes, and snippets.

View sentouki's full-sized avatar
✔️

Rodion Chaykovskiy sentouki

✔️
View GitHub Profile
@sentouki
sentouki / CreateWebProject.bat
Created February 4, 2023 22:42
Bash/Batch script for creating basic structure for a web project, including index.html, main.js and main.css
::
:: Usage: >create [PROJECTNAME | PATH\PROJECTNAME]
::
@echo off
set INPUT="%1"
if "%1"=="" echo "Missing project name" && goto:eof
@sentouki
sentouki / Pihole-Cloudflared.dockerfile
Created September 17, 2022 21:51
Pi-hole with built-in cloudflared
# This Dockerfile assumes that you're building for arm64 architecture
# If you're going to use your Pi-hole on any other architecture (e.g. armhf or amd64), please adjust the cloudflared download link
# You may also download an already build image with: docker pull sentouki/pihole-cloudflared
FROM pihole/pihole:latest
EXPOSE 80
EXPOSE 53
RUN apt update && apt install -y wget
RUN wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64 \
@sentouki
sentouki / forcefocus.js
Created February 9, 2022 19:31
Force focus on an html element (e.g. input)
/*
force focus for one element,
works only on one element/page.
usage example:
<input type="text" forcefocus/>
*/
(function(){}