This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cloudflare API credentials | |
$email = "AAAAAAAA" | |
$apiKey = "BBBBBBBB" | |
# List of domains to be created | |
$domains = @( | |
"example.com", | |
"example2.com" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Command: gitskipped | |
Description: List skipped files in git | |
Usage: gitskipped | |
#> | |
function gitskipped { | |
(git ls-files -v $args) -split "\r\n" | Select-String -Pattern '^S ' | ForEach-Object { | |
Write-Output $_.Line.Substring(2) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
// | |
// Fonts: | |
// https://github.com/microsoft/cascadia-code/releases | |
// | |
// NOTE: To theme PowerShell: | |
// https://lazyadmin.nl/powershell/customizing-windows-terminal | |
// https://www.hanselman.com/blog/HowToMakeAPrettyPromptInWindowsTerminalWithPowerlineNerdFontsCascadiaCodeWSLAndOhmyposh.aspx | |
// Install Cascadia Code PL font |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Ctrl + Shift + T //// When Windows Explorer active, create new file | |
#IfWinActive, ahk_exe Explorer.EXE ahk_class CabinetWClass | |
^+t:: | |
WinGetTitle, currentWinTitle, A | |
if InStr(currentWinTitle, "\") ; If the full path is displayed in the title bar (Folder Options) | |
currentPath := currentWinTitle | |
else if InStr(currentWinTitle, ":") ; If the title displayed is something like "DriveName (C:)" | |
{ | |
currentPath := SubStr(currentWinTitle, -2) | |
currentPath := SubStr(currentPath, 1, -1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Stylus "Applies to" rule: | |
* URLs matching the regexp .*\.png | |
* | |
* Tested in Firefox and Edge Dev (Chromium) | |
*/ | |
body { | |
background: | |
linear-gradient(45deg, #eee 25%, transparent 25%), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Reddit redirect to old.reddit.com | |
// @match *://www.reddit.com/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function () { | |
window.location.href = 'https://old.reddit.com' + location.pathname; | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# src/DataProvider/CurrentUserProvider.php | |
namespace App\DataProvider; | |
use App\Entity\User; | |
use App\Repository\UserRepository; | |
use App\Security\SecurityUser; | |
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// src/Serializer/CommentNormalizer.php | |
namespace App\Serializer; | |
use App\DataProvider\CurrentUserProvider; | |
use App\Entity\Comment; | |
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; | |
use Symfony\Component\Serializer\Normalizer\NormalizerInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var existingLink = document.querySelector('link[data-custom-css]'); | |
if (existingLink) { existingLink.parentNode.removeChild(existingLink); } | |
var link = document.createElement('link'); | |
link.setAttribute('data-custom-css', '1'); | |
link.rel = 'stylesheet'; | |
link.href = '/xxxxxxxxxxxxxxxxxxxxxxxx.css?'+Math.floor(Math.random()*10000); | |
document.querySelector('head').appendChild(link); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Netflix /browse hero video preventer | |
// @author Shaun | |
// @namespace Violentmonkey Scripts | |
// @match *://*.netflix.com/browse | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
let observers = []; |
NewerOlder