This file contains hidden or 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
# Configuration file for ipython. | |
#------------------------------------------------------------------------------ | |
# InteractiveShellApp(Configurable) configuration | |
#------------------------------------------------------------------------------ | |
## A Mixin for applications that start InteractiveShell instances. | |
# | |
# Provides configurables for loading extensions and executing files as part of | |
# configuring a Shell environment. |
This file contains hidden or 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
#!/usr/bin/env python3 | |
""" | |
fullapt | |
======= | |
Full apt-get routine for Debian derivatives | |
""" | |
# Copyright 2020 Stephen Whitlock | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains hidden or 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
#!/usr/bin/env python3 | |
"""rootfinder | |
============= | |
Return the root of your repository | |
""" | |
# Copyright 2020 Stephen Whitlock | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal |
This file contains hidden or 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
#!/usr/bin/env python3 | |
""" | |
pybar | |
===== | |
""" | |
# Copyright 2020 Stephen Whitlock | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
This file contains hidden or 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
#!/usr/bin/env python3 | |
"""pysort | |
========= | |
Sort files in pythonic order | |
""" | |
# Copyright 2020 Stephen Whitlock | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal |
This file contains hidden or 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
# IPTables | |
# squid variables | |
PROXY_IP=192.168.1.1 # Squid_Proxy_Server_Host | |
PROXY_PORT=3128 # Proxy_Port | |
LAN_IP=`nvram get lan_ipaddr` | |
LAN_NET=$LAN_IP/`nvram get lan_netmask` | |
# squid transparent proxy | |
iptables -t nat -A PREROUTING -i br0 -s $LAN_NET -d $LAN_NET -p tcp --dport 80 -j ACCEPT | |
iptables -t nat -A PREROUTING -i br0 -s ! $PROXY_IP -p tcp --dport 80 -j DNAT --to $PROXY_IP:$PROXY_PORT |