Skip to content

Instantly share code, notes, and snippets.

View swipswaps's full-sized avatar

#swipswaps swipswaps

View GitHub Profile
A curated list of awesome PHP frameworks, libraries and software.
* [laravel/laravel](https://github.com/laravel/laravel) - A PHP Framework For Web Artisans
* [symfony/symfony](https://github.com/symfony/symfony) - The Symfony PHP framework
* [bcit-ci/CodeIgniter](https://github.com/bcit-ci/CodeIgniter) - Open Source PHP Framework (originally from EllisLab)
* [domnikl/DesignPatternsPHP](https://github.com/domnikl/DesignPatternsPHP) - sample code for several design patterns in PHP
* [fzaninotto/Faker](https://github.com/fzaninotto/Faker) - Faker is a PHP library that generates fake data for you
* [yiisoft/yii2](https://github.com/yiisoft/yii2) - Yii 2: The Fast, Secure and Professional PHP Framework
* [composer/composer](https://github.com/composer/composer) - Dependency Manager for PHP
@swipswaps
swipswaps / ffmpeg-desktop-livestreaming-nvenc-and netcat.md
Created June 1, 2021 12:10 — forked from Brainiarc7/ffmpeg-desktop-livestreaming-nvenc-and netcat.md
This gist will show you how to livestream your Linux desktop to a client via FFMpeg using a GPU-accelerated video encoder (NVENC and VAAPI-based)

Low-Latency Live Streaming for your Desktop using ffmpeg and netcat:

Preamble:

In this post I will explore how to stream a video and audio capture from one computer to another using ffmpeg and netcat, with a latency below 100ms, which is good enough for presentations and general purpose remote display tasks on a local network.

The problem:

Streaming low-latency live content is quite hard, because most software-based video codecs are designed to achieve the best compression and not best latency. This makes sense, because most movies are encoded once and decoded often, so it is a good trade-off to use more time for the encoding than the decoding.

@swipswaps
swipswaps / Capture_Desktop.md
Created June 1, 2021 12:10
Quick How-To guide on recording desktop with ffmpeg

{{{ #!html

Capturing your Desktop / Screen Recording

}}}

[[PageOutline(1, Contents)]]

Here are a few solutions for capturing your desktop and recording a video of your screen with ffmpeg. (A Chinese version of this page is [[Capture/Desktop中文版本|also available]].)

@swipswaps
swipswaps / output.json
Created May 17, 2021 14:34 — forked from jeffgca/output.json
Get 10k extensions from the chrome web store.
[
"https://chrome.google.com/webstore/detail/ballloon-for-chrome/kbmligehjhghebleanjcmenomghmcohn",
"https://chrome.google.com/webstore/detail/shine-for-reddit/acoiihnnfofnpbnofdcgcapbjlcopifa",
"https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk",
"https://chrome.google.com/webstore/detail/highly-highlighter/hjpahjhcglfdopbholajmhpamgblhjhg",
"https://chrome.google.com/webstore/detail/screencastify-screen-vide/mmeijimgabbpbgpdklnllpncmdofkcpn",
"https://chrome.google.com/webstore/detail/sms-from-gmail-facebook-m/iffdacemhfpnchinokehhnppllonacfj",
"https://chrome.google.com/webstore/detail/wot-web-of-trust-website/bhmmomiinigofkjcapegjjndpbikblnp",
"https://chrome.google.com/webstore/detail/mega/bigefpfhnfcobdlfbedofhhaibnlghod",
"https://chrome.google.com/webstore/detail/time-is-money/ooppbnomdcjmoepangldchpmjhkeendl",
@swipswaps
swipswaps / ScreenRecorder.cs
Created May 10, 2021 20:52 — forked from DashW/ScreenRecorder.cs
ScreenRecorder - High Performance Unity Video Capture Script
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading;
class BitmapEncoder
{
public static void WriteBitmap(Stream stream, int width, int height, byte[] imageData)
@swipswaps
swipswaps / grub.cfg
Created May 8, 2021 17:09 — forked from chusiang/grub.cfg
grub config of the Clonezilla and Debian.
# ============================================================
# Author: 凍仁翔 / chusiang.lai (at) gmail.com
# Blog: http://note.drx.tw
# Filename: grub.cfg
# Modified: 2015-01-15 10:21
# Description: grub config of mix disk for the Clonezilla and Debian.
#
# Now, we can boot with:
# * Clonezilla Live
# * Install Debian 7.7
@swipswaps
swipswaps / debian-pydev.md
Created May 8, 2021 17:09 — forked from uogbuji/debian-pydev.md
My Python dev setup for Linux (Debian, Ubuntu, Mint & ChromeOS/Crostini)

User local install as much as possible, leaving system-wide kit (e.g. python & python-pip .debs) alone. Tested on Debian, Ubuntu, Mint & ChromeOS/Crostini.

Environment

Set up the dev environment (this is the only system-wide part):

sudo apt install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev openssl libgdbm-dev liblzma-dev libreadline-dev libncursesw5-dev libffi-dev uuid-dev
#Optionally:
sudo apt install libxml2-dev libxslt1-dev git mercurial
@swipswaps
swipswaps / tf-proxmox.md
Created May 8, 2021 17:09 — forked from f0rkz/tf-proxmox.md
Using Terraform and Proxmox

Purpose

A clear how-to with instruction to get proxmox virtual machines provisioned with Terraform.

Pre-requisites

You need go installed to compile the Telmate provider located here.

You additionally need terraform installed.

You need cloud-init installed on proxmox. This wiki page has a decent howto. Go ahead and also create a cloud-init image created.

@swipswaps
swipswaps / .vimrc
Created April 26, 2021 14:36 — forked from rafaelkallis/.vimrc
.vimrc
" Maintainer: Rafael Kallis <rafaelkallis.com>
" Keybindings:
" gd: go to identifier (D)efinition
" ge: go to next (E)rror
" gf: (F)ix errors
" gl: toggle (L)inter
" gn: toggle line (N)umbers
" go: search and (O)pen file
" gq: (Q)uit normal mode
@swipswaps
swipswaps / fedora_setup.sh
Created April 26, 2021 14:34 — forked from rafaelkallis/fedora_setup.sh
Fedora Scripts
#
# DISABLE SECURE BOOT IN BIOS!
#
# fish
sudo dnf install fish util-linux-user
chsh -s /usr/bin/fish
mkdir ~/.config/fish
touch ~/.config/fish/config.fish