Skip to content

Instantly share code, notes, and snippets.

@strayge
strayge / fix_gnuradio_error_at_startup.sh
Created May 10, 2018 15:07
fix gnuradio under kali
ln -sf /usr/lib/x86_64-linux-gnu/libvolk.so.1.3.1 /usr/lib/x86_64-linux-gnu/libvolk.so.1.3
// ==UserScript==
// @name Hide unwanted streams on Twitch
// @description Blocks content that you don't want to see on twitch.tv, such as channels, games, videos etc.
// @namespace https://github.com/LinogeFly/hide-unwanted-streams-on-twitch
// @version 1.3.29
// @author LinogeFly
// @license MIT
// @supportURL https://www.reddit.com/message/compose/?to=LinogeFly
// @include http://*.twitch.tv/*
// @include https://*.twitch.tv/*

API v4

базовый адрес: https://goodgame.ru/api/4/

ниже идут найденные методом тыка эндпоинты

для некоторых приведены примеры запроса,
для остальных они не известны и приведены коды ответов для запросов без параметров

@strayge
strayge / ssh-copy-id.py
Last active October 9, 2018 04:42 — forked from ceilfors/ssh-copy-id.py
ssh-copy-id for Windows
"""ssh-copy-id for Windows.
Example usage: python ssh-copy-id.py ceilfors@my-remote-machine
This script is dependent on msysgit by default as it requires scp and ssh.
For convenience you can also try that comes http://bliker.github.io/cmder/.
origin url: https://gist.github.com/ceilfors/fb6908dc8ac96e8fc983
"""
import argparse, os
from subprocess import call, PIPE
@strayge
strayge / gen_cert_with_ip.sh
Last active March 19, 2019 07:17
self-signed cert with Subject Alternative Names
#!/bin/bash
cat<<EOF>caconfig.cnf
# My sample caconfig.cnf file.
#
# Default configuration to use when one is not provided on the command line.
#
[ ca ]
default_ca = local_ca
#
@strayge
strayge / activity_monitor.json
Created May 12, 2019 10:05
karabiner complex modifications
{
"title": "Activity Monitor",
"rules": [
{
"description": "Command+Shift+Esc Opens Activity Monitor",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
@strayge
strayge / nfs.sh
Last active May 5, 2020 16:39
config NFS on Ubuntu
#### server ####
# apt update
# apt install nfs-kernel-server
# snap install --classic micro
# ufw allow from <CLIENT_IP> to any port nfs
# ufw allow from any to any port ssh
# ufw enable
mkdir /tmp/share
chown nobody:nogroup /tmp/share
micro /etc/exports
@strayge
strayge / _simple udp proxy.md
Created August 3, 2019 00:11
simple udp proxy via nginx

simple udp proxy via nginx + docker-compose

@strayge
strayge / mypy.py
Created September 18, 2019 11:15
single mypy process for PyCharm
#!/Users/<username>/.local/share/virtualenvs/<folder>-<hash>/bin/python3
# -*- coding: utf-8 -*-
import subprocess
import os
current_pid = os.getpid()
s = subprocess.run('ps auxww | grep -F "/mypy" ', shell=True, stdout=subprocess.PIPE)
lines = s.stdout.decode().strip().splitlines()
@strayge
strayge / reverved_ports_hyperv.md
Created October 27, 2019 10:41
windows 10, port reserved for HyperV