Skip to content

Instantly share code, notes, and snippets.

@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:
@Shaltz
Shaltz / gist:cc3ba9d2e0b7971c54c3
Last active June 17, 2021 08:34
remap caps lock into the super (windows) key on Linux (Gnome-Shell)
setxkbmap -option caps:super
Other example :
setxkbmap -option caps:escape
TO GET IT PERMANENTLY :
put it in : ~/.bash_proflie or ~/.profile
or in gnome-tweak, select "Make CapsLock an additional Super Key" in
@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:2fdc3a2c3b3ab7866d97
Last active December 9, 2015 20:51
git commands to start a new project
* create a new repo on github (CLI)
git init
git config user.name "myName" (use the --global option to set has a global parameter)
git config user.email "myEmail@to.to"
git add .
git commit -m "first commit"
git remote add origin git@github.com:Shaltz/myRepo.git
git push -u origin master
@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
@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
# ~/.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: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