Skip to content

Instantly share code, notes, and snippets.

@Shaltz
Shaltz / vimeo-vod.md
Created March 6, 2021 19:53 — forked from mmathys/vimeo-vod.md
Download Vimeo VOD (video on demand)

How to download vimeo VOD for offline usage

Step 1

Login to Vimeo and get the cookies.txt file using this Chrome plugin

Step 2

Use youtube-dl to download the video. Example:

@Shaltz
Shaltz / Linux on Asus c300m
Last active July 15, 2019 23:33
Linux on Asus c300m
Follow this instructions to get yout chromebook ready for installation
> http://www.matws.org/c300/
Install ubuntu 17.10
> If wifi not working, set the date and time following this instructions :
> https://www.garron.me/en/linux/set-time-date-timezone-ntp-linux-shell-gnome-command-line.html
> If trackpad not working
> open up the laptop, unplug the battery and the trackpad cables, plug them back in and reboot
> If sound not working
> install a 4.4 kernel, sound breaks starting at kernel 4.5
@Shaltz
Shaltz / gist:1d65a07a0901a36fb7f1
Created September 16, 2015 09:02
HOW TO fix openLDAP checksum error on config files
(source : http://injustfiveminutes.com/category/openldap)
How to fix “ldif_read_file: checksum error”
Posted on October 28, 2014
15
Well, in spite of you did read a banner saying “# AUTO-GENERATED FILE – DO NOT EDIT!! Use ldapmodify.” you ignored it and made some manual modifications in any of the LDIF files in /etc/ldap/slapd.d/.
Don’t worry it happened to me too :) When you need to quickly setup an openLDAP server for development it is pretty much easier to tweak these files although the recommended way is to use ldapmodify tool. But if you change the LDIF files in cn=config manually, their contents and checksums won’t match, which is not fatal, but is annoying when using tools such as slapcat:
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
##########
export HISTFILESIZE=10000
export HISTSIZE=10000
export HISTIGNORE="[bf]g:[ ]*:exit:??"
export HISTCONTROL=ignoreboth:erasedups
@Shaltz
Shaltz / gist:f57ffb3f7e78a24aa86a
Created June 30, 2015 00:00
Install linux with crouton on chromebook
standard install :
sudo sh ~/Downloads/crouton -r jessie -t gnome-desktop,extension,keyboard
some Update :
sudo sh ~/Downloads/crouton -r trusty -t (what to add (keyboard or extension if forgotten) -u
-u : update
-n someName : name the chroots
-e passPhrase : encrypt the chroot with a passphrase
-r : release (precise, trusty, jessie, sid...), use list to display all the supported releases
@Shaltz
Shaltz / gist:d13103b787246cc77cc7
Created June 23, 2015 16:10
Wiimote WhiteBoard on Ubuntu 15.04 for ASUS N53SV
Download the cross-platform Java version of WiimoteWhiteBoard (http://www.uweschmidt.org/wiimote-whiteboard) and unzip the archive (folder WiimoteWhiteboard will be created)
Go to the WiimoteWhiteboard folder and create a new sub-directory lib
Download the latest GPL’d BlueCove Linux library (http://bluecove.googlecode.com/files/bluecove-gpl-2.1.0.jar) and put it in the lib folder
Type zip WiimoteWhiteboard.jar lib/bluecove-gpl-2.1.0.jar at the command-line in folder WiimoteWhiteboard
That’s it. The software should start normally by typing java -jar WiimoteWhiteboard.jar
@Shaltz
Shaltz / gist:dc99bd0a827a51f93b32
Created June 23, 2015 12:04
Bluetooth on Ubuntu for Asus N53SV
rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: asus-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
2: asus-bluetooth: Bluetooth
Soft blocked: no
@Shaltz
Shaltz / gist:38d5570538967bf13a23
Last active August 29, 2015 14:23
Laravel TIPS & TRICKS
to setup an Ubuntu Apache server to work properly with Laravel :
1) Enable mod_rewrite on the apache server: sudo a2enmod rewrite
2) edit /etc/apache2/apache2.conf, changing the "AllowOverride None" directive for "/var/www" to "AllowOverride All"
Then restart the Apache server: service apache2 restart
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
@Shaltz
Shaltz / gist:5f8829c6fd8e7d08422c
Created June 4, 2015 15:27
Param apache / PHP for Symfony
# Edit /etc/php5/apache2/php.ini
# & /etc/php5/cli/php.ini
uncomment date.timezone
# add
date.timezone = "Europe/Paris"
@Shaltz
Shaltz / gist:b73f7cfd36ca98046a2d
Last active November 14, 2015 14:26
Install LAMP server on ubuntu
# Install packages
sudo apt-get install apache2 mysql-server mysql-client php5 php5-mysql php5-intl libapache2-mod-php5 phpmyadmin
# Access phpMyAdmin
http://serverIP/phpmyadmin/
# If doesn't work, edit
sudo nano /etc/apache2/apache2.conf
# and add to the bottom of the file