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 June 27, 2024 21:14
This gist will help you to compile ffmpeg with NVENC, QSV, VAAPI, VDPAU, and OpenCL support.

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

This gist will help you to compile ffmpeg with NVENC, QSV, VAAPI, VDPAU, and OpenCL support.

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.

@Jiab77
Jiab77 / tripwire.md
Last active June 27, 2024 21:12
This gist will help you to install tripwire on Ubuntu 16.04.

Tripwire Install on Ubuntu 16.04

This gist will help you to install tripwire on Ubuntu 16.04.

Download

sudo apt install tripwire
@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 June 27, 2024 21:11
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.

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 June 27, 2024 21:11
This gist will give you all installation steps needed to install properly virt-manager with all dependencies.

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 June 27, 2024 21:11
Just because I'm kind of amnesic and need something somewhere to remember how to install quickly samba on a desktop (or server)

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 June 27, 2024 21:10
Just run these commands by copy/paste or saving in a 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 June 27, 2024 21:10
nVidia drivers installation on ElementaryOS - Loki (ubuntu 16.04 based distrib)

nVidia drivers installation on ElementaryOS - Loki

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

Open your favorite terminal application then type sudo ubuntu-drivers devices, you should get something like this:

@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