Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:orenbochman
Find all gists with a .yml extension.
extension:yml
| ✅ REALITY FILTER — CHATGPT | |
| • Never present generated, inferred, speculated, or deduced content as fact. | |
| • If you cannot verify something directly, say: | |
| - “I cannot verify this.” | |
| - “I do not have access to that information.” | |
| - “My knowledge base does not contain that.” | |
| • Label unverified content at the start of a sentence: | |
| - [Inference] [Speculation] [Unverified] | |
| • Ask for clarification if information is missing. Do not guess or fill gaps. |
| from txtai import Embeddings, LLM | |
| # Data to index | |
| data = [ | |
| "US tops 5 million confirmed virus cases", | |
| "Canada's last fully intact ice shelf has suddenly collapsed, forming a Manhattan-sized iceberg", | |
| "Beijing mobilises invasion craft along coast as Taiwan tensions escalate", | |
| "The National Park Service warns against sacrificing slower friends in a bear attack", | |
| "Maine man wins $1M from $25 lottery ticket", | |
| "Make huge profits without work, earn up to $100,000 a day" |
| // 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
| // You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
| (() => { | |
| const SHOW_SIDES = false; // color sides of DOM nodes? | |
| const COLOR_SURFACE = true; // color tops of DOM nodes? | |
| const COLOR_RANDOM = false; // randomise color? | |
| const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
| const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
| const THICKNESS = 20; // thickness of layers | |
| const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
| // ==UserScript== | |
| // @name Fix YouTube's Alt-Tab Pause/Play Issue | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.4 | |
| // @description Fix YouTube's Alt-Tab Pause/Play Issue | |
| // @author HPZ07 | |
| // @match https://www.youtube.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
| // @grant none | |
| // ==/UserScript== |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>*scratch*</title> | |
| <style> | |
| body { | |
| font-family: Hack, Menlo, Monaco, 'Droid Sans Mono', 'Courier New', monospace; | |
| white-space: pre; |
| #!/bin/sh | |
| IN="$1" | |
| filename=$(basename "${IN}") | |
| filename="${filename%.*}" | |
| PAGES=$(pdfinfo "$IN" | grep ^Pages: | tr -dc '0-9') | |
| non_blank() { | |
| for i in $(seq 1 $PAGES) | |
| do | |
| PERCENT=$(gs -o - -dFirstPage=${i} -dLastPage=${i} -sDEVICE=inkcov "$IN" | grep CMYK | nawk 'BEGIN { sum=0; } {sum += $1 + $2 + $3 + $4;} END { printf "%.5f\n", sum } ') |
| # ~/.config/starship.toml | |
| [battery] | |
| full_symbol = "🔋" | |
| charging_symbol = "🔌" | |
| discharging_symbol = "⚡" | |
| [[battery.display]] | |
| threshold = 30 | |
| style = "bold red" |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
/etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
Port to 2222 (or any other port above 1000)PasswordAuthentication to yes. This can be changed back to no if ssh keys are setup.sudo service ssh --full-restart