Skip to content

Instantly share code, notes, and snippets.

View niquenen's full-sized avatar
:octocat:
Just chill

Cédric Hennequin niquenen

:octocat:
Just chill
View GitHub Profile
@therealFoxster
therealFoxster / msautoupdate_fix.sh
Created January 22, 2023 01:25
Fix for Microsoft AutoUpdate "Updates are temporarily unavailable, please try again in a few minutes."
#!/bin/bash
# https://answers.microsoft.com/en-us/msoffice/forum/all/microsoft-autoupdate-not-working/112beb19-3f68-49f4-a48b-00859ae900e3?page=3
launchctl stop /Library/LaunchAgents/com.microsoft.update.agent.plist
launchctl unload -w /Library/LaunchAgents/com.microsoft.update.agent.plist
launchctl load -w /Library/LaunchAgents/com.microsoft.update.agent.plist
@hkamran80
hkamran80 / SmartTV2.txt
Last active October 31, 2024 03:01
Pi-hole Blocklist for Smart TVs
# THIS FILE IS NO LONGER BEING MAINTAINED. FOR A MAINTAINED VERSION, PLEASE USE THE VERSION IN THE NEW REPOSITORY.
# Repository: https://github.com/hkamran80/blocklists
# New link for this file: https://raw.githubusercontent.com/hkamran80/blocklists/main/smart-tv
# ------
# This is a blocklist to block Smart TVs sending data home.
# Please help to collect domains!
# It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident.
@rxaviers
rxaviers / gist:7360908
Last active November 20, 2024 06:43
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@will83
will83 / gist:5920606
Last active February 13, 2024 15:20
Fonction PHP permettant la conversion de Lambert93 à WGS84 (selon le fichier fourni par l'IGN).
<?php
function lambert93ToWgs84($x, $y){
$x = number_format($x, 10, '.', '');
$y = number_format($y, 10, '.', '');
$b6 = 6378137.0000;
$b7 = 298.257222101;
$b8 = 1/$b7;
$b9 = 2*$b8-$b8*$b8;
$b10 = sqrt($b9);
$b13 = 3.000000000;
@sgmurphy
sgmurphy / url_slug.php
Created July 12, 2012 15:52
URL Slugs in PHP (with UTF-8 and Transliteration Support)
<?php
/**
* Create a web friendly URL slug from a string.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <[email protected]>
* @copyright Copyright 2012 Sean Murphy. All rights reserved.