Skip to content

Instantly share code, notes, and snippets.

window.addEventListener("load", function() {
// hearthis html code
var t = jQuery("[id^='hearthis_at_']");
if (1 == t.length) {
/*
var e = t.closest(".wpb_wrapper").parent("div");
e.closest(".vc_column-inner").first(".wpb_wrapper").css({
"padding-top": e.outerHeight() - 30 + "px"
}), jQuery(e).addClass("cst-htp-sty")
@xlimit91
xlimit91 / raspberry pi w zero - pihole blocklists.txt
Created November 17, 2019 09:46
Just a few blocklists I am currently using in my pihole - a few are disabled, due overblocking
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
http://sysctl.org/cameleon/hosts
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt
https://www.malwaredomainlist.com/hostslist/hosts.txt
http://someonewhocares.org/hosts/hosts
http://winhelp2002.mvps.org/hosts.txt
https://blocklist.kowabit.de/win10list.txt
@xlimit91
xlimit91 / Borderlight-retro.txt
Created August 5, 2019 12:59
Borderlight Retro Synthwave Colors - Android APK - Exported Settings
[H4sIAAAAAAAAAE2MWwqAMAwEr+QLqblMURNMoG3ERry+aAv6u7MzSW3lLEgXycbGpjsMvU/PHAUx0CVoDM75Y0Y586JmGmGsn59ayeQK4XcF11TxKY/tZ+USnjpPaV4CvQCaG0FwXwmRAAAA]
<?php
echo $_SERVER['DOCUMENT_ROOT'];
?>
; Wenn Ihr OneDrive unter Windows 10 auch im Explorer entfernen wollt, geht in die Registry (regedit) unter:
; HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace
; Dort ist ein OneDrive Eintrag, diesen könnt Ihr löschen. Alternativ könnt ihr auch "NameSpace" direkt löschen.
; REMOVE -----------------------------------------------------
Windows Registry Editor Version 5.00
; Explorer Ordner "3D-Objekte" ausblenden
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
@xlimit91
xlimit91 / functions.php
Created June 3, 2019 18:47
fix wordpress yoast shortcuts in description by wpbakery visual composer
add_filter('wpseo_metadesc', function($description){
if (strpos($description, '[vc_row][vc_column][vc_column_text]') !== false) {
$description = str_replace( '[vc_row][vc_column][vc_column_text]', '', $description ); }
return $description;
});
@xlimit91
xlimit91 / .htaccess
Created April 23, 2019 17:20
.htaccess replace a part of the url - redirect 301 wildcard
# Example:
# OLD URL: http://website.com/xxx/yyy/picture.png
# NEW URL: http://website.com/wp-content/picture.png
# So, I want to replace /xxx/yyy/ with the normal /wp-content/ path of WordPress.
# Put this in your .htaccess file.
RewriteEngine on
RedirectMatch 301 /xxx/yyy/(.*) http://website.com/wp-content/$1
// https://editor.p5js.org/
function setup() {
createCanvas(500, 500);
}
function draw() {
background(255, 192, 203);
//eyes
sudo pihole -up && sudo apt-get --yes update && sudo apt-get --yes dist-upgrade
@xlimit91
xlimit91 / autoit-silkroad-autotyper.au3
Last active April 30, 2019 17:35
Paste text to silkroad with autoit - projecthax
#RequireAdmin
; www.projecthax.com
;
; Copy text press strg+c
; Paste text press "Pause" Button to silkroad
;
Dim $sKeyToPress = "{PAUSE}" ; you can change this for paste button
HotKeySet($sKeyToPress, "copy_paste")