Skip to content

Instantly share code, notes, and snippets.

@Flashwalker
Flashwalker / may-the-fork-be-with-you.sh
Created May 12, 2017 00:49
May the fork be with your lang
#!/bin/sh
# May the fork be with your lang
wget -U 'Mozilla/5.0' -qO- "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=ru&dt=t&q=`telnet towel.blinkenlights.nl 666 2>/dev/null|tail -2`" | awk -F'"' '{print $2}'
@Flashwalker
Flashwalker / md2bbc.pl
Last active June 16, 2017 16:27 — forked from RogerDodger/md2bbc.pl
Converts Markdown to BBCode (for Hubzilla)
#!/usr/bin/env perl
## Oriented for Hubzilla hub bbcode
## https://gist.github.com/Flashwalker/360e8615bff1b9b322e0096fe92680ab
## Origin: https://gist.github.com/RogerDodger/4405595
## Dependencies:
## sudo apt-get install libtext-markdown-perl libtext-typography-perl
@Flashwalker
Flashwalker / terminum.css
Last active October 22, 2018 20:40
Terminum: a skin for Ubiquity addon
/*
=skin=
@name Terminum
@author Flashwalker
@homepage https://flashwalker.bitbucket.io
@email flashwalker[at]freeside.ru
@license WTFPL2 http://wtfpl2.com/
=/skin=
*/
@Flashwalker
Flashwalker / index.html
Created August 24, 2021 07:33
Responsive stepper - JS Bin // source https://jsbin.com/potifat
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Responsive stepper - JS Bin</title>
<style id="jsbin-css">
.t-body {
margin: 0;
}
@Flashwalker
Flashwalker / smb-local-subnet-only.bat
Created September 9, 2021 15:23
Block remote smb network in connections on Windows
::Set firewall on
netsh advfirewall set currentprofile state on
::Block in connections from all
netsh advfirewall firewall add rule name="blockSMBforeign_TCP-139" action=block protocol=TCP dir=in localport=139 remoteip=any
netsh advfirewall firewall add rule name="blockSMBforeign_TCP-445" action=block protocol=TCP dir=in localport=445 remoteip=any
::Allow only local connections from 192.16.0.0/16 subnet
netsh advfirewall firewall add rule name="allowSMB_0_0_16_TCP-139" action=allow protocol=TCP dir=in localport=139 remoteip=192.168.0.0/16
netsh advfirewall firewall add rule name="allowSMB_0_0_16_TCP-445" action=allow protocol=TCP dir=in localport=445 remoteip=192.168.0.0/16
@Flashwalker
Flashwalker / Lo-Fi Fullscreen 🎵️ (Chilled Cow) (Chromium) (YouTube Music)
Last active September 12, 2022 08:31
Lo-Fi Music Radio Fullscreen 🎵️ (Chilled Cow) (YouTube Music) (Chromium) (Linux)
## Listen Lo-Fi redio from YouTube Music in Chromium fullscreen popup window on Linux
--------------------------------------------------------------------------------------
Run install.sh in terminal to install
@Flashwalker
Flashwalker / bitmap2svg.sh
Created November 23, 2022 20:38
Convert image to svg (wrap image with svg) (embed image to svg) (jpg, png, gif... etc)
#!/bin/bash
# Wrap image with svg and output the svg file
#### Options
svgwidth=''
svgheight=''
imgwidth=''
imgheight=''
############
@Flashwalker
Flashwalker / flatpak-theme-takeover.sh
Last active January 16, 2023 01:27
Copy and set your current GTK3 theme over another's Flatpak theme
#!/bin/bash
# Copy and set your current GTK3 theme over another's Flatpak theme.
# It's like a raider takeover of some Flatpak theme 😁 🙃.
# NOTICE: some Flatpak theme must be already installed.
#
# What if you set your custom GTK3 theme for your desktop and want it for Flatpak?
# Use this script to takeover of another's Flatpak theme and set it!
USAGE(){
@Flashwalker
Flashwalker / yandex-dzen-dark-theme.user.js
Last active April 2, 2023 06:47
Set the dark theme on Yandex dzen
// ==UserScript==
// @name Yandex dzen dark theme
// @namespace http://tampermonkey.net/
// @version 0.0.3
// @description Set the dark theme on Yandex dzen
// @author You
// @match http*://dzen.ru/*
// @match http*://*.dzen.ru/*
// @match http*://*.*.dzen.ru/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=dzen.ru
@Flashwalker
Flashwalker / open-url-prompt.user.js
Last active May 2, 2023 15:10
Open url alert prompt userscript
// ==UserScript==
// @name Open url prompt
// @version 0.0.3
// @match *://*/*
// @author Flashwalker
// @description Press Ctrl+Shift+: or Ctrl+Shift+' to open location prompt
// @updateURL https://gist.githubusercontent.com/Flashwalker/c02e28809a897c4955f34e271db0e427/raw/open-url-prompt.user.js
// @downloadURL https://gist.githubusercontent.com/Flashwalker/c02e28809a897c4955f34e271db0e427/raw/open-url-prompt.user.js
// @homepage https://gist.github.com/Flashwalker/c02e28809a897c4955f34e271db0e427
// ==/UserScript==