Skip to content

Instantly share code, notes, and snippets.

View gdassori's full-sized avatar
👨‍🏭
Available for proposals.

dax gdassori

👨‍🏭
Available for proposals.
View GitHub Profile
@gdassori
gdassori / Prompt
Created April 30, 2023 08:54
GPT music Player
Please generate a JSON song using the following contract:
The song data should be an object with the following properties:
channel1: An array of numbers and strings representing the notes for the first channel.
channel2: An array of numbers and strings representing the notes for the second channel.
channel3: An array of numbers and strings representing the notes for the third channel.
channel4: An array of numbers and strings representing the notes for the fourth channel.
Each channel should have at least one note, and each note should be a positive integer representing the frequency in Hertz or a string that starts with the letter 'r' followed by a duration in milliseconds for pauses. The duration of each note/pause should be 250 milliseconds, except for pause notes, in which the duration should be the specified pause duration.
@xsduan
xsduan / async_sqlite.py
Last active April 3, 2024 17:27
peewee-async sqlite connection doohicky
"""
Temporary module to allow for sqlite databases during development. Remove once
we get an actual database.
"""
import peewee
from peewee_async import AsyncDatabase
import playhouse.sqlite_ext as sqlite_ext
try:
import aiosqlite
@Stadicus
Stadicus / setup_clightning.md
Last active December 29, 2022 11:41
Setup c-lightning on Digital Ocean

E-Commerce c-lightning node on Digital Ocean

Prerequisites

  • based on small Digital Ocean VPS (1CPU / 1GB RAM) with Ubuntu 16.04
  • SSH keys are recommended, but not described here
  • (sub) domain name necessary for SSL certificate

UFW & basic stuff

Login as "root"

#petya #petrWrap #notPetya

Win32/Diskcoder.Petya.C

Ransomware attack.

About

This gist was built by the community of the researchers and was scribed by Kir and Igor from the QIWI/Vulners. We are grateful for the help of all those who sent us the data, links and information. Together we can make this world a better place!

Gist updates