Skip to content

Instantly share code, notes, and snippets.

@all3kcis
all3kcis / pingchecker.py
Last active February 19, 2020 13:16
Ping checker, with email alerts and reminder when host is down
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# All3kcis 2020
from time import sleep
import platform
import datetime
import smtplib
import signal
@all3kcis
all3kcis / VMWARE.md
Created October 24, 2019 08:32
Launch bios at startup on Vmware player

edit .vmx file :
bios.forceSetupOnce = "TRUE"

@all3kcis
all3kcis / readme.md
Created September 30, 2019 14:27 — forked from endolith/readme.md
Unlock PDF restrictions shortcut for Windows

Install QPDF, and then edit this batch file with the correct path and create a shortcut to this batch file. Then you can Open With the shortcut file for quick access and it creates an unlocked version of a locked PDF in the same folder as the original.

@all3kcis
all3kcis / vmspool_manager.pl
Created June 3, 2019 08:50
Gestion messages vocaux Asterisk - Suppression des anciens messages
#!/usr/bin/perl
use strict;
# Copyright 2007 Jay Allen
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@all3kcis
all3kcis / Export-GPX-from-OSM.md
Last active April 19, 2019 10:27
Export GPX and others from OpenStreetMap - OSM - JSON - GEOJSON

Locate your element on : https://www.openstreetmap.org/
Right click "Interroger les objects"
Copie wikidata code : like "Q12782"
Going to http://overpass-turbo.eu/
Replace code into script bellow and click "Export" ;)

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“"wikidata"="" global”
@all3kcis
all3kcis / Sublime_Text_3_reg_file_extension.md
Created November 28, 2018 09:57
Regs keys to "open with" web file with SublimeText (portable app)
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SublimeText.nfo]
@="Info Text File"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SublimeText.nfo\DefaultIcon]
@="\"E:\\Logiciels\\Sublime Text Build 3083 x64\\sublime_text.exe\",0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SublimeText.nfo\shell]
@all3kcis
all3kcis / Emby-theater-premiere-bypass.md
Last active April 28, 2024 12:00
Emby Theater premiere bypass
@all3kcis
all3kcis / Excel-supprimer-protection-feuille.txt
Created May 15, 2017 12:56
Supprimer un mot de passe sur une feuille Excel
Supprimer un mot de passe perdu qui protège une feuille Excel
2 solution :Utiliser la macro suivante ou ouvrir le fichier en tant que zip pour effectuer la manipulation à la main.
renomer le .xlsx en .zip, ouvrir avec Winrar , aller dans le dossier sheets, ouvrer la feuille voulu et supprimer la référence au mot de passe.
Sinon utiliser la macro :
1.
S'il n'y a pas l'onglet « Développeur » dans le ruban (barre d'outils), impossible d'accéder à Visual Basic Editor. Il faut donc l'afficher.
2.
@all3kcis
all3kcis / php-errors.php
Created July 19, 2016 14:52
Show errors only in log file
<?php
error_reporting(-1); // -1 or E_ALL & ~(E_NOTICE)
ini_set('display_errors', 0);
@all3kcis
all3kcis / search-file-ext.sh
Last active June 3, 2016 07:42
search file with extension
#!/bin/bash
#set -xv
s_path=${1:-.}
file_ext=${2:-php}
#echo "$file_ext"
files=$(find "$s_path" -type f -name "*.$file_ext")
#echo "$files"