Skip to content

Instantly share code, notes, and snippets.

@AnnoyingTechnology
AnnoyingTechnology / etc issue
Created January 17, 2018 11:54
OVH reboot serveur malgré banner
```
___ _____ _____ _____ _ _ _____ _____ _____ _ _
/ _ \_ _|_ _| ___| \ | |_ _|_ _| _ | \ | |
/ /_\ \| | | | | |__ | \| | | | | | | | | | \| |
| _ || | | | | __|| . ` | | | | | | | | | . ` |
| | | || | | | | |___| |\ | | | _| |_\ \_/ / |\ |
\_| |_/\_/ \_/ \____/\_| \_/ \_/ \___/ \___/\_| \_/
______ _ _ _
@AnnoyingTechnology
AnnoyingTechnology / Bootstrap-4-blurred-modal.css
Last active May 4, 2024 21:53 — forked from webprogramozo/blur-bs3-bs4.css
Bootstrap modal with blurry background
/* blurred background modal for bootstrap v4 */
body.modal-open > :not(.modal) {
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
-o-filter: blur(5px);
-ms-filter: blur(5px);
filter: blur(5px);
}
/************
*** label ***
************/
.label-dark-orange, .label-orange, .label-dark-yellow, .label-yellow, .label-lime-green,
.label-green, .label-dark-green, .label-cyan, .label-blue, .label-dark-blue, .label-blue-green,
.label-purple, .label-fushia, .label-red, .label-dark-red, .label-light-grey, .label-carmin-red,
.label-grey, .label-dark-grey, .label-black {
color: #ffffff;
}
@AnnoyingTechnology
AnnoyingTechnology / Développeur junior présenté comme senior.md
Last active June 4, 2020 08:39
Expérience avec un développeur PHP junior, se présentant comme senior

Retour d'expérience avec un développeur PHP

Un peu de contexte Il s'agit d'un tout jeune développeur, se présentant comme Senior et missioné par un prestataire de mon client. La mission était la reprise d'une application très standard de GED (sous symfony 2), le développeur est missioné à temps plein dessus.
L'auteur de ces lignes agissait en rôle de sysadmin pour le client.

Les évenements suivants s'étalent sur environ un mois et demi.

@AnnoyingTechnology
AnnoyingTechnology / Comparison of UNIX-based Email solutions.md
Last active March 28, 2018 09:27
Comparison of UNIX-based Email solutions as of 2018

Having to migrate two email servers this year, here's a summary of my options (might not be relevent to your needs) :

A) Custom

Distro : Debian 9 (raw)
MTA : Postfix + Dovecot
Antispam : Spamassassin
Antivirus : Amavis
Webmail : After Logic's WebMail Lite + Lighttpd + SQLite
Monitoring : Munin
Signing & such : SPF, DKIM, DMARC

@AnnoyingTechnology
AnnoyingTechnology / Ubuntu-post-installation.sh
Last active May 16, 2018 10:26
Ubuntu post installation script
# Just a copy of someone else's script, to serve as a basis for my own tunning-script.
# The goal is to get a nice looking system, using plank (configuring it), and some apps from elementary OS, also some generic apps like shotwell, VLC, etc.
# TO DO
# remove mysql bloatdatabase
# replace apache bloatserver with lighttpd
# replace stock php7(.0) with a proper ppa to get php7.2, and use php-fpm
# add paper icons
# remove nodejs
# remove chrome
@AnnoyingTechnology
AnnoyingTechnology / debian-security-tools.sh
Last active July 6, 2024 12:31
Install debian basic security utilities. You still need to configure some of those, and a lot of other things have to be manually tweaked across a system to keep it secure.
#!/bin/bash
# !!!!!!!!!!!!!!!! DISCLAIMER !!!!!!!!!!!!!!!!!!!!!
# !! THIS WILL NOT SECURE YOUR SYSTEM ON ITS OWN !!
# !! Most of these tools should be set up and/or !!
# !!!!!! ran by a cron with proper repporting !!!!!
# update apt
apt update
# rkhunter : rootkit scanner
apt install rkhunter
# chkrootkit : another rootkit scanner
@AnnoyingTechnology
AnnoyingTechnology / mining-botnet-ips
Created May 29, 2018 18:41
mining-botnet-ips A list of files found on a compromised server, used for mining by the attackers
These files have been found on a compromised server, where a mining script (monero) was deposited and sucking CPU ressources.
Mostly honeypot
1
dev:qazwsx:165.227.172.201:22:Linux:SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2:Intel(R) Core(TM)2 Duo CPU E8200 @ 2.66GHz:7880 7690 189 0 400 5171:honeypot
dev:qazwsx:159.89.171.90:22:Linux:SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2:Intel(R) Core(TM)2 Duo CPU E8200 @ 2.66GHz:7880 7690 189 0 400 5171:honeypot
will:will:207.148.106.29:22:Linux:SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2:Intel(R) Core(TM)2 Duo CPU E8200 @ 2.66GHz:7880 7690 189 0 400 5171:honeypot
mythtv:123456:93.113.125.194:22:UNKNWON_SYSTEM:SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2:NO_CPU:NO_RAM:novuln
hadoop:hadooppass:128.199.81.203:22:Linux:SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2:Intel(R) Core(TM)2 Duo CPU E8200 @ 2.66GHz:7880 7690 189 0 400 5171:honeypot
root:default:98.163.157.70:22:UNKNWON_SYSTEM:SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2:NO_CPU:NO_RAM:novuln
@AnnoyingTechnology
AnnoyingTechnology / cryptosafe-password-generator.php
Last active May 30, 2018 09:47
Cryptographically safe, PHP password generation function. Produces fairly simple passwords (only one cap, one number, one symbol)
<?php
// cryptographically safe password generator function
// fairly simple password (only one cap, one number, one symbol)
function generatePassword() :string {
// BEWARE, length cannot be set to anything lower that 4.
$length = 8;
$numbers_keyspace = '2345679';
$letters_keyspace = 'abcdefghijkmnopqrstuvwxyz';
@AnnoyingTechnology
AnnoyingTechnology / bs3-to-bs4.css
Last active June 21, 2018 10:06
Bootstrap 3 elements for Bootstrap 4
/*
* Brings back :
* Labels
* Panels
* pull-{right/left}
* btn-default
*/
/* LABELS */
.label {