This file contains hidden or 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
import argparse | |
import random | |
import sys | |
from transformers import AutoModelForCausalLM, AutoTokenizer, DynamicCache | |
import torch | |
parser = argparse.ArgumentParser() | |
parser.add_argument("question", type=str) | |
parser.add_argument( |
This file contains hidden or 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
#! python3.7 | |
import argparse | |
import io | |
import os | |
import torch | |
from transformers import pipeline | |
import speech_recognition as sr | |
from datetime import datetime, timedelta |
This file contains hidden or 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
Renaming a Proxmox VE Node | |
I recently upgraded my homelab Proxmox host server and wanted to repurpose my existing server to use as a testing environment. Below are the steps I used to rename the old Proxmox instance. These steps worked for me. Please let me know in the comments if you try these steps and any issues arise that I didn't have in my environment. | |
NOTE: Renaming a node that is part of a cluster is not recommended. These steps are intended for standalone nodes. Always make backups of important VMs before attempting to modify the Proxmox host. | |
Log into ProxMox VE, either at the console, via SSH or the web UI and launch the web shell | |
Run the following commands, alternatively you can manually edit each file mentioned with nano or vi and replace the old hostname with the new one | |
# set the old hostname and write to ini | |
echo "OLD_HOSTNAME=$(hostname)" > ~/pmrename.ini | |
# set the new hostname in ini, update as needed |
This file contains hidden or 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
<configuration> | |
<configSections> | |
<section name="sitecore" type="Sitecore.Configuration.RuleBasedConfigReader, Sitecore.Kernel"/> | |
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, Sitecore.Logging"/> | |
<section name="RetryPolicyConfiguration" | |
type="Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.Configuration.RetryPolicyConfigurationSettings, Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling. | |
Configuration, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
requirePermission="true"/> | |
<section name="configBuilders" | |
type="System.Configuration.ConfigurationBuildersSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" |
This file contains hidden or 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
param( | |
[string]$Organization | |
) | |
if ($Organization -notmatch '^https?://dev.azure.com/\w+') { | |
$Organization = "https://dev.azure.com/$Organization" | |
} | |
# Make sure we are signed in to Azure | |
$AccountInfo = az account show 2>&1 |
This file contains hidden or 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
1) Download the Ubuntu image for raspberry pi 4 form the Ubuntu official website. | |
2) Flash the image to a USB drive (USB 3.0 SSD or UBS flash drive). | |
3) Download the updated firmware files from the raspberry pi github site (https://github.com/raspberrypi/firmware ... aster/boot). Copy all *.dat and *.elf files to the Ubuntu boot partition. (Overwrite the files that were previously there). | |
NOTE: You must have MSD Booting EEPROM flashed onto your RPI4, or else this will not work!!! See: https://www.raspberrypi.org/documentati ... torageboot | |
Note: As of August 2020, you may not need to perform step 3. It has been reported that the current Ubuntu image contains the correct firmware files. I will leave this step here in case it does help someone. Be aware that it may not be necessary, but does not hurt to do anyway. | |
4) Decompress vmlinuz on the boot partition |
This file contains hidden or 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 variables | |
DECLARE @logpath NVARCHAR(260) = 'C:\SitecoreDBs\logs\' | |
DECLARE @datapath NVARCHAR(260) = 'C:\SitecoreDBs\data\' | |
DECLARE @movelogs BIT = 1 | |
DECLARE @movedata BIT = 1 | |
--runtime variables | |
DECLARE @STMT NVARCHAR(4000) | |
--uncomment the predicates to include and exclude databases as required |
This file contains hidden or 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
<div style="display:block;position:relative;min-width:0px;max-width:640px"><div style="padding-top:56.25%"><video data-video-id="5742275941001" data-account="5718741448001" data-player="default" data-embed="default" data-usage="cms:sharepoint:16.0.7625.1214:4.0.0-beta20:javascript" class="video-js" controls="" style="width:100%;height:100%;position:absolute;top:0px;bottom:0px;right:0px;left:0px"></video><script src="//players.brightcove.net/5718741448001/default_default/index.min.js"></script></div></div> |
This file contains hidden or 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
<p>Good Morning,</p> | |
<p>I have started my work day.<br/> | |
<ul> | |
<li>Start Time: {{format startWorkTime 'h:mm tt'}}</li> | |
<li>End Time: {{format endWorkTime 'h:mm tt'}}</li> | |
<li>Phone: 571-393-1415</li> | |
</ul> | |
</p> | |
<p> |
NewerOlder