Write a simple 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
// Author: mnemotiv | |
// Donate: https://donate.stripe.com/9AQbJM4xC62P0xieUU | |
// Don't forget to run this first: | |
// npm i @dqbd/tiktoken | |
import { get_encoding } from '@dqbd/tiktoken'; | |
import type { ChatCompletionRequestMessage } from 'openai'; | |
const countTokens = (messages: ChatCompletionRequestMessage[]): number => { |
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
$ResourceLocation = "Global" | |
$ResourceName = "outingbay.com" #user's domain (constoso.com) | |
$ResourceGroupName = "outingbay" # This should be an existing resource group in your Azure subscription | |
$PropertiesObject = @{ | |
'Consent' = @{ | |
'AgreementKeys' = @("DNPA","DNTA"); | |
'AgreedBy' = '10.5.50.11'; #user's IP address (192.168.1.1) | |
'AgreedAt' = '2019-11-15 10:17:42Z'; #roughly the current time (2017-13-05T12:25:30.6850404Z) | |
}; | |
'authCode' = '<The code you received from other registrar>'; #code obtained from their current provider in order to transfer out the domain |
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 | |
use Elementor\Controls_Manager; | |
use Elementor\Element_Base; | |
use Elementor\Core\Files\CSS\Post; | |
use Elementor\Core\DynamicTags\Dynamic_CSS; | |
// Exit if accessed directly | |
if (!defined('ABSPATH')) { | |
exit; |
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
/** | |
* @package Thz Framework | |
* @author Themezly | |
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only | |
* @websites http://www.themezly.com | http://www.youjoomla.com | http://www.yjsimplegrid.com | |
*/ | |
class ThzelGetElementSettings { | |
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 | |
// Fomo documentation: https://docs.fomo.com/reference | |
// Freemius documentation: http://freemius.com/help/documentation/marketing-automation/events-webhooks/ | |
// Install Fomo PHP SDK https://github.com/usefomo/fomo-php-sdk | |
include "vendor/autoload.php"; | |
define("FOMO_AUTH_TOKEN", "*********"); |
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
chmod +x d8.sh | |
yes "yes" | ./d8.sh | |
#!/bin/bash | |
sudo apt-get purge php.* | |
sudo rm -rf /etc/php | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update |
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 | |
set -o errexit | |
# Address of the registry that we'll be | |
# performing the inspections against. | |
# This is necessary as the arguments we | |
# supply to the API calls don't include | |
# such address (the address is used in the | |
# url itself). |
NewerOlder