Skip to content

Instantly share code, notes, and snippets.

Shaltz

Block or report user

Report or block Shaltz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Shaltz
Shaltz / Linux on Asus c300m
Last active Jul 15, 2019
Linux on Asus c300m
View 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 Sep 16, 2015
HOW TO fix openLDAP checksum error on config files
View gist:1d65a07a0901a36fb7f1
(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:
View gist:3db0c4c0e23781ee2310
# ~/.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 Jun 30, 2015
Install linux with crouton on chromebook
View gist:f57ffb3f7e78a24aa86a
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 Jun 23, 2015
Wiimote WhiteBoard on Ubuntu 15.04 for ASUS N53SV
View gist:d13103b787246cc77cc7
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 Jun 23, 2015
Bluetooth on Ubuntu for Asus N53SV
View gist:dc99bd0a827a51f93b32
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 Aug 29, 2015
Laravel TIPS & TRICKS
View gist:38d5570538967bf13a23
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 Jun 4, 2015
Param apache / PHP for Symfony
View gist:5f8829c6fd8e7d08422c
# 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 Nov 14, 2015
Install LAMP server on ubuntu
View gist:b73f7cfd36ca98046a2d
# 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:cc3ba9d2e0b7971c54c3
Last active Nov 18, 2019
remap caps lock into the super (windows) key on Linux (Gnome-Shell)
View gist:cc3ba9d2e0b7971c54c3
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
You can’t perform that action at this time.