Skip to content

Instantly share code, notes, and snippets.

View Jiab77's full-sized avatar
🤖
Search, Hack and Dev

Doctor Who Jiab77

🤖
Search, Hack and Dev
View GitHub Profile
@Jiab77
Jiab77 / ffmpeg.md
Last active August 9, 2022 21:40
Compilation FFMpeg / NVENC + QSV + VAAPI + VDPAU + OpenCL

Compilation FFMpeg / NVENC + NVRESIZE + QSV + VAAPI + VDPAU + OpenCL

nVidia nvresize patch is outdated and not more compatible to the latest version of FFmpeg, so it's not included in this documentation.

(even if I've passed a lot of time at trying to make it compile... without any success)

Please don't rely on this page: https://developer.nvidia.com/ffmpeg, the implementation is a hack and was never been added to the main FFmpeg tree.

See:

@Jiab77
Jiab77 / tripwire.md
Last active November 4, 2018 22:06
Tripwire install on ubuntu 16.04

Tripwire Install on Ubuntu 16.04

Download

sudo apt install tripwire

Reply to every questions when asked.

@Jiab77
Jiab77 / viewport.js
Last active January 6, 2017 22:09 — forked from bohman/viewport.js
jQuery get viewport size
// -----------
// Debugger that shows view port size. Helps when making responsive designs.
// -----------
function showViewPortSize(display) {
if(display) {
var height = window.innerHeight;
var width = window.innerWidth;
jQuery('body').prepend('<div id="viewportsize" style="z-index:9999;position:fixed;bottom:0px;left:0px;color:#fff;background:#000;padding:10px">Height: '+height+'<br>Width: '+width+'</div>');
jQuery(window).resize(function() {
height = window.innerHeight;
@Jiab77
Jiab77 / v8js.md
Last active January 11, 2017 10:29
v8js compilation for Raspberry Pi 3 Model B

v8js compilation for Raspberry Pi 3 Model B

The reason of this work is that I'm currently working on a web project which require latest web technology. One of these technologies is PHP/v8js.

Dependencies

sudo apt install build-essential chrpath re2c clang-dev git git-doc
@Jiab77
Jiab77 / virt-manager.md
Last active August 12, 2021 23:04
Virt-Manager Installation (for ubuntu based distrib)

Virt-Manager Installation (for ubuntu based distrib)

This gist will give you all installation steps needed to install properly virt-manager with all dependencies.

Dependencies

Here is the list of all dependencies required to install properly virt-manager on your ubuntu based distrib.

  • libvirt-bin
  • qemu
@Jiab77
Jiab77 / samba.md
Last active November 23, 2018 03:20
Samba installation (for ubuntu based distrib)

Samba installation (for ubuntu based distrib)

Just because I'm kind of amnesic and need something somewhere to remember how to install quickly samba on a desktop (or server)

Installation

Simply run this command.

sudo apt install samba samba-common smbclient
@Jiab77
Jiab77 / git-init.md
Last active August 12, 2021 23:04
Lazy git intialisation script

Lazy git intialisation script

Just run these commands by copy/paste or saving in a script.

#!/bin/bash

# Git initialisation script
# Just because I'm a lazy guy that dont want to do it 
# manually on every installs...
@Jiab77
Jiab77 / nvidia-elementaryos-loki.md
Last active February 28, 2024 00:28
nVidia drivers installation on ElementaryOS - Loki (ubuntu 16.04 based distrib)

nVidia drivers installation on ElementaryOS - Loki

Introduction

ElementaryOS - Loki is an amazing ubuntu based distribution, I've just felt in love on it BUT they've removed what's required to install easily the nVidia Proprietary drivers. So here is the reason of this gist, to store the install instructions in one place inside a crystal clear documentation.

Check your device

@Jiab77
Jiab77 / perfectelementary.bash
Last active July 2, 2017 14:09
HowTo Install the perfect Elementary-OS
# Download Elementary OS from here:
# http://sourceforge.net/projects/elementaryos/files/stable/
# Will fix all static version by some automatic detection code later
# First you update your system
sudo apt update --fix-missing -y && sudo apt dist-upgrade -y
# Install Google Chromium
sudo apt install -y chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extras
@Jiab77
Jiab77 / live-setup-x64.sh
Last active August 12, 2021 23:04
Quick live setup - Lazy live environment setup
#!/bin/bash
# Remove 'pantheon-mail' (not compatible to Gmail)
# Now keeping 'epiphany-browser'.
#sudo apt remove --purge -y epiphany-browser* pantheon-mail 2>/dev/null
sudo apt remove --purge -y pantheon-mail 2>/dev/null
# Clean up the system
sudo apt autoremove --purge -y