Skip to content

Instantly share code, notes, and snippets.

View asjustas's full-sized avatar

Justas asjustas

  • Vilnius, Lietuva
View GitHub Profile
@asjustas
asjustas / http_proxy.go
Created June 20, 2024 12:25 — forked from afdalwahyu/http_proxy.go
golang http proxy server CONNECT method
package main
import (
"bufio"
"encoding/base64"
"flag"
"io"
"io/ioutil"
"log"
"net"

Problem

The go command line tool needs to be able to fetch dependencies from your private GitLab, but authenticaiton is required.

This assumes your private GitLab is hosted at privategitlab.company.com.

Environment variables

The following environment variables are recommended:

export GO111MODULE=on
export GOPRIVATE=privategitlab.company.com
LRT - https://www.lrt.lt/servisai/stream_url/live/get_live_url.php?channel=LTV1
LRT Plius - https://www.lrt.lt/servisai/stream_url/live/get_live_url.php?channel=LTV2
LRT Lituanica - https://lituanica-dvr.lrt.lt/lrt-ndvr/hls/lituanica.m3u8
LNK - https://lnk.lt/api/video/video-config/137535
BTV - https://lnk.lt/api/video/video-config/137534
2TV - https://lnk.lt/api/video/video-config/95343
Info TV - https://lnk.lt/api/video/video-config/137748
TV1 - https://lnk.lt/api/video/video-config/106791
Lietuvos rytas - https://lib.lrytas.lt/geoip/get_token_live.php
Powerhitradio video -
@asjustas
asjustas / WireGuard_Setup.txt
Created May 10, 2020 18:02 — forked from chrisswanda/WireGuard_Setup.txt
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
@asjustas
asjustas / hosts.txt
Last active March 27, 2022 10:00
Reklamos (ads) domenai
127.0.0.1 adx.adform.net
127.0.0.1 c1.adform.net
127.0.0.1 cm.adform.net
127.0.0.1 dmp.adform.net
127.0.0.1 istrp.adform.net
127.0.0.1 nstrp.adform.net
127.0.0.1 s1-eu.adformnet.akadns.net
127.0.0.1 s1.adform.net
127.0.0.1 s2.adform.net
127.0.0.1 s2.adformnet.akadns.net
https://intestinate.com/pilfs/beyond.html#kernelbuild
/etc/rc.d/init.d/rc.local
/opt/cgroupfs-mount/cgroupfs-mount
/usr/bin/dockerd
wget https://github.com/aria2/aria2/releases/download/release-1.34.0/aria2-1.34.0.tar.gz
tar -xvf aria2-1.34.0.tar.gz
cd aria2-1.34.0
@asjustas
asjustas / blacklist.txt
Last active July 20, 2019 19:32
Blacklist
pagead2.googlesyndication.com
googleadservices.com
www.googleadservices.com
pagead2.googleadservices.com
partner.googleadservices.com
doubleclick.net
g.doubleclick.net
googleads.g.doubleclick.net
googleads2.g.doubleclick.net
securepubads.g.doubleclick.net
http://sjoerd.luon.net/posts/2015/02/debian-jessie-on-rpi2/
FROM php:7.0.3
RUN mkdir /worker
WORKDIR /worker
RUN apt-get update && \
apt-get install -y git
RUN curl -O http://zlib.net/zlib-1.2.11.tar.gz && \
tar -xvzf /worker/zlib-1.2.11.tar.gz && \
@asjustas
asjustas / GPG and git on macOS.md
Created February 21, 2018 08:34 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys