Skip to content

Instantly share code, notes, and snippets.

Alexander Molochko CROSP

Block or report user

Report or block CROSP

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
@CROSP
CROSP / docker-compose.yml
Created Feb 7, 2019
Kafka Manager Auto Cluster Creation
View docker-compose.yml
version: '3.1'
services:
zookeeper:
image: zookeeper:3.4
volumes:
- "./zookeeper/data:/data"
- "./zookeeper/logs:/datalog"
ports:
- "2181:2181"
@CROSP
CROSP / gist:c443b7ad00b7a631c546309866f6b36f
Created Oct 29, 2018
Dagger 2 Generated Application Component
View gist:c443b7ad00b7a631c546309866f6b36f
// Generated by dagger.internal.codegen.ComponentProcessor (https://google.github.io/dagger).
package net.crosp.android.dagger2scopeinternals.di.component.application;
import android.app.Activity;
import android.support.v4.app.FragmentManager;
import android.view.LayoutInflater;
import dagger.MembersInjector;
import dagger.internal.DoubleCheck;
import dagger.internal.Preconditions;
import javax.inject.Provider;
@CROSP
CROSP / proxy-del.sh
Last active Sep 7, 2017
DD-WRT Remove rules for transparent proxifying
View proxy-del.sh
#!/bin/sh
PROXIFYING_MACHINE=192.168.0.145
MACHINE_TO_PROXIFY=192.168.0.113
iptables -D PREROUTING -t mangle -s $MACHINE_TO_PROXIFY ! -d `nvram get lan_ipaddr`/`nvram get lan_netmask` -p tcp -m multiport --dports 80,443 -j MARK --set-mark 3
iptables -D PREROUTING -t mangle -s $MACHINE_TO_PROXIFY ! -d `nvram get lan_ipaddr`/`nvram get lan_netmask` -p tcp -m multiport --dports 80,443 -j CONNMARK --save-mark
iptables -D PREROUTING -t mangle -s $MACHINE_TO_PROXIFY ! -d `nvram get wan_ipaddr` -p tcp -m multiport --dports 80,443 -j MARK --set-mark 3
iptables -D PREROUTING -t mangle -s $MACHINE_TO_PROXIFY ! -d `nvram get wan_ipaddr` -p tcp -m multiport --dports 80,443 -j CONNMARK --save-mark
while ip rule delete from 0/0 to 0/0 table 13 2>/dev/null; do true; done
@CROSP
CROSP / dd-wrt-transparent-proxy.sh
Created Aug 30, 2017
DD-WRT Transparent proxy configuration
View dd-wrt-transparent-proxy.sh
#!/bin/sh
PROXIFYING_MACHINE=192.168.0.145
MACHINE_TO_PROXIFY=192.168.0.113
iptables -I PREROUTING 1 -t mangle -s $MACHINE_TO_PROXIFY ! -d `nvram get lan_ipaddr`/`nvram get lan_netmask` -p tcp -m multiport --dports 80,443 -j MARK --set-mark 3
iptables -I PREROUTING 2 -t mangle -s $MACHINE_TO_PROXIFY ! -d `nvram get lan_ipaddr`/`nvram get lan_netmask` -p tcp -m multiport --dports 80,443 -j CONNMARK --save-mark
iptables -I PREROUTING 3 -t mangle -s $MACHINE_TO_PROXIFY ! -d `nvram get wan_ipaddr` -p tcp -m multiport --dports 80,443 -j MARK --set-mark 3
iptables -I PREROUTING 4 -t mangle -s $MACHINE_TO_PROXIFY ! -d `nvram get wan_ipaddr` -p tcp -m multiport --dports 80,443 -j CONNMARK --save-mark
ip rule add fwmark 3 table 13
You can’t perform that action at this time.