Skip to content

Instantly share code, notes, and snippets.

View antoniocampos's full-sized avatar
🙈

Antonio Campos antoniocampos

🙈
View GitHub Profile
@antoniocampos
antoniocampos / .htaccess
Last active April 28, 2017 16:15
Redirect all requests to PHP
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?ParaMeter=$1 [NC,L,QSA]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0" processorArchitecture="*"

Open regedit.exe as an Administrator and navigate to the registry key:

HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > SideBySide.

Right-click the right pane and choose NEW > DWORD (32 bit) Value.

Type PreferExternalManifest, and then press ENTER.

Right-click PreferExternalManifest, and then click Modify.

@antoniocampos
antoniocampos / .htaccess
Created March 21, 2017 17:35
.htaccess force www.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^antoniocampos.net [NC]
RewriteRule ^(.*)$ http://www.antoniocampos.net/$1 [L,R=301,NC]
@antoniocampos
antoniocampos / iptables-blocktype.conf
Last active March 10, 2021 16:37
Fail2Ban DROP instead REJECT
#Depending on version one of the following files must exist
root@host:/ nano /etc/fail2ban/action.d/iptables-blocktype.conf
or
root@host:/ nano /etc/fail2ban/action.d/iptables-common.conf
comment the line
@antoniocampos
antoniocampos / PlaySound.html
Last active June 1, 2017 16:46
Javascript PlaySound
<!DOCTYPE html>
<html>
<head>
<title>Javascript Play Sound</title>
<script src="playsound.js"></script>
</head>
<body>
<a href="#" onclick="PlaySound()">Play</a>
</body>
</html>
@antoniocampos
antoniocampos / SolveCRLExpired.sh
Last active October 4, 2022 17:59
Solve OpenVPN 2.4 Error = CRL has expired
#OpenVPN 2.4 no longer accepts CRLs who's nextUpdate field lies in the past.
#
# me@antoniocampos.net 2017
# no need for any change at the client side
# you may want to increase the CRL EXPIRE period
# just increase the value default_crl_days = ?? in the openssl.cnf
# tested with Debian 9 and OpenVPN 2.4
cd /etc/openvpn/2.0/
export KEY_CN="My VPN Server"
export KEY_OU="IT Dep"
sudo mysql -u root
[mysql] use mysql;
[mysql] update user set plugin='' where User='root';
[mysql] flush privileges;
[mysql] \q
sudo mysql -u root
[mysql] use mysql;
[mysql] update user set plugin='' where User='root';
[mysql] flush privileges;
[mysql] \q
@antoniocampos
antoniocampos / suppliers.txt
Created February 5, 2019 21:19
DropShipping List
Here are 30 different suppliers:
1 – Oberlo verified suppliers or US
2 – DX .com– A.K.A. Deal Extreme has been around for many years and has some amazing products that you could sell with great margins.
3 – WholesaleCentral .com– One of the most comprehensive list of free drop shippers which you could find in virtually any niche. They are also free.
4 – FragranceNet – This is a great source if you are looking to sell perfumes and fragrances.
5 – Vitabase– A great source to supply vitamins for skin, health and beauty drop shipped products.
6 – DressLink .com– A great source if you plan on selling dresses with amazing margins.
7 – Tiny Deal – Similar to DX but you could find unique products as well.
8 – Milanoo– A great supplier of wedding dresses, prom dresses.
9 – Dino Direct – Another awesome source for electronic products and gadgets.