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
@echo off | |
echo Starting to modify credential providers. | |
:: Self-elevate the script if required | |
NET FILE 1>NUL 2>NUL | |
if '%errorlevel%' == '0' ( goto :gotAdmin ) else ( goto :UACPrompt ) | |
:UACPrompt | |
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" | |
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" | |
"%temp%\getadmin.vbs" |
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
# PowerShell script for auto MDM enrollment of Azure AD joined devices | |
# This script should be run with administrative privileges | |
# Set MDM Enrollment URL's | |
$key = 'SYSTEM\CurrentControlSet\Control\CloudDomainJoin\TenantInfo\*' | |
$keyinfo = Get-Item "HKLM:\$key" | |
$url = $keyinfo.name | |
$url = $url.Split("\")[-1] | |
$path = "HKLM:\SYSTEM\CurrentControlSet\Control\CloudDomainJoin\TenantInfo\$url" |
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
[14:30.000 --> 14:41.480] All right welcome everybody give everyone a moment to get back in the audience and | |
[14:43.720 --> 14:49.900] All right great welcome to Tesla AI day 2022 | |
[14:49.900 --> 15:02.380] We've got some really exciting things to show you I think you'll be pretty impressed | |
[15:02.380 --> 15:07.700] I do want to set some expectations with respect to our | |
[15:08.620 --> 15:14.580] Optimus robot as as you know last year was just a person in a robot suit | |
[15:14.580 --> 15:22.580] But we've now we've come a long way and it's I think we you know compared to that it's going to be very impressive | |
[15:23.700 --> 15:25.700] and | |
[15:26.260 --> 15:27.980] We're going to talk about | |
[15:27.980 --> 15:36.580] The advancements in AI for full self-driving as well as how they apply to more generally to real-world AI problems like a humanoid robot | |
[15:36.580 --> 15:38.580] And and even going beyond that |
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
@echo off | |
setlocal enabledelayedexpansion | |
echo. | |
net session >nul 2>&1 | |
if NOT %errorLevel% == 0 ( | |
echo You do not have sufficient rights to execute this command | |
echo Please execute as Administrator | |
exit /B 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
# REQUIREMENTS | |
# brew install parallel trash | |
# APPROACH | |
# While FLAC has been around longer and is more broadly supported than ALAC, | |
# Apple doesn't seem to see that as an important factor when choosing what | |
# encoding formats to support in their music players. So we have to make do and | |
# convert FLAC to ALAC for their benefit. | |
# 1. Convert a single 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
find ./ -name "*.webp" -exec dwebp {} -o {}.jpg \; |
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
# Prerequisites: | |
# - Subscription to Google Cloud Platform. | |
# - G Suite Super Admin account to set up a service account on the G Suite tenant. | |
# - gcloud cli tool installed https://cloud.google.com/sdk/docs/downloads-versioned-archives | |
echo Step 1: Setup gcloud console project. | |
gcloud init | |
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
find ./ -name "*.png" -exec guetzli --quality 85 {} {}.jpg \; |
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 moveFiles(source, dest){ | |
var source_folder = DriveApp.getFolderById(source); | |
var dest_folder = DriveApp.getFolderById(dest); | |
var files = source_folder.getFiles(); | |
while (files.hasNext()) { | |
var file = files.next(); | |
dest_folder.addFile(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
#!/bin/bash | |
# Modified to generate phonebook.xml from a contacts.csv (name, number) | |
# Original author: | |
# FreePBX Phonebook Creation Script | |
# (c) Keith Rose All Rights Reserved. | |
# keith.rose.zw@gmail.com | |
# www.keithro.se | |
# Assumptions | |
# 1. Base FPBX install. Database in use = asterisk |
NewerOlder