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
// This works as a userscript however your browser supports these (for example, I use this as an Arc Boost) | |
const MY_LIB = ''; // Add your library code here. For example, Chicago Public Library is chipublib. You can find this by opening your Libby homepage and taking the last URL segment: https://libbyapp.com/library/chipublib | |
document.addEventListener('turbo:render', addLibby); | |
function addLibby() { | |
const titleBlock = document.querySelector('.book-title-author-and-series') | |
if (titleBlock && titleBlock?.innerText && titleBlock.innerText.indexOf('• 🔗 Libby') > -1) return; | |
const title = titleBlock ? titleBlock.innerText?.split('\n')[0] : ''; |
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/sh | |
# Get my apps | |
# Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Cask | |
brew tap caskroom/cask | |
# Apps |
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/sh | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # Homebrew | |
brew tap caskroom/cask # Cask | |
brew cask install cakebrew # Cakebrew | |
brew cask install google-chrome # Chrome | |
brew cask install franz # Franz | |
brew cask install spotify # Spotify | |
brew cask install vlc # VLC | |
brew cask install calibre # Calibre | |
brew cask install steam # Steam |
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
const input = `bkwzkqsxq-tovvilokx-nozvyiwoxd-172[fstek] | |
wifilzof-wbiwifuny-yhachyylcha-526[qrazx] | |
jvyyvzpcl-jhukf-shivyhavyf-487[zhtsi] | |
kwvacumz-ozilm-kivlg-kwvbiqvumvb-694[gknyw] | |
mvhkvbdib-kmjezxodgz-mvwwdo-omvdidib-837[dmvbi] | |
nzydfxpc-rclop-qwzhpc-lnbftdtetzy-171[cptzd] | |
vhehkyne-unggr-inkvatlbgz-813[gnehk] | |
tcorcikpi-hnqygt-octmgvkpi-570[nzewo] | |
xmtjbzidx-wvnfzo-jkzmvodjin-447[uyzlp] | |
willimcpy-mwupyhayl-bohn-mufym-734[stjoc] |
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
const input = 'R3, L2, L2, R4, L1, R2, R3, R4, L2, R4, L2, L5, L1, R5, R2, R2, L1, R4, R1, L5, L3, R4, R3, R1, L1, L5, L4, L2, R5, L3, L4, R3, R1, L3, R1, L3, R3, L4, R2, R5, L190, R2, L3, R47, R4, L3, R78, L1, R3, R190, R4, L3, R4, R2, R5, R3, R4, R3, L1, L4, R3, L4, R1, L4, L5, R3, L3, L4, R1, R2, L4, L3, R3, R3, L2, L5, R1, L4, L1, R5, L5, R1, R5, L4, R2, L2, R1, L5, L4, R4, R4, R3, R2, R3, L1, R4, R5, L2, L5, L4, L1, R4, L4, R4, L4, R1, R5, L1, R1, L5, R5, R1, R1, L3, L1, R4, L1, L4, L4, L3, R1, R4, R1, R1, R2, L5, L2, R4, L1, R3, L5, L2, R5, L4, R5, L5, R3, R4, L3, L3, L2, R2, L5, L5, R3, R4, R3, R4, R3, R1' | |
const inputArray = input.split(', ') | |
function mover() { | |
this.xPos = 0 | |
this.yPos = 0 | |
this.heading = 0 | |
this.visited = [] | |
this.visitedTwice = [] | |
this.turn = (direction) => { |
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
const input = ` 810 679 10 | |
783 255 616 | |
545 626 626 | |
84 910 149 | |
607 425 901 | |
556 616 883 | |
938 900 621 | |
638 749 188 | |
981 415 634 | |
680 557 571 |
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
const input = `LLLUDRDLLULDUDLLRLUDURULDURRRRLLURLDLDDDULLDDUDLRDLRDUURRDUUDLLRUUDDLULURDLRDUUDUDRURULLLLDRULDDLRDDRDLRDDLURLDDUDLLUUDLRDDDDLULUUURRDLUUDDLULLURRRDULLUDUDRDRDDRLDLLRLRDDDRDLULLUULDLLLRRDDUURUURDLLDRRDDLRULDLLDRLLUDRRDLUUULDLURLLDDURRUULLLLLRLUDLDDLLLURRRDUDULRULULDDLLDLRDDDUULRLRDUURLURRUDDURRUUDUDLDDLDULDDDDDULRULRDLRLDLRDLDDLUDRDUUDLDUDUDLLLRLUUDRUDDDRDRURRLLLDLUULDUULRDLULLUURLDRRRLDRLUDRRURLDULULDRUDDULLLDRDLLULUDDDDRDRULDULRRRRDDRULDLRDU | |
DLDDRRDLLDUURRLULLLLRDRLUDURLDRRDURRRRUUDDUDRRDDDRRLDDLDDLURDLDRLUDULDUDUUDDDLLULRRLLUDULLLUULDDRDDUDUUDULURULULLDRLRUURDRDDLRRUDRUULLLLURRUDRDULDDRURRURLLLLLRLLLRLLUDUDLRDLULDUDLULLLUUDLLDDDUDUDLLRRDLRDLLLRRLRUDRDUDRURLUUURULLDDDDLLURDULURRLLLRLRRULLRRRLUUULLLLRLRDUURRDUURLLLDRDURRRULDDUDRRDLRLDLLRUDDLLUDRLLUUDRLLLLLLUDLURLLRUDRUUUULDLUDULLDDDDRLURUURDDDURRRLRLUDUUDURDDDDRRLRDLURDDLLULDRDDURLLURULUUUUURDUUULDRRLLURRRRRLDDUULLRULLDLDLDLRRRDRLDRUUD | |
RLDRRRURULDLUDLDUDLLDUUURRDUDDURULLRRDDULUUDRRRULRUURRRLUUULRDRUDRRLLRLURDLDRDRDLLUDRUULRUDRUDDRURLRLURRDDRRU |
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
Public Sub DownloadFile() | |
' Requires 'Sleep' function | |
Dim IE As Object | |
Dim timeout As Date | |
Set IE = CreateObject("InternetExplorer.Application") | |
IE.Visible = False | |
'Navigate to a page to trigger Zscaler authentication |
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
By attaching this document to the given files (the “work”), you, the licensee, are hereby granted free usage in both personal and commerical environments, without any obligation of attribution or payment (monetary or otherwise). The licensee is free to use, copy, modify, publish, distribute, sublicence, and/or merchandise the work, subject to the licensee inflecting a positive message unto someone. This includes (but is not limited to): smiling, being nice, saying “thank you”, assisting other persons, or any similar actions percolating the given concept. | |
The above copyright notice serves as a permissions notice also, and may optionally be included in copies or portions of the work. | |
The work is provided “as is”, without warranty or support, express or implied. The author(s) are not liable for any damages, misuse, or other claim, whether from or as a consequence of usage of the given work. | |
Congratulations, you’ve got something with the best licence ever. | |
Basically, you’re free to do what you want with it; as l |
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 | |
# Script to deploy Wordpress into a ServerPilot app. | |
# Call programmatically via ssh - ssh <serverpilot-username>@<serverpilot-host> "curl <script-url> | sh -s <app-name> <db-name> <db-user> <db-user-pw>" | |
# This will prompt for password unless the user is able to log in using keys | |
cd /srv/users/serverpilot/apps/$1/public | |
wget https://wordpress.org/latest.tar.gz |
NewerOlder