Skip to content

Instantly share code, notes, and snippets.

Marcos Koby klepsydra

  • US
Block or report user

Report or block klepsydra

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
@klepsydra
klepsydra / sync-fail2ban.sh
Last active Nov 7, 2019
Block globally reported hack attempts using your local iptables firewall rules
View sync-fail2ban.sh
#!/bin/bash
## Update fail2ban iptables with globally known attackers.
## Actually, runs 100% independently now, without needing fail2ban installed.
##
## /etc/cron.daily/sync-fail2ban
##
## Author: Marcos Kobylecki <fail2ban.globalBlackList@askmarcos.com>
## http://www.reddit.com/r/linux/comments/2nvzur/shared_blacklists_from_fail2ban/
@klepsydra
klepsydra / gist:2374327
Created Apr 13, 2012
triglist.GPW.txt
View gist:2374327
BUY ABMSOLID 20120330 3.20 18.36735 3341862 lastprice=2.74 targetprice=2.23 quantity>=344.94
BUY BIOTON 20120329 0.10 18.18182 1713404 lastprice=0.09 targetprice=.07 quantity>=10989.00
BUY ANTI 20120327 1.03 14.28571 1237113 lastprice=0.85 targetprice=.72 quantity>=1068.37
BUY SYNTHOS 20120410 5.66 11.47799 7048460 lastprice=6.29 targetprice=5.56 quantity>=138.35
BUY OVOSTAR 20120328 111.90 10 1003295 lastprice=102.90 targetprice=92.61 quantity>=8.30
BUY PBG 20120404 36.20 8.90533 10396133 lastprice=33.70 targetprice=30.69 quantity>=25.06
BUY AZOTYTARNOW 20120402 33.80 8.63034 8514727 lastprice=33.20 targetprice=30.33 quantity>=25.36
So, the rest of them were truncated , because & is used before gist-post runs??
View gist:2364932
BUY ABMSOLID 20120330 3.20 18.36735 3341862 lastprice=2.80 targetprice=2.28 quantity>=337.38
BUY BIOTON 20120329 0.10 18.18182 1713404 lastprice=0.09 targetprice=.07 quantity>=10989.00
BUY SYNTHOS 20120410 5.66 11.47799 7048460 lastprice=5.95 targetprice=5.26 quantity>=146.24
BUY PBG 20120404 36.20 8.90533 10396133 lastprice=33.67 targetprice=30.67 quantity>=25.08
BUY AZOTYTARNOW 20120402 33.80 8.63034 8514727 lastprice=32.79 targetprice=29.96 quantity>=25.67
BUY GPW 20120405 39.65 6.97500 3293210 lastprice=38.60 targetprice=35.90 quantity>=21.42
BUY CIECH 20120411 16.55 6.45756 3089504 lastprice=16.55 targetprice=15.48 quantity>=49.69
View gist:2358773
How do I get this to update the old triglist.GPW.txt, not create new gists by the same name?
BUY WARFAMA 20120327 1.52 18.57923 2595257 lastprice=1.28 targetprice=1.04 quantity>=739.64
BUY ABMSOLID 20120330 3.20 18.36735 3341862 lastprice=2.79 targetprice=2.27 quantity>=338.86
BUY BIOTON 20120329 0.10 18.18182 1713404 lastprice=0.09 targetprice=.07 quantity>=10989.00
BUY SYNTHOS 20120410 5.79 11.47799 4852020 lastprice=5.70 targetprice=5.04 quantity>=152.62
BUY OVOSTAR 20120328 111.90 10 1003295 lastprice=107.00 targetprice=96.30 quantity>=7.98
BUY BOMI 20120411 1.66 9.55056 1128800 lastprice=1.66 targetprice=1.50 quantity>=512.82
View gist:2348804
BUY WARFAMA 20120327 1.52 18.57923 2595257 lastprice=1.38 targetprice=1.12 quantity>=686.81
BUY ABMSOLID 20120330 3.20 18.36735 3341862 lastprice=3.00 targetprice=2.44 quantity>=315.25
BUY BIOTON 20120329 0.10 18.18182 1713404 lastprice=0.10 targetprice=.08 quantity>=9615.37
BUY OVOSTAR 20120328 111.90 10 1003295 lastprice=112.30 targetprice=101.07 quantity>=7.61
BUY PBG 20120404 36.20 8.90533 10396133 lastprice=34.94 targetprice=31.82 quantity>=24.17
BUY AZOTYTARNOW 20120402 33.80 8.63034 8514727 lastprice=33.76 targetprice=30.84 quantity>=24.94
View gist:2342825
BUY WARFAMA 20120327 1.52 18.57923 2595257 lastprice=1.38 targetprice=1.12 quantity>=686.81
BUY TRAKCJA 20120323 1.21 18.40000 7787679 lastprice=1.08 targetprice=.88 quantity>=874.12
BUY ABMSOLID 20120330 3.20 18.36735 3341862 lastprice=3.00 targetprice=2.44 quantity>=315.25
BUY BIOTON 20120329 0.10 18.18182 1713404 lastprice=0.10 targetprice=.08 quantity>=9615.37
BUY PBG 20120322 34.35 15.53885 27090161 lastprice=34.94 targetprice=29.51 quantity>=26.06
BUY OVOSTAR 20120328 111.90 10 1003295 lastprice=112.30 targetprice=101.07 quantity>=7.61
BUY AZOTYTARNOW 20120402 33.80 8.63034 8514727 lastprice=33.76 targetprice=30.84 quantity>=24.94
BUY BOMI 20120405 1.78 8.10811 1859101 lastprice=1.78 targetprice=1.63 quantity>=471.92
BUY SKOTAN 20120404 3.18 7.82609 1400459 lastprice=3.30 targetprice=3.04 quantity>=253.03
BUY ENEA 20120326
View gist:2311135
BUY WARFAMA 20120327 1.52 18.57923 2595257 lastprice=1.39 targetprice=1.13 quantity>=680.73
BUY ABMSOLID 20120330 3.20 18.36735 3341862 lastprice=3.00 targetprice=2.44 quantity>=315.25
BUY BIOTON 20120329 0.10 18.18182 1713404 lastprice=0.10 targetprice=.08 quantity>=9615.37
BUY TRAKCJA 20120323 1.21 10.91703 7787679 lastprice=1.06 targetprice=.94 quantity>=818.32
BUY OVOSTAR 20120328 111.90 10 1003295 lastprice=111.30 targetprice=100.17 quantity>=7.67
BUY PBG 20120404 36.20 8.90533 10396133 lastprice=34.92 targetprice=31.81 quantity>=24.18
View gist:2308867
BUY WARFAMA 20120327 1.52 18.57923 2595257 lastprice=1.26 targetprice=1.02 quantity>=754.14
BUY ABMSOLID 20120330 3.20 18.36735 3341862 lastprice=3.03 targetprice=2.47 quantity>=311.42
BUY BIOTON 20120329 0.10 18.18182 1713404 lastprice=0.09 targetprice=.07 quantity>=10989.00
BUY TRAKCJA 20120323 1.21 10.91703 7787679 lastprice=1.07 targetprice=.95 quantity>=809.71
BUY OVOSTAR 20120328 111.90 10 1003295 lastprice=113.50 targetprice=102.15 quantity>=7.53
View gist:2290475
BUY WARFAMA 20120327 1.52 18.57923 2595257 lastprice=1.58 targetprice=1.28 quantity>=600.96
BUY TRAKCJA 20120323 1.21 18.40000 7787679 lastprice=1.16 targetprice=.94 quantity>=818.32
BUY DSS 20120322 4.62 18.39286 1250754 lastprice=3.29 targetprice=2.68 quantity>=287.02
BUY ABMSOLID 20120330 3.20 18.36735 3341862 lastprice=2.98 targetprice=2.43 quantity>=316.55
BUY BIOTON 20120329 0.10 18.18182 1713404 lastprice=0.09 targetprice=.07 quantity>=10989.00
@klepsydra
klepsydra / ST.50209607.statsTable.txt
Created Apr 2, 2012
ST.50209607.statsTable.txt
View ST.50209607.statsTable.txt
+----------------+---------------+---------------+---------------+
| Performance of Scottrade_50209607, 2012-04-02T00:24:33+02:00 |
+----------------+---------------+---------------+---------------+
|group |Unrealized |Realized |Combined |
+----------------+---------------+---------------+---------------+
| openValueSum | 2347.31 | 3056.22 | 1865.23 |
| closeValueSum | 2365.24 | 3132.37 | 1883.16 |
| gainLossRaw | 17.93 | 76.15 | 94.08 |
| profitSum | 17.93 | 76.15 | 94.08 |
| gainLossPerc | 0.76 | 2.49 | 5.04 |
You can’t perform that action at this time.