Skip to content

Instantly share code, notes, and snippets.

View Snegovikufa's full-sized avatar
📍
Push the red button

Rustam Safin Snegovikufa

📍
Push the red button
View GitHub Profile
@Snegovikufa
Snegovikufa / mouseover.xaml
Created February 21, 2014 09:38
XAML mouse over button background
<Style TargetType="{x:Type Button}">
<Setter Property="Background" Value="Green"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
reg delete HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex\Language\English_UK
@Snegovikufa
Snegovikufa / m2crypto_example.py
Last active December 8, 2021 14:33
m2crypto examle
# Since I ask this of people before using their code samples, anyone can
# use this under BSD.
import os
import M2Crypto
def empty_callback():
return
# Seed the random number generator with 1024 random bytes (8192 bits)
@Snegovikufa
Snegovikufa / app.py
Created February 8, 2018 08:16
Extracts dlls from libmonodroid_bundle_app.so
from elftools.elf.elffile import ELFFile
from zipfile import ZipFile
import gzip, string
from io import StringIO, BytesIO
data = open('libmonodroid_bundle_app.so', "rb")
elffile = ELFFile(data)
section = elffile.get_section_by_name('.dynsym')
data.seek(0)
data_read = data.read()
@Snegovikufa
Snegovikufa / a.js
Created July 11, 2021 11:40
Hide original translation on skyeng vocubulary page
Array.prototype.forEach.call(document.getElementsByClassName("original"), function(el) {
// Do stuff here
el.hidden = true;
});
@Snegovikufa
Snegovikufa / check ports.bat
Created August 25, 2020 16:51
checks tcp ports you cannot bind to
netsh interface ipv4 show excludedportrange protocol=tcp
@Snegovikufa
Snegovikufa / game.py
Created March 26, 2020 15:09
Simple game
import arcade
SCREEN_WIDTH = 1000
SCREEN_HEIGHT = 650
SCREEN_TITLE = "Platformer"
class MyGame(arcade.Window):
def __init__(self):
super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
import arcade
SCREEN_WIDTH = 1000
SCREEN_HEIGHT = 650
SCREEN_TITLE = "Platformer"
PLAYER_START_X = 64
PLAYER_START_Y = 94
@Snegovikufa
Snegovikufa / 7-zip-default-extract.reg
Created November 11, 2019 10:08 — forked from zabbarob/7-zip-default-extract.reg
Make 7-Zip extract to folder when double-clicking archives. (based on http://superuser.com/a/447791)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\7-Zip.001\shell]
@="extract"
[HKEY_CLASSES_ROOT\7-Zip.001\shell\extract]
@="Extract to Folder"
[HKEY_CLASSES_ROOT\7-Zip.001\shell\extract\command]
@="\"C:\\Program Files\\7-Zip\\7zG.exe\" x \"%1\" -o*"
[HKEY_CLASSES_ROOT\7-Zip.7z\shell]
@Snegovikufa
Snegovikufa / dark.css
Last active June 28, 2019 19:56
YouTrack dark theme. Set Darcula theme first!
body, .darcula .sb-row, .darcula .sb-row, .darcula .sb-board-title {
background: #303030 !important;
color: #eeeeee !important;
}
.yt-header__create-btn > .ring-menu__item__i {
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ef9331), to(#e9701d)) !important;
}
.ring-menu, .jt-menu-button, .ring-dropdown__item, .suggest, .inputWrapper > input {