Skip to content

Instantly share code, notes, and snippets.

View baharsah's full-sized avatar
🎆
Flashing in fireworks -tamaya

Baharsah baharsah

🎆
Flashing in fireworks -tamaya
  • Lutfika Indonesia
  • Jakarta | Tangerang
  • 09:30 (UTC +07:00)
View GitHub Profile

huh?

![Hello World](data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUSExIVFRUXGBUVFRcVFRUVFRUVFRUWFhUVFRUYHSggGBolGxUVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGi0lHyUtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAcoCnQMBIgACEQEDEQH/xAAcAAACAwEBAQEAAAAAAAAAAAAEBQIDBgEABwj/xABLEAABAwIEAwQHBQYGAAQFBQEBAAIDBBEFEiExQVFhInGBkQYTMqGxwfAUQlJy0QcjM2KC4RWSorLC8SRDs9JEU1RjkxZzo+LjNP/EABoBAAMBAQEBAAAAAAAAAAAAAAECAwAEBQb/xAAyEQACAgICAgEDAgQFBQEAAAAAAQIRAyESMQRBURMiYTJxgZGh8AUUQlLBIzOx0fFi/9oADAMBAAIRAxEAPwD7ivLy8sYra7WyU1cpjlLgnNkrxGO4kNtrJkPFqy2HEGP0vY8istjFA5jyQDY6ghUzSG/VMZ8WIhAdv8UPY3BwdxKn4q4Qhrt0lNVmdqqjMXuv5BaTC8EYGZpRqfctewz444b9heAxsdCWtGvFZ3FvX07+y45eCexV1NTEgPvfgNUkx7HnSAhjQG9dSizlim5XWgzBfSIPBbKQDbfmkk8VpXOa6wBuEidKb34qD6hx4lLZT6aTbQVjFW6R2Z3DTRKnOR4aSNQURHgTiM9wRxA3SM3JRQpZIi4IXO9lpPcE7w7DIQ4aXPIrX0ORmzQB3Ix2SllRjKX0fqHC+Qgb6plgODsmJa5+UjhxWuNewaXvdIMRwoh3roSQb3IRaQiyX2Lsf9FnRm8YLm+9LYsAnc3OGHfbivolJWnK0O3tqi/XDggoRYPqGf8AQ6gmja4SCwOwV1Z6LQyOLtWk72TZs/PRWGUKvFVQnL2D4VhrIG

����JFIF��� ( %!1!%)+...383-7(-.+
 -%%--------------------------------------------------����"����K!1AQa"q��2����BRr�#3b�������$C��DSTc�s���4����2!1AQ"a2q����BR�#3���b�� ?������+k��SW)�R���+�c���k&Cū-�c���"�����@6:�3Ho�1�"��cppw�����t��fv��1{��� ��Q��-{ ������1�Ж�k�gqo_N�ˎ^ �U��Ā�߀�$DZ�Hc@o]J,��nWZ �}"�� ���O�s��n'Jo~*�q�R�O��mcn�ٝ�M�9H�Dx��pG7H��E
Y".\�e����!\�+_C��4܌vJYQ���~�����`8;&%�~R8qZ�^���t�ˆw���ori�_b��gFo.o�-����wۊ�%%i�����/�(E���C�&�� �WVz- �.դ�dٳ��Xe
�UP����Xk nVn��U�L=5�sUNb��#i.�]P�Қo��Zђlo�n���Tu�J?v�zq�D�B�%o��Q]2����Z��>�Q�����lCM�M������!��$���MN�#����:�Qd��Cz��e>F
s�����%s��΁h��������pE>]�̃$�.�i"U��p����Cū9 �����S(�5�XfШ�K����a�� o@���y�m�(=�(��-o��S� .w���$�q�/���J��Flγ�ߧ��@�F��j� ���<���)��x���<�\4XOr5yʩ�.c\ZZKA-;
<video src="https://user-images.githubusercontent.com/69349170/164971107-9cc0f009-7feb-4efe-a97b-7f25812ded9b.mp4"></video>
@baharsah
baharsah / index.md
Last active June 19, 2022 09:11
Meng-livestream relay dengan ffmpeg dan stunnel

Intro

Sekitar 2 bulan lalu, saya sering melihat youtube channel dengan tayangan live stream yang panjang banget kayak radio. terlintas di fikiran "Itu dia bikinnya pake apa yah?"

Inti masalah

saya sering banget pake obs buat record-record atau livestream biasa. tapi kalau kasusnya seperti radio livestream, itu belum pernah.

banyak yang bilang kalau mereka itu pake OBS juga, cuma kan obs itu pake GUI, kan? berat pasti kalo buat VM kecil macam di cloud.

import sqlite3
# Membuat koneksi ke database
conn = sqlite3.connect('toko.db')
cursor = conn.cursor()
# Membuat tabel (migration)
cursor.execute('''
CREATE TABLE IF NOT EXISTS barang (
id INTEGER PRIMARY KEY AUTOINCREMENT,