Skip to content

Instantly share code, notes, and snippets.

@unalt
unalt / stream_to_youtube.sh
Created November 15, 2022 21:06 — forked from abhinanddhandapani/stream_to_youtube.sh
Stream video to youtube via ffmpeg
#! /bin/bash
#
# Diffusion youtube avec ffmpeg
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée.
VBR="2500k" # Bitrate de la vidéo en sortie
FPS="30" # FPS de la vidéo en sortie
QUAL="medium" # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube
@font-face {
font-family: SegoeUI;
src:
local("Segoe UI Light"),
url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.woff2) format("woff2"),
url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.woff) format("woff"),
url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.ttf) format("truetype");
font-weight: 100;
}
@unalt
unalt / clear-screen.php
Created January 15, 2020 14:19 — forked from icebreaker/clear-screen.php
PHP - clear screen recipe
<?php
function cls()
{
print("\033[2J\033[;H");
}
echo "hello world";
cls();
@unalt
unalt / reset_id_column.sql
Created October 16, 2019 22:11 — forked from irazasyed/reset_id_column.sql
MySQL: Reset id column to auto increment from 1
-- your_table: The table to modify
-- id: The id field/column to reset
SET @num := 0;
UPDATE your_table SET id = @num := (@num+1);
ALTER TABLE your_table AUTO_INCREMENT =1;
@unalt
unalt / su_git.sh
Created August 7, 2017 13:41 — forked from yuuichi-fujioka/su_git.sh
su to git that login shell is git-bash.
sudo su -s /bin/bash - git