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 / yandex-image-buttons.user.js
Last active September 9, 2024 04:50
Buttons for opening Yandex images on yandex.ru/images/search
// ==UserScript==
// @name yandex-image-buttons
// @namespace http://tampermonkey.net/
// @version 0.3.5
// @description Add buttons (open image & open same) to image viwer on yandex.ru/images/search
// @author Flashwalker
// @match http*://yandex.ru/images/search*
// @updateURL https://gist.github.com/Flashwalker/72c2d871984377075adbe622bb7f9fab/raw/yandex-image-buttons.user.js
// @downloadURL https://gist.github.com/Flashwalker/72c2d871984377075adbe622bb7f9fab/raw/yandex-image-buttons.user.js
// @homepage https://gist.github.com/Flashwalker/72c2d871984377075adbe622bb7f9fab
@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 / WPS-Office-block.bat
Created September 9, 2021 15:27
Block WPS Office internet connections
:: Replace all 11.2.0.9967 with yours installed version
netsh advfirewall firewall add rule name="WPS Office" dir=in action=block program="C:\Program Files\WPS Office\11.2.0.9967\utility\config.exe" enable=yes
netsh advfirewall firewall add rule name="WPS Office" dir=in action=block program="C:\Program Files\WPS Office\11.2.0.9967\office6\mui\default\resource\ksee\EqnEdit.exe" enable=yes
netsh advfirewall firewall add rule name="WPS Office" dir=in action=block program="C:\Program Files\WPS Office\11.2.0.9967\office6\et.exe" enable=yes
netsh advfirewall firewall add rule name="WPS Office" dir=in action=block program="C:\Program Files\WPS Office\11.2.0.9967\office6\kcrashdumper.exe" enable=yes
netsh advfirewall firewall add rule name="WPS Office" dir=in action=block program="C:\Program Files\WPS Office\11.2.0.9967\office6\kcrashdumper64.exe" enable=yes
netsh advfirewall firewall add rule name="WPS Office" dir=in action=block program="C:\Program Files\WPS Office\11.2.0.9967\office6\ksolaunch.exe" enable=yes
net
@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 / obsidian-webclip-as-markdown.user.js
Last active June 4, 2023 04:21
Obsidian web clipper. Send selected content to Obsidian as markdown
// ==UserScript==
// @name Send selected content to Obsidian as markdown
// @version 0.6.8
// @match *://*/*
// @author Flashwalker
// @description Gareth Stretton https://medium.com/@gareth.stretton/obsidian-create-your-own-web-clipper-add83c7662d0 + StackOverflow https://stackoverflow.com/questions/4176923/html-of-selected-text/4177234#4177234
// @updateURL https://gist.github.com/Flashwalker/40f23e01942cc72a47df61bb86821714/raw/obsidian-webclip-as-markdown.user.js
// @downloadURL https://gist.github.com/Flashwalker/40f23e01942cc72a47df61bb86821714/raw/obsidian-webclip-as-markdown.user.js
// @homepage https://gist.github.com/Flashwalker/40f23e01942cc72a47df61bb86821714
// @require https://unpkg.com/turndown/dist/turndown.js