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 / 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 / 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 / map.icons.js
Last active April 2, 2018 22:27
GoogleMaps - Places API Types Icons
'use strict';
// GoogleMaps - Places API Types Icons
// Used google documentation and some tricks from stackoverflow
// Commented types are types from the documentation which not returning icon
// Some types are coming from the stackoverflow answer
// (c) 2018 - Jonathan Barda <jonathan.barda@gmail.com>
// https://gist.github.com/Jiab77/0f1bf31cc4555ce932ede965bca3c215
// Links:
@Jiab77
Jiab77 / glmark2-nvidia.md
Last active June 27, 2018 01:43
glmark2 for nVidia cards

glmark2 for nVidia cards

The goal of this gist is to help users who was in the same case as me after the installation of the nVidia drivers.

Issue

While running glmark2 after the driver installation, I got a nice surprise:

Erreur de segmentation (core dumped)
@Jiab77
Jiab77 / acrobat-reader-elementaryos-loki.md
Last active June 27, 2018 02:06
Adobe Acrobat Reader installation on ElementaryOS - Loki (ubuntu 16.04 based distrib)

Adobe Acrobat Reader installation on ElementaryOS - Loki

Just keeping track of my searching about this topic because I got only 💩 instructions...

The Elementary Way to do it 😎

In order to keep the system clean as possible, I will just install the required dependencies:

  • Eddy from the AppCenter
  • The installation package: ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb
@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 / 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 / goaccess-install-on-ubuntu-server-18.04.md
Last active July 17, 2019 03:04
GoAccess install on Ubuntu Server 18.04

GoAccess install on Ubuntu Server 18.04

The default install options are pretty good for standard usage but for advanced one, you need to go to the compilation option...

Compile GoAccess

You will have to install some dependencies first.

sudo apt install libncursesw5-dev libglib2.0-dev libgeoip-dev libtokyocabinet-dev libbz2-dev libssl1.0-dev
@Jiab77
Jiab77 / tomahawk.md
Last active January 31, 2020 14:25
Compile Tomahawk Music Player on Ubuntu 18.04