Skip to content

Instantly share code, notes, and snippets.

View andrekeher's full-sized avatar
🏠
Working from home

André Keher andrekeher

🏠
Working from home
  • São Paulo, SP, Brazil
View GitHub Profile
<?php
//Definindo variáveis para armazenar as coordenadas
$latitude = -22.9000;
$longitude = -43.2290;
//Definindo os limites do território brasileiro
$limite_lat_min = -33.7472;
$limite_lat_max = 5.2790;
$limite_long_min = -74.2910;
Execute apt-get update, apt-get upgrade and apt-get dist-upgrade;
Remove user root login;
Add a new user user to sudo group;
Adjust server timezone;
Enable access only via SSH keys;
Disable password authentication;
Disable root login;
Configure UFW;
Configure fail2ban;
Configure ssmtp.
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32588798-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<li class="banner" style="display: none;">
<a id="59477" href="https://ad.doubleclick.net/ddm/jump/N416407.2681801PORTALAPRENDIZ/B25360245.295129615;sz=250x100" target="_blank">
<img src="https://portal.aprendiz.uol.com.br/wp-content/uploads/2021/02/bradesco_250x100.jpg" alt="Fundação Bradesco - JUL 2019" title="Fundação Bradesco - JUL 2019" width="250" height="103"/>
</a>
</li>
<?php
if (! wp_is_mobile()) {
//Desktop
?>
<SCRIPT language='JavaScript1.1' SRC="https://ad.doubleclick.net/ddm/trackimpj/N416407.2681801PORTALAPRENDIZ/B22962508.250737150;dc_trk_aid=446743665;dc_trk_cid=118420607;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=?"></SCRIPT>
<ins class='dcmads' style='display:inline-block;width:468px;height:60px'
data-dcm-placement='N416407.2681801PORTALAPRENDIZ/B25360245.295129612'
data-dcm-rendering-mode='script'
data-dcm-https-only
data-dcm-gdpr-applies='gdpr=${GDPR}'
SELECT
l.word_key,
l.usage,
l.book_key,
b.title,
l.timestamp
FROM
LOOKUPS l,
BOOK_INFO b
WHERE
INSERT INTO `wp_terms` (slug, name) VALUES ('AF', 'Afghanistan');
INSERT INTO `wp_terms` (slug, name) VALUES ('AL', 'Albania');
INSERT INTO `wp_terms` (slug, name) VALUES ('DZ', 'Algeria');
INSERT INTO `wp_terms` (slug, name) VALUES ('DS', 'American Samoa');
INSERT INTO `wp_terms` (slug, name) VALUES ('AD', 'Andorra');
INSERT INTO `wp_terms` (slug, name) VALUES ('AO', 'Angola');
INSERT INTO `wp_terms` (slug, name) VALUES ('AI', 'Anguilla');
INSERT INTO `wp_terms` (slug, name) VALUES ('AQ', 'Antarctica');
INSERT INTO `wp_terms` (slug, name) VALUES ('AG', 'Antigua and Barbuda');
INSERT INTO `wp_terms` (slug, name) VALUES ('AR', 'Argentina');
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
php
libapache2-mod-php
php5-common
apc
auth
cgi
cli
curl
date
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype