Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / FilesSnapshot.xml
Created May 8, 2024 19:08
choco-package-list-backup v2023.6.28 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\choco-package-list-backup\choco-package-list-backup.nupkg" checksum="CFCD8DD8A091BDB08632D678CE68B756" />
<file path="C:\ProgramData\chocolatey\lib\choco-package-list-backup\choco-package-list-backup.nuspec" checksum="AFA3898DE4DCFCE705232D3682759240" />
<file path="C:\ProgramData\chocolatey\lib\choco-package-list-backup\tools\.SkipAutoUninstaller" checksum="D41D8CD98F00B204E9800998ECF8427E" />
<file path="C:\ProgramData\chocolatey\lib\choco-package-list-backup\tools\ChocolateyInstall.ps1" checksum="40B578A62296BDFAF899772F044A804E" />
<file path="C:\ProgramData\chocolatey\lib\choco-package-list-backup\tools\ChocolateyUninstall.ps1" checksum="99CD20488B120119C3D1A38021ADF382" />
</files>
</fileSnapshot>
@djoo
djoo / elementor_colors_to_mce4_options.php
Created May 8, 2024 19:07
Elementor Colors To TinyMCE WordPress
<?php
function elementor_colors_to_mce4_options($init) {
// For exporting global settings
$default_post_id = get_option('elementor_active_kit');
$global_data = get_post_meta($default_post_id, '_elementor_page_settings', true);
$custom_colours = '';
// Adding system colors
Maintainers:
fabaff: python311Packages.google-ai-generativelanguage, python312Packages.google-ai-generativelanguage, python312Packages.google-ai-generativelanguage, python311Packages.google-ai-generativelanguage, python312Packages.google-ai-generativelanguage, python312Packages.google-ai-generativelanguage, python311Packages.google-ai-generativelanguage, python311Packages.google-ai-generativelanguage
aarch64-darwin python311Packages.llama-index-vector-stores-google
x86_64-linux python311Packages.google-ai-generativelanguage
aarch64-linux python312Packages.llama-index-embeddings-gemini
x86_64-darwin python311Packages.llama-index-embeddings-gemini
aarch64-linux python311Packages.llama-index-embeddings-gemini
x86_64-darwin python311Packages.llama-index-embeddings-google
aarch64-darwin python312Packages.google-ai-generativelanguage
x86_64-linux python312Packages.llama-index-vector-stores-google
x86_64-linux python312Packages.google-generativeai
aarch64-darwin python311Packages.llama-index-embeddings-gemini
[
{
"animeEng": "Oshiete Hokusai!: The Animation",
"animeRomaji": "Oshiete Hokusai!: The Animation",
"songName": "Tenkorin no Theme",
"artist": "CHAI/Azumi Waki/Katsuyuki Konishi",
"type": "Opening 1",
"correctCount": 0,
"startTime": 3,
"songDuration": 68.777041,
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created May 8, 2024 19:06
lingering-object-liquidator v2.0.21 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-4145849303-3370844349-3409280883-1000</user>
<keys>
<key installerType="Msi" displayName="Lingering Object Liquidator v2" displayVersion="1.0.0">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{65E23EF8-0DF2-4A10-8826-C10079BC19E2}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /I{65E23EF8-0DF2-4A10-8826-C10079BC19E2}]]></UninstallString>
from fabric import ThreadingGroup
import subprocess
import argparse
from termcolor import colored
def get_instance(name_patterns):
# Can get names and IPS in one cmd instead of 2 separate ones
# print instance names
ec2_list_cmd = f"aws ec2 describe-instances --output text --filters Name=tag:Name,Values={name_patterns} --query Reservations[*].Instances[*].Tags[?Key==`Name`].Value[]"
process = subprocess.run(ec2_list_cmd.split(" "),
@zaksenards
zaksenards / Cyclelist.cpp
Created May 8, 2024 19:05
Circular list/buffer test
#include <cstdlib>
#include <cstdio>
class Cyclelist
{
private:
int count;
size_t max;
struct Node
{
@ZabdiBen
ZabdiBen / HebrewDate.php
Created May 8, 2024 19:05
get the Hebrew date from Gregorian date
class HebrewDate {
public static function hebdate($date) {
// Returns string of Hebrew Date by hebdate_lang
// Remove the sunset check as it's not applicable in a static context
$lang = get_option('hebdate_lang');
if ($lang == 'site'){
if (get_locale() == 'he_IL'){
$lang = 'hebrew';
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created May 8, 2024 19:04
klog v2.3.2 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-2412192122-1938444825-1709503042-1000</user>
<keys>
<key installerType="Unknown" displayName="KLog" displayVersion="">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KLog</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files (x86)/KLog]]></InstallLocation>
<UninstallString><![CDATA[C:\Program Files (x86)\KLog\uninstall.exe]]></UninstallString>