Skip to content

Instantly share code, notes, and snippets.

Create private branch of a public repository

This gist describes how to create private branch (downstream) of a public repository (upstream).

Initialize repository

$ git init private-repo
$ cd private-repo
#EXTM3U
#EXTINF:0,Radio France - FIP
https://stream.radiofrance.fr/fip/fip_hifi.m3u8
#EXTINF:0,Radio France - FIP Reggae
https://stream.radiofrance.fr/fipreggae/fipreggae_hifi.m3u8
#EXTINF:0,Radio France - FIP World
https://stream.radiofrance.fr/fipworld/fipworld_hifi.m3u8
#EXTINF:0,Radio France - FIP Nouveautés
https://stream.radiofrance.fr/fipnouveautes/fipnouveautes_hifi.m3u8
#EXTINF:0,Radio France - FIP Electro
# Chrome version 120.0.6099.71 (Official Build) unknown (64-bit)
# Installed from Flathub
# config path ~/.var/app/com.google.Chrome/config/chrome-flags.conf
# WARNING: VA-API does not work with the Chrome package when using the native Wayland backend.
--ozone-platform=wayland
--enable-wayland-ime
--gtk-version=4
--enable-features=TouchpadOverscrollHistoryNavigation,VaapiVideoEncoder,VaapiVideoDecoder,VaapiVideoDecodeLinuxGL,UseOzonePlatform
@walduino
walduino / ffchromeCA.yaml
Created January 3, 2020 14:57
Ansible to add cert to CA and make firefox and chrome use the system CA store under linux
---
- name: certauth.yml | Make sure the folder exists (Debian, Ubuntu)
file:
path: /usr/local/share/ca-certificates
state: directory
- name: certauth.yml | Download root CA
get_url:
url: "{{ install_ip }}/xxx.crt"
dest: "/usr/local/share/ca-certificates/xxx.crt"
@flouthoc
flouthoc / helm-useful.sh
Last active May 15, 2024 00:52
helm-useful-commands
#debugging a chart on local
helm template --dry-run --debug . --generate-name --values values-stage.yaml
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 15, 2024 00:48
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@bambooom
bambooom / puppeteer-gif.js
Last active May 15, 2024 00:44
use puppeteer to generate gif
const fs = require('fs');
const puppeteer = require('puppeteer');
const GIFEncoder = require('gifencoder');
const PNG = require('png-js');
function decode(png) {
return new Promise(r => {png.decode(pixels => r(pixels))});
}
@IrvingArmenta
IrvingArmenta / forwardref-generics-18.ts
Created October 2, 2022 02:50
Example of a forward ref generic component in React 18
import React, { ForwardedRef, forwardRef, MouseEvent } from 'react';
type ClickableListProps<T> = {
items: T[];
onSelect: (
item: T,
event: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>,
) => void;
};
@joziahg
joziahg / interceptForm.html
Last active May 15, 2024 00:36
Javascript code to intercept hubspot forms on drag and drop builder websites
<!-- Header Code -->
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/shell.js"></script>
<!-- Footer Code -->
<!-- Minified use this in production -->
<script>
$('form[action^="https://api.hsforms.com"]').each((function(e){$(this).find("input[type=checkbox]").val("true"),$(this).submit((function(e){e.preventDefault();const n=[...new FormData(e.target).entries()].map((e=>({name:e[0],value:e[1]}))),t=n.find((e=>"goToWebinarWebinarKey"===e.name))?.value,i=n.find((e=>"sfdcCampaignId"===e.name))?.value,o=document.cookie.replace(/(?:(?:^|.*;\s*)hubspotutk\s*\=\s*([^;]*).*$)|^.*$/,"$1")||void 0;console.log(o);const s=$(this).find("[id*='gdpr-processing-prompt']"),a=n.filter((e=>e.name.includes("LEGAL_CONSENT"))).map((e=>{const n=$(`#${e.name.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1")}`)[0],t=$("span[for='"+$(n).attr("id").replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1")+"']");return{value:n.checked,text:t.text(),subscriptionTypeId:parseInt(e.name.split("LEGAL_CONSENT.subscription_type_")[1])}})),r=["cc-n