Skip to content

Instantly share code, notes, and snippets.

chmod 755 $(find /path/to/base/dir -type d)
chmod 644 $(find /path/to/base/dir -type f)
// Run the following IIFE in the browser's console to close all GitHub conversations from a PR
(() => {
const allButtons = document.querySelectorAll('[data-disable-with="Resolving conversation…"]');
const allButtonsArray = Array.from(allButtons);
if (!allButtonsArray || !allButtonsArray.length) {
return;
}
@nicolae-olariu
nicolae-olariu / ffmpeg-hls.html
Created October 2, 2021 21:05 — forked from CharlesHolbrow/ffmpeg-hls.html
Example of ffmpeg for live hls streaming with hls.js
<!DOCTYPE html>
<html lang='`en'>
<head>
<meta charset='utf-8'/>
<title>Audio only stream example</title>
<script src="//cdn.jsdelivr.net/npm/hls.js@latest"></script>
<style>
video {
width: 640px;
height: 360px;
US PHONE: ^(\\+\\d{1,2}\\s)?\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{4}$
ZIP: ^[0-9]{5}(?:-[0-9]{4})?$
@nicolae-olariu
nicolae-olariu / any.component.html
Created July 18, 2022 07:49 — forked from arniebradfo/any.component.html
Angular *ngFor recursive list tree template
<h1>Angular 2 Recursive List</h1>
<ul>
<ng-template #recursiveList let-list>
<li *ngFor="let item of list">
{{item.title}}
<ul *ngIf="item.children.length > 0">
<ng-container *ngTemplateOutlet="recursiveList; context:{ $implicit: item.children }"></ng-container>
</ul>
</li>
</ng-template>