Skip to content

Instantly share code, notes, and snippets.

@ruvnet
ruvnet / *notepad.ipynb
Last active May 12, 2024 19:34
*metaprompt.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jessepearson
jessepearson / adding_new_webhook_topics.php
Last active May 12, 2024 19:33
How to add a new custom Webhook topic in WooCommerce, with example of order filtering.
<?php // do not copy this line
/**
* add_new_topic_hooks will add a new webhook topic hook.
* @param array $topic_hooks Esxisting topic hooks.
*/
function add_new_topic_hooks( $topic_hooks ) {
// Array that has the topic as resource.event with arrays of actions that call that topic.
@kueller
kueller / Bartender Drink Recipes.md
Last active May 12, 2024 19:33
All drink recipes from the Bartender anime, to whatever details were given in the show.

Episode 1 - The Bartender

Mizuwari

  • Whiskey
  • Water

Grasshopper (end/credits)

  • 20ml Crème de cacao
  • 20ml Crème de menthe
  • 20ml Fresh cream
@gabe565
gabe565 / change-arc-icon.md
Last active May 12, 2024 19:32
Change Arc Browser Icon

Change Arc Browser Icon

arc

A collection of commands that change the Arc Browser icon on macOS.

Commands

Theme Command
Candy Arc defaults write company.thebrowser.Browser currentAppIconName candy
@markheath
markheath / docker-compose-v1.yml
Last active May 12, 2024 19:31
Elasticsearch docker compose examples
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.1
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
@alinastorm
alinastorm / Untitled-2
Created January 27, 2019 19:25
ПРАВИЛА ОФОРМЛЕНИЯ ФАЙЛА README.MD НА GITHUB
**ПРАВИЛА ОФОРМЛЕНИЯ ФАЙЛА README.MD НА GITHUB*
<GITHUB></GITHUB>
Если вы начали работу на GitHub, решили загрузить туда свой проект для совместной работы с единомышленниками, то, скорее всего, в первую очередь перед вами встанет проблема создания первого файла – файла «readme.md».
Можно, конечно, просто выложить простой, неформатированный текстовой файл. Но вам захочется сделать его удобочитаемым, чтобы ссылки были выделены, блоки кода, присутствовали таблицы и так далее…
Эта статья поможет вам в этом.
Для форматирования текста на GitHub используются достаточно простые правила. Я перечислю основные и достаточные, так как не претендую на полноту официального руководства.
Текст можно обработать в любом простом текстовом редакторе, например в Notepad++, которым пользуюсь сам. А можно и прямо на GitHub редактировать файл в он-лайн режиме.
@thesamesam
thesamesam / xz-backdoor.md
Last active May 12, 2024 19:28
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@inonote
inonote / umiguri_led_controller_protocol.md
Last active May 12, 2024 19:28
UMIGURI LED Controller Protocol

UMIGURI LED Controller Protocol v1

Overview

This is a protocol to control a LED without dependence on a specific controller. UMIGURI uses it through WebSocket.

Terms in This Document

@4yn
4yn / umiguri_led_controller_protocol.md
Created June 25, 2022 14:39 — forked from inonote/umiguri_led_controller_protocol.md
UMIGURI LED Controller Protocol

UMIGURI LED Controller Protocol v1

Overview

This is a protocol to control a LED without dependence on a specific controller. UMIGURI uses it through WebSocket.

Terms in This Document

@syafiqfaiz
syafiqfaiz / how-to-copy-aws-rds-to-local.md
Last active May 12, 2024 19:26
How to copy production database on AWS RDS(postgresql) to local development database.
  1. Change your database RDS instance security group to allow your machine to access it.
    • Add your ip to the security group to acces the instance via Postgres.
  2. Make a copy of the database using pg_dump
    • $ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
    • you will be asked for postgressql password.
    • a dump file(.sql) will be created
  3. Restore that dump file to your local database.
    • but you might need to drop the database and create it first
    • $ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
  • the database is restored