Skip to content

Instantly share code, notes, and snippets.

View daleffe's full-sized avatar
💭
I may be slow to respond.

Guilherme Roberge Daleffe daleffe

💭
I may be slow to respond.
View GitHub Profile
@plutozonexyz
plutozonexyz / WinServer2019.md
Last active October 14, 2025 13:17
How to download Windows Server 2019 Evaluation, convert it to Standard, and activate it.
@ishad0w
ishad0w / sources.list
Created April 30, 2020 16:55
Ubuntu 20.04 LTS (Focal Fossa) -- Full sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
@seidme
seidme / puppies-store.service.ts
Created April 5, 2020 01:55
An example of simple immutable RxJs store in Angular.
import { Injectable } from '@angular/core';
import { BehaviorSubject, Subject } from 'rxjs';
import { PuppiesModule } from './puppies.module';
import { Puppy } from './puppy.model';
@Injectable({ providedIn: PuppiesModule })
export class PuppiesStoreService {
// Make _puppiesSource private so it's not accessible from the outside,
// expose it as puppies$ observable (read-only) instead.
@zoilomora
zoilomora / README.md
Last active April 15, 2025 01:56
How to disable cloud-init in Ubuntu

How to disable cloud-init in Ubuntu

Prevent start

  • Create an empty file to prevent the service from starting

      sudo touch /etc/cloud/cloud-init.disabled
    

Uninstall

@alexishida
alexishida / rtsp-intelbras-outros.txt
Last active July 12, 2025 16:42
RTSP dvr intelbras e outros para acesso direto home assistant
-------- DVR e Mibo Smart Intelbras -------------------------------------------------------
rtsp://usuário:senha@ip:porta/cam/realmonitor?channel=1&subtype=0
Ps minha mibo smart im4c só funcionou com esse link:
rtsp://admin:chave de acesso@ip:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
-------- Luxvision -------------------------------------------------------
rtsp://ip:porta/user=[usuário]&password=[senha]&channel=1&stream=0.sdp
@Davidaredding
Davidaredding / RedisToKestral.cs
Created January 15, 2019 06:11
Simple REDIS to Websocket via Kestral and C#
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using StackExchange.Redis;
using System;
using System.Net.WebSockets;
using System.Threading;
using System.Threading.Tasks;
@canabady
canabady / Linking Parent-Component-FormGroup-with-Child-Component-FormControlName
Last active May 24, 2023 00:15
Connecting parent component 'formGroup' with child component 'formControlName'
Connecting parent component 'formGroup' with child component 'formControlName'
In the Parent component template
================================
<form [formGroup]="recipeForm">
<app-recipe-name [parent]="recipeForm"></app-recipe-name>
</form>
@dlsniper
dlsniper / cross-compile-go.bash
Created October 13, 2017 21:45
Cross compile Go for Raspberry Pi 3
cd ~
git clone [email protected]:golang/go.git gotip
cd gotip/src
export GOROOT_BOOTSTRAP=/usr/local/go
env GOOS=linux GOARCH=arm GOARM=7 ./make.bash
@netstart
netstart / app.module.ts
Last active February 28, 2023 21:16
Forçar que o Angular utilize o locale pt-BR em uma aplicação.
// https://github.com/angular/angular-cli/issues/6683
import { NgModule, LOCALE_ID } from '@angular/core';
// force to use locale pt-BR
providers: [ {provide: LOCALE_ID, useValue: 'pt-BR' } ]
// Or use below line to get locale from browser
// providers: [ {provide: LOCALE_ID, useValue: window.navigator.language} ]
@kwikwag
kwikwag / build.bat
Created August 22, 2017 22:54
Windows build batch file for Live555, based on instructions by @nspool
@rem Place this file at the live/ directory of the downloaded LIVE555 source files.
@rem Based on instructions at https://nspool.github.io/2016/02/building-live555/
@rem Tested with Visual Studio 2015 on Windows 10
@echo off
if exist "%TEMP%\sed.vbs" goto skip_gen_sed
> "%TEMP%\sed.vbs" (
REM thanks to https://stackoverflow.com/questions/127318/is-there-any-sed-like-utility-for-cmd-exe
@echo.Dim pat, patparts, rxp, inp
@echo.pat = WScript.Arguments(0^)