Skip to content

Instantly share code, notes, and snippets.

@byGOG
byGOG / Reset.cmd
Last active September 7, 2024 21:25
opus reset
@echo off
setlocal enabledelayedexpansion
set ProductGUID=0A6AA615-5321-43A0-AFAE-97BF95013EA0
set program_dir=%ProgramFiles%\GPSoftware\Directory Opus\
set findstring=gpsoftware
echo.
setacl >nul 2>&1
if !errorlevel! equ 9009 (
echo [ ERROR ] SetACL.exe not found.
echo [ DOWNLOAD ] https://helgeklein.com/downloads/SetACL/current/SetACL%%20^(executable version^).zip
@meoow
meoow / embedhtml.py
Created August 4, 2014 05:10
Embed JS/CSS/IMG into HTML page
#!/usr/bin/env python2.7
from bs4 import BeautifulSoup as bs
import base64 as b64
import urllib
import os
import re
import unicodedata
import inspect
@meoow
meoow / ffgif.py
Created April 10, 2018 17:03
Python wrapper of ffmpeg for creating high quality GIF from video clip
#!/usr/bin/env python2.7
import subprocess as subp
import tempfile
import os,os.path
import sys
def ffgif(input, output, fps=None, start=None, end=None, resize=None,ffmpeg_args=[]):
pipeyuvArgList = ['ffmpeg', '-loglevel', 'error', '-ss', start, '-i', input]
@jumarag
jumarag / Elimina_telemetria_y_aplicaciones_Windows10.bat
Last active September 7, 2024 21:19
Script bat que elimina telemetría y aplicaciones por defecto en Windows 10
@echo off
rem # ################################################################################################################################
rem # Script para eliminar aplicaciones por defecto en Windows 10 y mejorar la privacidad #
rem # Se eliminan todas las aplicaciones integradas incluido skype y onedrive #
rem # Cortana no se puede eliminar directamente pero si se puede modificar su ubicación para que el sistema no inicie la aplicación #
rem # ###############################################################################################################################
if not "%cd%"=="%windir%\system32" (
echo Debes ejecutarlo como Administrador.
echo Click derecho y "Ejecutar como administrador"
@piyushgarg-dev
piyushgarg-dev / README.md
Last active September 7, 2024 21:15
Kafka Crash Course
@adrianhorning08
adrianhorning08 / zillowScraper.js
Last active September 7, 2024 21:11
Zillow Scraper
async function scrollDown() {
const wrapper = document.querySelector("#search-page-list-container");
await new Promise((resolve, reject) => {
var totalHeight = 0;
var distance = 600;
var timer = setInterval(async () => {
var scrollHeightBefore = wrapper.scrollHeight;
wrapper.scrollBy(0, distance);
totalHeight += distance;
@tmo1
tmo1 / nextcloud-caddy-docker.md
Last active September 7, 2024 21:11
Nextcloud behind Caddy as a reverse proxy, using Docker

Introduction

This is a guide to deploying Nextcloud behind a Caddy reverse proxy, both running in Docker containers (an official Nextcloud one and a caddy-docker-proxy one), with the goal of implementing as much as possible via docker-compose files. This is much more difficult than it should be, for a variety of reasons:

  • As with Docker versions of software in general, documentation of the software does not always apply to the Docker versions, and the Docker documentation does not always include the Docker equivalent ways of doing things.

  • Docker images do not always expose the desired configuration knobs of the underlying software.

  • Nextcloud requires special configuration to run correctly behind a reverse proxy (and again, some of the instructions for this configuration requires modification for

@tonusoo
tonusoo / bird.conf
Created September 6, 2024 08:10
RTIX Route Servers configuration for lab usage with BIRD. Tested on BIRD version 2.15.1.
log syslog all;
debug protocols all;
router id 213.184.52.1;
define rtix_rs_asn = 207800;
# BGP ipv4/ipv6 channel option "secondary" requires
# routing table to be sorted.
ipv4 table master4 sorted;
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active September 7, 2024 21:00
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096