Skip to content

Instantly share code, notes, and snippets.

View andviro's full-sized avatar
🐢
I may be slow to respond.

Andrew Rodionoff andviro

🐢
I may be slow to respond.
View GitHub Profile
@andviro
andviro / SolarizedDark.theme
Created November 3, 2022 09:36 — forked from randName/SolarizedDark.theme
Solarized Dark Theme for Windows (using High Contrast mode)
[Theme]
DisplayName=Solarized Dark
[Control Panel\Desktop]
PicturePosition=4
[VisualStyles]
Path=
ColorStyle=NormalColor
Size=NormalSize
@andviro
andviro / grafana_telegram_bot.md
Created March 15, 2022 14:02 — forked from ilap/grafana_telegram_bot.md
Grafana Telegram Alert

Config Telegrambot for grafana's alerts.

1. Create bot

Open Telegram and search for @BotFather user and message them the following:

You
/newbot 

BotFather
@andviro
andviro / proxy.md
Created December 17, 2021 21:36 — forked from yougg/proxy.md
complete ways to set http/socks/ssh proxy environment variables

set http or socks proxy environment variables

# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT

# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT

# set http proxy with user and password (with special characters)
@andviro
andviro / wine-breeze-dark-theme.md
Created July 29, 2021 10:28 — forked from Zeinok/wine-breeze-dark-theme.md
Breeze Dark theme for Wine

Made possible with this reddit post.

Install

wine regedit wine-breeze-dark.reg

Uninstall (Reset Wine color scheme)

wine regedit wine-reset-theme.reg

@andviro
andviro / breeze_dark.reg
Created May 20, 2021 12:51 — forked from mihawk90/breeze_dark.reg
Breeze Dark theme for Wine
[Control Panel\\Colors] 1491939580
#time=1d2b2fb5c69191c
"ActiveBorder"="49 54 58"
"ActiveTitle"="49 54 58"
"AppWorkSpace"="60 64 72"
"Background"="49 54 58"
"ButtonAlternativeFace"="200 0 0"
"ButtonDkShadow"="154 154 154"
"ButtonFace"="49 54 58"
"ButtonHilight"="119 126 140"
@andviro
andviro / init.sh
Created March 18, 2019 19:51 — forked from ebuildy/init.sh
echo "auto_prepend_file=/opt/www/proxy.php" >> /etc/php5/cli/php.ini
@andviro
andviro / _readme.md
Created March 30, 2017 19:10 — forked from steeve/_readme.md
How to cross compile Go with CGO programs for a different OS/Arch

How to cross compile Go with CGO programs for a different OS/Arch

It is possible to compile Go programs for a different OS, even though go build says otherwise.

You'll need:

@andviro
andviro / protocol-fix.txt
Created February 28, 2017 13:00 — forked from eculver/protocol-fix.txt
How to deal with tmux "protocol version mismatch"
$ tmux attach
protocol version mismatch (client 7, server 6)
$ pgrep tmux
3429
$ /proc/3429/exe attach
@andviro
andviro / uri.js
Last active August 26, 2015 07:04 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@andviro
andviro / revprox.go
Last active August 29, 2015 14:21 — forked from JalfResi/revprox.go
package main
import(
"log"
"net/url"
"net/http"
"net/http/httputil"
)
func main() {