VirtualTam's bookmarks
13 bookmarks found
Page 1 of 1
-
iptables
2018-07-04 Documentation:
- https://www.netfilter.org/documentation/index.html
- https://www.netfilter.org/documentation/HOWTO//netfilter-hacking-HOWTO.html
- https://www.netfilter.org/documentation/HOWTO//networking-concepts-HOWTO.html
- https://www.netfilter.org/documentation/HOWTO//NAT-HOWTO.html
- https://www.netfilter.org/documentation/HOWTO//packet-filtering-HOWTO.html
Articles:
- https://www.digitalocean.com/community/tutorials/how-the-iptables-firewall-works
- https://www.digitalocean.com/community/tutorials/how-to-list-and-delete-iptables-firewall-rules
- https://www.digitalocean.com/community/tutorials/iptables-essentials-common-firewall-rules-and-commands
- https://www.digitalocean.com/community/tutorials/a-deep-dive-into-iptables-and-netfilter-architecture
- https://www.digitalocean.com/community/tutorials/how-to-choose-an-effective-firewall-policy-to-secure-your-servers
How-tos:
- https://wiki.centos.org/HowTos/Network/IPTables
- https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-iptables-on-ubuntu-14-04
Routing:
- https://www.frozentux.net/iptables-tutorial/iptables-tutorial.html
- https://www.frozentux.net/iptables-tutorial/images/tables_traverse.jpg
- https://www.frozentux.net/iptables-tutorial/images/table_subtraverse.jpg
- https://upload.wikimedia.org/wikipedia/commons/3/37/Netfilter-packet-flow.svg
RHEL Documentation:
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/sect-security_guide-firewalls-common_iptables_filtering
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/sect-security_guide-firewalls-forward_and_nat_rules
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/sect-security_guide-firewalls-malicious_software_and_spoofed_ip_addresses
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/sect-security_guide-firewalls-iptables_and_connection_tracking
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/sect-security_guide-iptables
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/security_guide/sec-setting_and_controlling_ip_sets_using_iptables
-
Windows - Locate & fix the MBR
2018-01-05 - https://superuser.com/questions/510485/how-to-tell-which-physical-disks-have-bootable-mbr
- https://neosmart.net/wiki/fix-mbr/
- https://neosmart.net/wiki/reboot-and-select-proper-boot-device/
- https://askubuntu.com/questions/859685/how-to-delete-the-bootable-flag-of-a-partition
- https://superuser.com/questions/596919/how-to-set-boot-disk-flag-with-diskpart
-
See answer https://stackoverflow.com/a/41837196 for an elegant solution using the file module
-
Jenkins - Display Information About Nodes
2016-04-12 1for (agent in hudson.model.Hudson.instance.slaves) { 2 println('===================='); 3 println('Name: ' + agent.name); 4 println('getLabelString: ' + agent.getLabelString()); 5 println('getNumExectutors: ' + agent.getNumExecutors()); 6 println('getRemoteFS: ' + agent.getRemoteFS()); 7 println('getMode: ' + agent.getMode()); 8 println('getRootPath: ' + agent.getRootPath()); 9 println('getDescriptor: ' + agent.getDescriptor()); 10 println('getComputer: ' + agent.getComputer()); 11 println('\tcomputer.isAcceptingTasks: ' + agent.getComputer().isAcceptingTasks()); 12 println('\tcomputer.isLaunchSupported: ' + agent.getComputer().isLaunchSupported()); 13 println('\tcomputer.getConnectTime: ' + agent.getComputer().getConnectTime()); 14 println('\tcomputer.getDemandStartMilliseconds: ' + agent.getComputer().getDemandStartMilliseconds()); 15 println('\tcomputer.isOffline: ' + agent.getComputer().isOffline()); 16 println('\tcomputer.countBusy: ' + agent.getComputer().countBusy()); 17 //if (agent.name == 'NAME OF NODE TO DELETE') { 18 // println('Shutting down node!!!!'); 19 // agent.getComputer().setTemporarilyOffline(true,null); 20 // agent.getComputer().doDoDelete(); 21 //} 22 println('\tcomputer.getLog: ' + agent.getComputer().getLog()); 23 println('\tcomputer.getBuilds: ' + agent.getComputer().getBuilds()); 24}
-
item = Jenkins.instance.getItemByFullName("your-job-name-here") // THIS WILL REMOVE ALL BUILD HISTORY item.builds.each() { build -> build.delete() } item.updateNextBuildNumber(1)
-
Uses a project or repository's history to plot user contributions, displaying an elegant, colored graph of the file arborescence.
After running it on quite different projects...
- Python/Bash CI/Jenkins scripts
- Qt apps: GoldenDict, Psi+
- PHP website: Shaarli
...watching some vids on teh intartubez:
- Minecraft: https://www.youtube.com/watch?v=zRjTyRly5WA
- Linux kernel: https://www.youtube.com/watch?v=AhDiYPLo3p4
- Python: https://www.youtube.com/watch?v=cNBtDstOTmA
It allows to arbitrary spot some interesting implementation aspects (sorted by descending impact):
- language-dependent trees (oh hai Java packages ^^)
- framework-dependent trees
- project-management method (none, Agile, TDD)
Having a graphical tool also quickly shows:
- the overall structure of the project (a bit cooler than a simple $ tree, way quicker than loading the project on an IDE)
- the repartition of files (by extensions)
- who are the most active contributors
- what are the most modified files over time
- who does what: additions, deletions, refactoring
Some more CI-related matters:
- are there any tests?
- what is the source code / test code ratio? (we could expect a project/lib with N modules to have at least N test modules)
- who initiates / implements / optimizes test code?
-
Git - Split / shrink a repository
2014-09-05 1# first, clone the repository 2git clone REPO REPO2 3cd REPO2 4# remove all unneeded files from this version 5git filter-branch -f --prune-empty --index-filter "git rm --cached --ignore-unmatch FILES_AND_DIRS_TO_DELETE" 6git gc --aggressive --prune=1day 7git fsck --unreachable 8# refresh the remote 9git remote rm origin 10git remote add origin ssh://HOST/REPO 11# broforce push! 12git push -f origin master 13 14# cleanup our original repository 15cd REPO 16git filter-branch -f --prune-empty --index-filter "git rm --cached --ignore-unmatch OTHER_FILES_AND_DIRS_TO_DELETE" 17git gc --aggressive --prune=1day 18git fsck --unreachable 19# broforce push! 20git push -f origin master
Page 1 of 1