Skip to content

Instantly share code, notes, and snippets.

View antoniocampos's full-sized avatar
🙈

Antonio Campos antoniocampos

🙈
View GitHub Profile
@antoniocampos
antoniocampos / MyService.service
Last active March 29, 2024 16:44
.net Core Systemd Service Example (Linux autostart you .net app)
[Unit]
Description=MyService Description
[Service]
WorkingDirectory=/path/to/app/
ExecStart=/usr/bin/dotnet /path/to/app/App.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
@antoniocampos
antoniocampos / dotnetlayout.md
Last active January 27, 2023 12:12 — forked from davidfowl/dotnetlayout.md
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
  tests/
@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.
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 / 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.
#
# [email protected] 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"
@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 / 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 / .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]

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.