View docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
zookeeper: | |
image: zookeeper:3.4 | |
volumes: | |
- "./zookeeper/data:/data" | |
- "./zookeeper/logs:/datalog" | |
ports: | |
- "2181:2181" |
View gist:c443b7ad00b7a631c546309866f6b36f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
View proxy-del.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
View dd-wrt-transparent-proxy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |