Skip to content

Instantly share code, notes, and snippets.

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@xgqfrms-GitHub
xgqfrms-GitHub / 前端知识汇总.md
Created December 21, 2016 07:43
前端知识汇总
@careyi3
careyi3 / README.md
Last active May 8, 2024 04:36
Arduino PID Implementation

Arduino PID

This is a basic implementation of a PID controller on an Arduino.

system_diagram

To replicate this, wire up the system as shown below:

system_diagram

@JulyIghor
JulyIghor / firetv_firmware.md
Last active May 8, 2024 04:35
Amazon Fire TV Stick 4K Firmware and apps. Official Cloud Front direct links only

FireTV 2nd gen Cube Firmware
github.com/Pro-me3us/raven_firmware

Fire TV Stick 4K Firmware

Date Version Download MD5
2019-08-20 Fire OS 6.2.6.5 (NS6265/2157) update-kindle-mantis-NS6265_user_2157_0002852679044.bin 09289b141c8339fe675cb0204689071f
2019-10-09 Fire OS 6.2.6.6 (NS6266/2292) update-kindle-mantis-NS6266_user_2292_0003054040196.bin 253162813010472bb8d54fc8b8eb7b80
2019-11-02 Fire OS 6.2.6.8 (NS6268/2315) [update-kindle-mantis-NS6268_user_2315_0003255372676.bin](https://d1s31zyz7dcc2d.cloudfront.net/5188853d0c8dd0c460b31b985065e071/update-kindle-mantis-NS6268_user_2315_0003255372676
@devops-school
devops-school / splunk-Universal-Forwarders.txt
Last active May 8, 2024 04:34
Splunk Tutorial: Install & Configure Universal Forwarders
Download File URL - https://download.splunk.com/products/splunk/releases/9.0.1/linux/splunk-9.0.1-82c987350fde-Linux-x86_64.tgz
Splunk Linux Tar file - wget -O splunk-9.0.1-82c987350fde-Linux-x86_64.tgz "https://download.splunk.com/products/splunk/releases/9.0.1/linux/splunk-9.0.1-82c987350fde-Linux-x86_64.tgz"
Splunk Linux rpm file - wget -O splunk-9.0.1-82c987350fde-linux-2.6-x86_64.rpm "https://download.splunk.com/products/splunk/releases/9.0.1/linux/splunk-9.0.1-82c987350fde-linux-2.6-x86_64.rpm"
Splunk Linux Debian file - wget -O splunk-9.0.1-82c987350fde-linux-2.6-amd64.deb "https://download.splunk.com/products/splunk/releases/9.0.1/linux/splunk-9.0.1-82c987350fde-linux-2.6-amd64.deb"
Splunk Linux Windows file - wget -O splunk-9.0.1-82c987350fde-x64-release.msi "https://download.splunk.com/products/splunk/releases/9.0.1/windows/splunk-9.0.1-82c987350fde-x64-release.msi"
@jahtzee
jahtzee / prompts.txt
Last active May 8, 2024 04:34
ChatGPT Jailbreaking prompts, exploits and other fun stuff
These are some exploits, jailbreaks, tricks, whatever you want to call them I've collected and discovered over time.
==== Games and fun stuff ====
== Set up a virtual machine inside GPTs imagination ==
"I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first command is pwd."
== Play a tabletop RPG with GPT as the dungeon master ==
"I want you to act as the dungeon master (DM) of a role playing game. Answer and act only in a way that a dungeon master would.
You are setting up a role playing game with only one other player. Everything you say as the dungeon master begins with (DM): followed by whatever you want to say. You will regularly ask me, the player, to
Alpine.directive('typed', (el, { expression, modifiers }, { evaluateLater, effect, cleanup }) => {
const getStrings = evaluateLater(expression);
const modifierValue = (key, fallback) => {
if (-1 === modifiers.indexOf(key)) {
return fallback;
}
const value = modifiers[modifiers.indexOf(key) + 1];
@ww9
ww9 / context_keys_as_struct_not_int_or_string.md
Last active May 8, 2024 04:27
Why use empty struct{} and not int or string for context.Value() key types in #go

Use struct{} as keys for context.Value() in Go

In the other file of this gist I detail why we should use struct{} as context.Value() keys and not int or string. Open gist to see main.go but the TLDR is:

	type key struct{}
	ctx = context.WithValue(ctx, key{}, "my value") // Set value
	myValue, ok := ctx.Value(key{}).(string) // Get value
@medwig
medwig / buildspec-terraform-symlinks.yml
Created April 23, 2019 13:29
Repair symlinks in AWS codepipeline