brew install redis
Set up launchctl to auto start redis
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
/usr/local/opt/redis/
is a symlink to /usr/local/Cellar/redis/x.y.z
(e.g., 2.8.7
)
/* | |
By kenharris from TypingMind Discord. | |
TypingMind Extension: Model Search & Full Model Names | |
Model Search Functionality: The model selector now includes a search | |
bar at the top. You can easily search and filter models by typing in | |
their names |
if (document.querySelector('[data-element-id="side-bar-background"]')) { | |
document.querySelector('[data-element-id="side-bar-background"]').style.backgroundColor = "black"; | |
} |
import board | |
import busio | |
from time import sleep | |
from displayio import ( | |
Bitmap, | |
Palette, | |
Group, | |
TileGrid, | |
FourWire, |
/* | |
RUN THE SCRIPT BY YOURSELF: | |
- Run `node paddle-revenue.js` on your server and let it run 24/7. | |
- Access the API at http://your_server_ip:8175/ (JSON) | |
HOSTED VERSION: | |
If you don't want to run the script by your own, you can use the | |
hosted version. The price is $5 per month per Paddle account. | |
Here is how: |
###################################################### | |
# | |
# My desktop is too messy for a long time. So I made | |
# a rule for it: Everything in my desktop should be | |
# temporary and should be deleted by the end of the | |
# day. | |
# | |
# This script will archive all items on your desktop | |
# to a directory. You will always have a clean | |
# desktop! |
cat <<EOF > ~/Library/LaunchAgents/com.$(whoami).jupyterlab.plist | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>com.$(whoami).jupyterlab</string> | |
<key>ProgramArguments</key> |
namespace :grape do | |
desc 'Print compiled grape routes' | |
task :routes => :environment do | |
API.routes.each do |route| | |
puts route | |
end | |
end | |
end |
In your command-line run the following commands:
brew doctor
brew update
/* | |
Usage: | |
* Paste this into your dev tools console (or even better as a snippet) | |
* It will parse the page and find all the things that create a new stacking context | |
and dump some info about them to the console. It will also outline them on the page. | |
* This is pretty rough and probably misses heaps of bugs and edge cases. | |
*/ | |
function run() { |