Skip to content

Instantly share code, notes, and snippets.

View Oceanswave's full-sized avatar
🎯
Focusing

Sean McLellan Oceanswave

🎯
Focusing
View GitHub Profile
var showControls = function() {
uiEventsHappening += 1;
var scrubber = $('#scrubber-component');
var eventOptions = {
'bubbles': true,
'button': 0,
'currentTarget': scrubber[0]
};
scrubber[0].dispatchEvent(new MouseEvent('mousemove', eventOptions));
return delay(10)().then(function() {
@Oceanswave
Oceanswave / ACD Secure Storage
Created March 10, 2017 21:57
Using a Raspberry Pi as a local gateway to unlimited encrypted storage via Amazon Cloud Drive
The Pi is Linux, so it can be done with shell scripts easily. Here is a part of a guide I wrote for setting up an encrypted ACD on Linux. I tried to use only the relevant parts, sorry if it seems disjointed.
After that, install the software that we will be using.
sudo apt-get update
sudo apt-get install sshfs
sudo apt-get install encfs
sudo apt-get install python3-pip
pip3 install --upgrade git+https://github.com/yadayada/acd_cli.git
acd_cli init
We will need to add the Amazon authorization key to the .cache/acd_cli/ folder. Instructions can be found at http://acd-cli.readthedocs.io/en/latest/authorization.html
@Oceanswave
Oceanswave / standard_dev_tools_.md
Last active November 4, 2023 17:14
Standard Dev Tools

Homebrew install:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

macOS Standard Tools:

brew install awscli azcopy azure-cli azure-functions-core-tools balena-cli certbot cmake ctop deno doctl ffmpeg fftw freetype gh git git-flow go graphviz helm jq mkcert mono ncurses nvm packer pyenv python@3.8 qpdf rtmpdump serverless telnet terraform terragrunt wget yarn youtube-dl pandoc rustup tailscale

brew install --cask aerial anaconda caffeine citrix-receiver google-chrome iterm2 lens powershell transmission visual-studio-code microsoft-azure-storage-explorer vlc qbittorrent
@Oceanswave
Oceanswave / MessageTemplate-AM.txt
Last active October 7, 2017 02:43
Remote Work Message Templates
<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>
<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>
@Oceanswave
Oceanswave / move.sql
Last active May 24, 2021 15:00
Move SQL Files
--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
@Oceanswave
Oceanswave / gist:d7e2263679f7fee72f97972e029f08f7
Last active July 22, 2021 05:18
Ubuntu boot from RPi MSD
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
@Oceanswave
Oceanswave / clone-devops-repos
Created September 19, 2021 15:13
Clone All Azure DevOps Repos
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
@Oceanswave
Oceanswave / Web.config
Last active November 3, 2021 22:41
default sitecore webconfig
<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"
@Oceanswave
Oceanswave / Download-SharePoint2019.ps1
Created April 19, 2022 03:50
Download SharePoint 2019 Image
$rgName = "sp2019"
$rgLocation = "eastus2"
$vmSize = "Standard_D2s_v3"
$vmName = "sp2019-test"
$vmAuthenticationType = "password" # ssh
$vmImage = "MicrosoftSharePoint:MicrosoftSharePointServer:sp2019:latest"
$vmUserName = "sp2019"
$vmPassword = "P@ssw0rd1234"
$vmStorageAccountName = "sp2019vm"
$vmStorageAccountSku = "Standard_LRS"