Skip to content

Instantly share code, notes, and snippets.

@druellan
druellan / opengraph.template.html
Created December 29, 2015 16:56
Basic template for OpenGraph/Facebook metatags
<html prefix="og: http://ogp.me/ns#">
<head>
<title>The Title</title> <!-- ˜60 chars -->
<meta name="description" content="The Description"> <!-- ˜150 chars -->
<meta property="og:title" content="The Title">
<meta property="og:description" content="The Description"> <!-- ˜300 chars -->
<meta property="og:site_name" content="Sfida Blog">
<meta property="og:locale" content="es_AR">
<meta property="og:type" content="website">
<meta property="og:url" content="http://www.sfidastudios.com">
@guiliredu
guiliredu / feriados-brasileiros-em-php.php
Last active January 1, 2025 02:19
Retorna um array com todos os feriados brasileiros
<?php
function dias_feriados($ano = null)
{
if (empty($ano)) {
$ano = intval(date('Y'));
}
$pascoa = easter_date($ano); // Limite de 1970 ou após 2037 da easter_date PHP consulta http://www.php.net/manual/pt_BR/function.easter-date.php
$dia_pascoa = date('j', $pascoa);
@thefranke
thefranke / RSS.md
Last active January 1, 2025 02:08
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@dbrookman
dbrookman / build-mpv_silicon.sh
Last active January 1, 2025 02:05
How to build mpv & mpv.app on an Apple silicon Mac
#!/usr/bin/env bash
# Builds mpv & mpv.app on Apple silicon Macs.
# Run this script from the root directory of the mpv repo.
# if anything fails, gtfo
set -ex
meson setup build
meson compile -C build
@meain
meain / loading_messages.js
Last active January 1, 2025 02:02
Funny loading messages
export default [
"Reticulating splines...",
"Generating witty dialog...",
"Swapping time and space...",
"Spinning violently around the y-axis...",
"Tokenizing real life...",
"Bending the spoon...",
"Filtering morale...",
"Don't think of purple hippos...",
"We need a new fuse...",
@kdmukai
kdmukai / README.md
Last active January 1, 2025 02:00
Run Proxmox Backup Server (PBS) on a Proxmox VE host

Run Proxmox Backup Server (PBS) on a Proxmox VE host

Rather than set up even more infrastructure, I run Proxmox Backup Server on the same machine that's running a Proxmox VE host.

Install Proxmox Backup Server

Open a shell on your Proxmox VE host. We'll be installing PBS alongside Proxmox VE at the OS level. We will NOT run PBS inside a container.

@purplefish32
purplefish32 / ssh-tar
Created March 9, 2012 14:39
Compress and copy via SSH using TAR
#Compress and copy via SSH using SCP and TAR
tar -czf - /some/file | ssh [email protected] tar -xzf - -C /destination
#Switch -c for tar creates an archive and -f which tells tar to send the new archive to stdout.
#The second tar command uses the -C switch which changes directory on the target host. It takes the input from stdin. The -x switch extracts the archive.
#The second way of doing the transfer over a network is with the -z option, which compresses the stream, decreasing time it will take to transfer over the network.
#Some people may ask why tar is used, this is great for large file trees, as it is just streaming the data from one host to another and not having to do intense operations with file trees.
#If using the -v (verbose) switch, be sure only to include it on the second tar command, otherwise you will see double output.
#Using tar and piping can also be a great way to transfer files locally to be sure that file permissions are kept correctly

CockroachDB and Docker Compose

This is the first in a series of tutorials on CockroachDB and Docker Compose

  • Information on CockroachDB can be found here.
  • Information on Docker Compose can be found here
  1. Install Docker Desktop

Because we already have an official CockroachDB docker image, we will use that in our docker-compose.yml file. We recommend you use one of the current tags instead of latest.

{
"name": "Gemini Flash + Tool Calling",
"nodes": [
{
"parameters": {
"options": {}
},
"id": "c12f38bf-308e-4aaa-961c-0404834262d3",
"name": "When chat message received",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
@jacobtomlinson
jacobtomlinson / .gitignore_global
Created August 18, 2017 10:08
An example global gitignore file
# An example global gitignore file
#
# Place a copy if this at ~/.gitignore_global
# Run `git config --global core.excludesfile ~/.gitignore_global`
# Compiled source #
###################
*.com
*.class
*.dll