Skip to content

Instantly share code, notes, and snippets.

@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

API v4

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

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

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

// ==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/*
@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
@strayge
strayge / styles.css
Last active January 28, 2018 05:32
ff 57 tree style tab fixes
/* ======================================================================= */
/* userChrome.css */
/* Create file at %AppData%\Mozilla\Firefox\Profiles\<profile_name>\chrome */
/* ======================================================================= */
/* Remove horizontal tabs */
#tabbrowser-tabs {
visibility: collapse;
}
diffmks = 0.1 * 10**6
for i in range(20):
p=sniff(count=1, lfilter=lambda x: x.haslayer(ICMP));
r=IP(dst=p[0][IP].src)/ICMP(type="echo-reply", code=p[0][ICMP].code, id=p[0][ICMP].id, seq=p[0][ICMP].seq)/p[0].load;
sec, mks = unpack('QQ', r.load[0:16]);
mks += diffmks;
load = pack('QQ', sec, mks) + r.load[16:];
r.load = load;
send(r, loop=0);
@strayge
strayge / grub_efi_secure_boot.sh
Created October 7, 2017 21:27
Create GRUB for secureboot (only builtin modules allowed) for Kali and Parrot OS on usb stick
# GRUB for secureboot (only builtin modules allowed) for Kali and Parrot OS on usb stick
# main part from kali build scripts: http://git.kali.org/gitweb/?p=packages/live-build.git;a=blob;f=scripts/build/efi-image
# parrot os includes already compiled binaries
# generate keys for secureboot: https://habrahabr.ru/post/273497/
# compiled binary can just replaced builded on efi partition on usb stick
mkdir grub-efi-temp-x86_64-efi
mkdir workdir
mkdir -p workdir/boot/grub
#SingleInstance, Force
loop {
WTS := ProcessExplorer.WTSEnumerateProcessesEx()
string := ""
loop % WTS.MaxIndex()
{
name := WTS[A_Index, "ProcessName"]
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; #NoTrayicon
Menu, Tray, Icon, tray.ico,1
Menu, Tray, NoStandard
Menu, Tray, Add, Toggle Touch, Toggle
Menu, Tray, Add,
Menu, Tray, Standard