Skip to content

Instantly share code, notes, and snippets.

@AnnoyingTechnology
AnnoyingTechnology / What a good MacBook Pro would be in 2018.txt
Last active November 9, 2018 09:30
What a good MacBook Pro would be in 2018
A) stop glueing the battery in place, and use screws instead.
B) offer an equal number of USB-A and USB-C ports (at least two of each)
C) offer an optional 1440p display on 15", and 1080p on 13", for those who don't need 4K (and suiting lower specs GPU options).
D) make smaller bezels, with tiny edges (like Dell's XPS lineup or Matebook Pro X, for example).
E) place the RAM in standard SODIM slots (not soldered)
F) place the SSD in standard M.2 slot (not soldered)
G) offer a secondary M.2 slot for optional PCIe SSD/SATA SSD (for upgradability).
H) ditch ATI/AMD graphics card and use Nvidia instead : GTX 1050, GTX 1060, GTX 1070 (better performance, lower power draw)
I) offer the option of not having a dedicated GPU (Some **actual** professionnal only need raw CPU power, and don't care about GPU).
J) get back a keyboard that feels good to type on, and make it changeable with screws, not fucking rivets. People are comming back to huge mechanical keyboards, aiming for slimmer and slimmer keys clearly isn't wha
@AnnoyingTechnology
AnnoyingTechnology / Attention-Fortuneo-ne-couvre-pas-les-trackday-attestation-responsabilite-civile.txt
Last active July 3, 2018 19:21
Attention, assurance automobile Fortuneo et assurance circuit
Mauvais surprise avec l'assurance auto de Fortuneo : ils ne couvrent pas les trackday !
Impossible donc pour eux de délivrer une simple attestation RC circuit (même en pratique amateur).
Et ils ne proposent pas d'option non plus pour en bénéficier.
Si vous faites du circuit, oubliez Fortuneo :-/
@AnnoyingTechnology
AnnoyingTechnology / bs4-to-bs3.css
Created June 21, 2018 10:04
Bootstrap 4 elements for Bootstrap 3
/* THIS FILE SHOULD NOT INTEREST YOU */
/* ONLY VERY SPECIFIC CLASSES HAVE BEEN BACKPORTED HERE */
.float-right {
float: right;
}
.dropdown-item {
display: block;
width: 100%;
@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 {
@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 / 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 / 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 / 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 / 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 / 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.