Skip to content

Instantly share code, notes, and snippets.

View arhix's full-sized avatar

Aleksei Sultrekov arhix

View GitHub Profile
// ==UserScript==
// @name Printables.com - Blur AI Generated Models
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Finds models with the 'AI-generated' tag on Printables.com and blurs their main image. Unblurs on hover.
// @author arhix
// @match https://www.printables.com/*
// @grant none
// @icon https://www.google.com/s2/favicons?sz=64&domain=printables.com
// ==/UserScript==
// ==UserScript==
// @name Remove Autoplay from Luna Cards
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Removes 'autoplay=1' from the URLs on Luna pages.
// @author arhix
// @match https://luna.amazon.com/*
// @grant none
// @run-at document-idle
// @icon https://www.google.com/s2/favicons?sz=64&domain=luna.amazon.com
@arhix
arhix / docker-compose.yml
Created April 9, 2020 19:37
Node+Mysql example
version: '3'
services:
app:
image: node:11
volumes:
- .:/app
working_dir: /app
networks:
- appnetwork
ports:
@arhix
arhix / PRchanges.js
Last active July 11, 2017 07:08
Grabber for PR changes
const request = require('request');
const parse = require('parse-diff');
const EventEmitter = require('events');
const myEmitter = new EventEmitter();
var changes = {};
myEmitter
.on('load_pr', function (pr_list) {
setImmediate(function () {
pr_list.forEach(function (pr) {
@arhix
arhix / opencv.cpp
Last active July 4, 2017 08:34
OpenCV test app
#include "stdio.h"
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main(int argc, char** argv)
{
VideoCapture cap(0);
@arhix
arhix / repo_info.py
Last active August 2, 2017 10:29
[Get repository information] #python #gitpython #git
# http://gitpython.readthedocs.io/en/stable/
from git import Repo
repo = Repo('./test-repo')
repo.remotes.origin.fetch()
repo_url = repo.remotes.origin.url
repo_branch = repo.head.reference
count = 0
#!/bin/bash
# log into your server
ssh root@[server ipaddress]
# change root password
passwd
# update all packages and operating system
apt-get update && apt-get --yes upgrade