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 | |
require 'simple_html_dom.php'; | |
$baseUrl = "https://www.europeanfilmacademy.org/Presentation.presentation.0.html?&no_cache=1&uid="; | |
for ($i = 1866; $i <= 4500; $i++) { | |
$html = new simple_html_dom(); | |
try { | |
$html->load_file($baseUrl . $i); | |
} catch (Exception $ex) { |
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 | |
changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
runOnChange() { | |
echo "$changedFiles" | grep -q "$1" && eval "$2" | |
} | |
runOnChange resources/js/ "npm run <your-npm-script>" | |
runOnChange resources/scss/ "npm run <your-npm-script>" |
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
switch ($args[0]) { | |
"hide" { | |
Set-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name System.IsPinnedToNameSpaceTree -Value 0 | |
Set-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name System.IsPinnedToNameSpaceTree -Value 0 | |
break; | |
} | |
"show" { | |
Set-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name System.IsPinnedToNameSpaceTree -Value 1 | |
Set-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name System.IsPinnedToNameSpaceTree -Value 1 | |
break; |
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
ForwardAgent true | |
# Necessary for not breaking ssh on linux | |
IgnoreUnknown UseKeychain | |
# Use Keychain on macos - ignored on linux | |
UseKeychain yes | |
Host * | |
# This will look for private keys under the `~/.ssh/keys` |
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
; Recommended for performance and compatibility with future AutoHotkey releases. | |
#NoEnv | |
; Recommended for new scripts due to its superior speed and reliability. | |
SendMode Input | |
; Ensures a consistent starting directory. | |
SetWorkingDir %A_ScriptDir% | |
; Mentioned in the hotkeys docs for UP | |
Space & F1::Return |
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
; Config ; | |
#SingleInstance force ; Force a single instance of this script | |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
Menu, Tray, icon, macros.ico ; Set system tray icon to robot arm | |
SetCapsLockState, AlwaysOff ; Set caps lock state to always be off | |
; Remappings ; |
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
Register-ScheduledTask ` | |
-TaskName "AHK-Macros" ` | |
-Action $(New-ScheduledTaskAction -Execute "path\to\ahk.exe" -Argument "D:\Drive\etc\macros.ahk" -WorkingDirectory "D:\Drive\etc") ` | |
-Trigger $(New-ScheduledTaskTrigger -AtLogOn) ` | |
-Principal $(New-ScheduledTaskPrincipal -GroupId "BUILTIN\Administrators" -RunLevel Highest) |
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
''' | |
Put this script in a messy folder filled with images and video files. | |
After running it, a "Years" folder will be created with the media files | |
sorted by months in each year. | |
You can also change what types of files to look for in your folder by | |
adding to or changing the "imgFormats" and "videoFormats" lists. | |
''' | |
import os |
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 | |
curl -k -X GET \ | |
-H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ | |
https://$KUBERNETES_PORT_443_TCP_ADDR:$KUBERNETES_SERVICE_PORT_HTTPS |
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 | |
apt update | |
apt upgrade | |
apt install gnupg | |
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list | |
wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add - | |
apt update | |
apt install -y \ |
OlderNewer