Skip to content

Instantly share code, notes, and snippets.

@luizomf
luizomf / ambiente-dev-ubuntu-curso-python.sh
Created October 31, 2022 01:23
Instalação ambiente dev Ubuntu 22 do curso de Python
#!/bin/bash
# Executar comandos a seguir para atualizar os pacotes
sudo apt update -y
sudo apt upgrade -y
# Só o Python
sudo apt install python3.10-full python3.10-dev -y
# Instalar pacotes a seguir
@milo
milo / php-oci8-debian.md
Last active January 6, 2025 01:22
PHP Oracle OCI8 extension on Linux Debian

Oracle Instant Client libraries installation

Download Oracle Instant Client libraries (URL may change, already happened few times). Be sure you download correct (x64 or x32) architecture. And correct version.

Last time I used Client 23.6.0.0.0 with Oracle 12c and PHP 8.4.

Before that Instant Client 23.6.0.0.0 or 21.5.0.0.0 with Oracle 12c and PHP 8.1 and 8.3.

Before that Instant Client 21.3.0.0.0 with Oracle 12c and compiled with PHP 8.0, 7.4 and 7.3 fine.

Before that Instant Client 10.1.0.5.0 with Oracle 10g, 11g and 12c and PHP 5.6, 7.1, 7.2, 7.3 and 7.4.

@velzie
velzie / manifest-v2-chrome.md
Last active January 6, 2025 01:20
How to keep using adblockers on chrome and chromium

How to keep using adblockers on chrome and chromium

  1. google's manifest v3 has no analouge to the webRequestBlocking API, which is neccesary for (effective) adblockers to work
  2. starting in chrome version 127, the transition to mv3 will start cutting off the use of mv2 extensions alltogether
  3. this will inevitably piss of enterprises when their extensions don't work, so the ExtensionManifestV2Availability key was added and will presumably stay forever after enterprises complain enough

You can use this as a regular user, which will let you keep your mv2 extensions even after they're supposed to stop working

Linux

In a terminal, run:

@denzildoyle
denzildoyle / SEO.md
Last active January 6, 2025 01:17
I short list of SEO tips and tricks I have learned over time

SEO

In this list, I will be typically be talking SEO as it relates to Google because Google will likely account for the vast majority of your inbound search traffic. Additionally, if you rank highly on Google, you will probably do well on other search engines anyway. Just like in football if you could play in the Major league you would most likely kill it in the minor league I would begin by explaining why SEO is important talk a little bit about what SEO is about and talk about how those concepts relate to the world wide web. Then talk about some of the things you could do to optimize your site from top to bottom of a typical webpage.

Why it's important

  • When you want to hide something on google put it on the second page. #SEO @searchdecoder
  • Winner takes almost everything
  • More than 80 percent of shoppers research big purchases online first
  • Opertunity for business
  • 88% Of Consumers Trust Online Reviews As Much As Personal Recommendations
  • 72% Of Consumers Say That Positive Reviews Make Them T
@chrisjreber
chrisjreber / side-by-side-images.jsx
Last active January 6, 2025 01:15
Photoshop Script - create merged before and after image
// Created by Chris Reber - [email protected]
// enable double clicking from the Macintosh Finder or the Windows Explorer
#target photoshop
// Settings
var maxHeight = 600;
@seattlebiker
seattlebiker / DS3231-NTP-Sync.cpp
Last active January 6, 2025 01:11
DS3231 Update using NTP
/****************************************************************
*
* From: https://forum.dronebotworkshop.com/c-plus-plus/setting-the-time-on-an-rtc-with-an-esp8266-and-an-ntp-server/?utm_source=pocket_mylist
* As we still haven't got rid of this antiquated requirement of adjusting our clocks twice
* every year, and as I have a few real-time clocks attached to various mini-projects that
* have to be reset every time this happens. I decided it was time to automate this process
* a little, using an ESP8266 Node-MCU12-E and I2C.
*
* The wiring is simple:
@binki
binki / invoke-mailman.sh
Created January 6, 2022 02:24
Set mailing list moderator password mailman3
mailman -C /etc/mailman/mailman.cfg withlist -l [email protected]
@joemccann
joemccann / asymmetric-coinbase-premium-indicator-tradingview.sh
Created January 3, 2025 13:58
Asymmetric Coinbase Premium Indicator for TradingView
//@version=5
//
// _____ __ .__
// / _ \ _________.__. _____ _____ _____/ |________|__| ____
// / /_\ \ / ___< | |/ \ / \_/ __ \ __\_ __ \ |/ ___\
// / | \\\___ \ \___ | Y Y \ Y Y \ ___/| | | | \/ \ \___
// \____|__ /____ >/ ____|__|_| /__|_| /\___ >__| |__| |__|\___ >
// \/ \/ \/ \/ \/ \/ \/
//
// Disclaimers: https://t.co/kOsUzy5pCB
@ConnerWill
ConnerWill / ANSI-escape-sequences.md
Last active January 6, 2025 01:04
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@nielsbom
nielsbom / split-to-scenes.sh
Last active January 6, 2025 00:59 — forked from achesco/split-to-scenes.sh
Detect and split video to scenes with ffmpeg
#!/bin/bash
# set -Eeuo pipefail
# Splits video to separate scenes files
# Source: https://gist.github.com/achesco/4dc2ebf13378a0a61fc26c7fe01f539e
# Inspired by https://stackoverflow.com/a/38205105
# The "-c:v h264_videotoolbox \" argument makes it work faster on Apple Silicon
# computers.
# ❗The bitrate argument is overriden in this version, we look at the original bitrate.