Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / highsierra_bootable.sh
Created August 29, 2018 14:48 — forked from agentsim/highsierra_bootable.sh
Create bootable ISO from HighSierra Installer
# Generate a BaseSystem.dmg with 10.13 Install Packages
hdiutil attach /Applications/Install\ macOS\ High\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra
hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/highsierra/
mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg
@AnnoyingTechnology
AnnoyingTechnology / switching-from-macos-to-debian-may-2018-guide.md
Last active September 4, 2018 12:08
Switching from macOS to Debian 9 (2018)

Switching from macOS to Debian (September 2018 Guide)

I've been an Apple « fanboy » for almost 20 years now, but in the last few years everything Apple seems to take the wrong direction, my admiration for Apple transformed into irritation, sadness and despair. We've all put up with a lot of Apple's dick moves and screwed-up choices, but no more. It is time to leave Apple and take action, switching to what seems to be the most decent alternative for me : Debian. (Altough Elementary OS or Ubuntu would better suit most non power-user. This guide would still apply to them)

In this document (a work in progress) I'm going to list a few of the things that could bother you, switching from MacOS to Debian, and how to circumvent or fix them.

The installation process will not be covered, as it is explained in the official documentation. The gaming aspect will not be covered either, as the most obvious choice for that would be to have a decidated Windows system. I will mostly cover productivity features, and

@AnnoyingTechnology
AnnoyingTechnology / debian-10-post-install-script-first.sh
Last active September 6, 2018 09:49
Debian 10, install lovely software and tools
#!/bin/bash
# Compatible with Debian Buster (10) only (current testing).
# Does not work with Ubuntu 18.04, does not work with Debian 9.5 stretch.
# preliminary tool
apt install dirmngr
# add Flat Remix repo and keys
echo "deb http://ppa.launchpad.net/daniruiz/flat-remix/ubuntu $(lsb_release -sc) main" | tee /etc/apt/sources/list.d/flat-remix.list
@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