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
let r = Math.random; | |
let fl = Math.floor; | |
let b = document.getElementsByTagName('body')[0]; | |
b.style.transition = 'all 1s ease-in-out'; | |
b.style.overflow = 'hidden'; | |
self.setInterval(() => { | |
let n = fl(r()*2); | |
let d = n?fl(r()*360):fl(r()*360)*-1; | |
let o1 = fl(r()*101)+1; | |
let o2 = fl(r()*101)+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
let before = 2018; | |
let tweets = document.querySelectorAll('li.stream-item'); | |
for(let i=0; i<tweets.length; i++) { | |
let tweet = tweets[i]; | |
let date = tweet.querySelector('small.time').innerText; | |
let year = date.split(' ')[3]; | |
if(year == parseInt(year) && year.length === 4 && parseInt(year) < before) { | |
let buttons = tweet.querySelectorAll('.dropdown-link'); | |
for(let j=0; j<buttons.length; j++) { | |
if(buttons[j].innerText === 'Delete Tweet') { |
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
$Query = "SELECT * FROM __InstanceCreationEvent Within 1 WHERE TargetInstance ISA 'Win32_PnPEntity'" | |
Register-WmiEvent -Query $Query -Action { | |
$id = $EventArgs.NewEvent.TargetInstance["DeviceID"] | |
Write-Host "New PnP Device detected: $id" | |
$user = ((quser) -replace '^>', '') -replace '\s{2,}', ',' | ConvertFrom-Csv | |
Disable-PnPDevice -InstanceID $id -Confirm:$False | |
tsdiscon $user.ID | |
} |
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
let urls = []; | |
let timer = self.setInterval(() => { | |
window.scrollBy(0, parseInt(getComputedStyle(document.body).height)); | |
let media = document.querySelectorAll('.AdaptiveMedia-photoContainer img'); | |
for (let i = 0; i < media.length; i++) { | |
let src = media[i].getAttribute('src'); | |
if (urls.indexOf(src) < 0) { | |
urls.push(src); | |
} | |
} |
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
function encode(string) { | |
return btoa(btoa((string.split('')).map((a) => { | |
return String.fromCharCode(a.charCodeAt()+-10) | |
}).join(''))); | |
} |
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
chrome.exe --args --cipher-suite-blacklist=0x009c,0x009d,0x002f,0x0035,0x000a,0x0a0a,0x1a1a,0x2a2a,0x3a3a,0x4a4a,0x5a5a,0x6a6a,0x7a7a,0x8a8a,0x9a9a,0xaaaa,0xbaa,0xcaca,0xdada,0xeaea,0xfafa,0x0a,0x1a,0x2a,0x3a,0x4a,0x5a,0x6a,0x7a,0x8a,0x9a,0xaa,0xba,0xca,0xda,0xea,0xfa,0xc013,0xc014,0xc02b,0xc02f |
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
{ | |
"targets": [ | |
{ | |
"target": "url", | |
"constraint": { | |
"operator": "matches", | |
"value": "*yourdomain.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
function ConvertTo-SecurePlainText { | |
[cmdletbinding()] | |
Param ( | |
[parameter(ValueFromPipeline)] | |
[string]$String = "", | |
[string]$File | |
) | |
Process { | |
if ($File) { |
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
$plans = Get-MailboxPlan | Where-Object {$_.MaxSendSize -ne "Unlimited"} | |
$plans | ForEach-Object { | |
Set-MailboxPlan $_.Name -MaxSendSize 150MB -MaxReceiveSize 150MB | |
} | |
Get-Mailbox -ResultSize Unlimited | Set-Mailbox -MaxReceiveSize 150MB -MaxSendSize 150MB |
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
Set-Acl -Path new.txt -AclObject (Get-Acl -Path old.txt) |
OlderNewer