A common and reliable pattern in service unit files is thus:
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
# A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows | |
# | |
# Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only: | |
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process | |
# | |
# To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ ) | |
# .\WhateverScriptName.ps1 | |
# ------------------------------------------------------------------------------------------- | |
# Script by ThioJoe - https://github.com/ThioJoe | |
# On slow systems, checking the cached .zcompdump file to see if it must be | |
# regenerated adds a noticable delay to zsh startup. This little hack restricts | |
# it to once a day. It should be pasted into your own completion file. | |
# | |
# The globbing is a little complicated here: | |
# - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct. | |
# - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error) | |
# - '.' matches "regular files" | |
# - 'mh+24' matches files (or directories or whatever) that are older than 24 hours. | |
autoload -Uz compinit |
Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}
""" | |
Create train, valid, test iterators for CIFAR-10 [1]. | |
Easily extended to MNIST, CIFAR-100 and Imagenet. | |
[1]: https://discuss.pytorch.org/t/feedback-on-pytorch-for-kaggle-competitions/2252/4 | |
""" | |
import torch | |
import numpy as np |
class GuidShortener { | |
public static guidToBase95(guid: string): string { | |
const bigInt = this.hexToBigInt(guid); | |
let base95String = this.bigIntToBase95(bigInt); | |
// Pad the result to ensure it's exactly 20 characters long | |
while (base95String.length < 20) { | |
base95String = ' ' + base95String; // Using space to pad for simplicity | |
} |
.org $8000 | |
.org $ff00 | |
XAML = $24 ; Last "opened" location Low | |
XAMH = $25 ; Last "opened" location High | |
STL = $26 ; Store address Low | |
STH = $27 ; Store address High | |
L = $28 ; Hex value parsing Low | |
H = $29 ; Hex value parsing High | |
YSAV = $2A ; Used to see if hex value is given |
library(mapboxapi) | |
library(mapview) | |
mb_access_token("YOUR TOKEN GOES HERE") | |
isos <- mb_isochrone("2500 Victory Ave, Dallas TX", | |
time = c(5, 10, 15), | |
profile = "driving-traffic") | |
mapview(isos, zcol = "time", |
// Auto like everything on current page | |
// Scroll every 1 seconds and repeat | |
setInterval(function () { | |
window.scrollTo(0, document.body.scrollHeight); | |
$('.ProfileTweet-actionButton.js-actionButton.js-actionFavorite:visible').click(); | |
}, 1000); |