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
/** | |
POPCAT Popbot v3.1 (Direct send pops to API & bypass bot detection) | |
https://github.com/jvloo/popcat-popbot/ | |
@version 3.1.3 | |
@author Xavier Loo <[email protected]> | |
- Get Started: https://github.com/jvloo/popcat-popbot/blob/main/README.md | |
- Troubleshoot Guide: https://github.com/jvloo/popcat-popbot/wiki | |
**/ |
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
<?php | |
// Thêm hiển thị số tiền giảm giá ở trang chi tiết sản phẩm nằm phía dưới giá sản phẩm | |
function customVariableSavedPricing($priceHtml, $product) | |
{ | |
if (strpos($priceHtml, 'del') !== false) { | |
$savedPrice = number_format($product->get_regular_price() - $product->get_sale_price(), 2, '.', ','); | |
$youSaved = sprintf( |
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
∧ ∧ | |
(*‘ω‘ *) | |
( ) | |
v v ぽいんっ | |
川 |
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
# List of Python tricks from Dan Bader's (realpython.com) newsletter | |
# ===================================== # | |
# How to merge two dictionaries (3.5+) | |
x = {'a': 1, 'b': 2} | |
y = {'b': 3, 'c': 4} | |
z = {**x, **y} | |
print(z) | |
# {'c': 4, 'a': 1, 'b': 3} |
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
console.log(`%c ________________________________________ | |
< mooooooooooooooooooooooooooooooooooooo > | |
---------------------------------------- | |
\\ ^__^ | |
\\ (oo)\\_______ | |
(__)\\ )\\/\\ | |
||----w | | |
|| ||`, "font-family:monospace") |
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/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 <[email protected]> | |
## http://www.reddit.com/r/linux/comments/2nvzur/shared_blacklists_from_fail2ban/ |
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/bash | |
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'` | |
for JAIL in $JAILS | |
do | |
fail2ban-client status $JAIL | |
done |