Skip to content

Instantly share code, notes, and snippets.

View olidroide's full-sized avatar
🐍

Oliver Mas olidroide

🐍
View GitHub Profile
@olidroide
olidroide / button_bar_layout.xml
Created April 10, 2012 08:31 — forked from romannurik/button_bar_layout.xml
How to make a proper button bar on ICS
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="?android:attr/dividerHorizontal"
android:showDividers="middle">
<TextView android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
@olidroide
olidroide / jenkins_installation.sh
Last active December 5, 2015 20:50
Install Jenkinks VPS
#Instal Java
#Thanks http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
sudo add-apt-repository --yes --update ppa:webupd8team/java
sudo apt-get update
#Accept terms&Conditions automatically
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
#Install
sudo apt-get -y install oracle-java7-installer
@olidroide
olidroide / gist:cb6f6d2bead3348280be
Last active December 8, 2015 19:19
Install last version of Ghost blog
sudo apt-get install zip wget nodejs npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo mkdir -p /var/www/
cd /var/www/
sudo wget https://ghost.org/zip/ghost-latest.zip
sudo unzip -d ghost ghost-latest.zip
cd ghost/
@olidroide
olidroide / dmesg_twrp2871.txt
Last active October 29, 2016 14:49
dmesg TWRP of Elephone TRUNK
<3>[ 0.083865] i2c-msm-v2 78b6000.i2c: error probe() failed with err:-517
<6>[ 0.083887] platform 78b6000.i2c: Driver i2c-msm-v2 requests probe deferral
<6>[ 0.083983] i2c-msm-v2 78b9000.i2c: probing driver i2c-msm-v2
<3>[ 0.084058] i2c-msm-v2 78b9000.i2c: error on clk_get(core_clk):-517
<3>[ 0.084068] i2c-msm-v2 78b9000.i2c: error probe() failed with err:-517
<6>[ 0.084086] platform 78b9000.i2c: Driver i2c-msm-v2 requests probe deferral
<6>[ 0.084187] i2c-msm-v2 78ba000.i2c: probing driver i2c-msm-v2
<3>[ 0.084260] i2c-msm-v2 78ba000.i2c: error on clk_get(core_clk):-517
<3>[ 0.084271] i2c-msm-v2 78ba000.i2c: error probe() failed with err:-517
<6>[ 0.084288] platform 78ba000.i2c: Driver i2c-msm-v2 requests probe deferral
@olidroide
olidroide / dmesg_boot-20161116-trunk.txt
Created November 23, 2016 07:54
dmesg_boot-20161116-trunk.txt
<3>[ 0.097381] msm_thermal:msm_thermal_dev_probe Failed reading node=/soc/qcom,msm-thermal, key=qcom,freq-control-mask. err:-517
<6>[ 0.097398] platform qcom,msm-thermal.59: Driver msm-thermal requests probe deferral
<6>[ 0.097804] sps:sps is ready.
<6>[ 0.098324] platform 1800000.qcom,rpmcc: Driver qcom,rpmcc-8916 requests probe deferral
<6>[ 0.098636] platform 1800000.qcom,gcc: Driver qcom,gcc-8916 requests probe deferral
<6>[ 0.099624] platform b011050.qcom,clock-a7: Driver clock-a7 requests probe deferral
<3>[ 0.101063] msm_mpm_dev_probe(): Cannot get clk resource for XO
<6>[ 0.101083] platform 601d0.qcom,mpm: Driver mpm-v2 requests probe deferral
<6>[ 0.101786] 8916_s1_corner: 0 <--> 0 mV at 0 mV normal idle
<6>[ 0.102094] 8916_s1_corner_ao: 0 <--> 0 mV at 0 mV normal idle
@olidroide
olidroide / dmesg_cm-13.0-20161116-UNOFFICIAL-trunk-boot-20161116-trunk.txt
Created November 24, 2016 11:21
dmesg of cm-13.0-20161116-UNOFFICIAL-trunk-boot-20161116-trunk.txt
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.49-cyanogenmod-g1604947d-dirty (ottmi@fedora.vm) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Nov 16 16:33:05 CET 2016
[ 0.000000] CPU: AArch64 Processor [410fd030] revision 0
[ 0.000000] Machine: Qualcomm Technologies, Inc. MSM 8916 QRD SKUH
[ 0.000000] cma: Found external_image__region@0, memory base 0x0000000086000000, size 8 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found modem_adsp_region@0, memory base 0x0000000086800000, size 86 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found pheripheral_region@0, memory base 0x000000008be00000, size 6 MiB, limit 0xffffffffffffffff
[ 0.000000] cma: Found mba_region@0, memory base 0x0000000000000000, size 2 MiB, limit 0xffffffffffffffff
Verifying that "olidroide.id" is my Blockstack ID. https://onename.com/olidroide

Keybase proof

I hereby claim:

  • I am olidroide on github.
  • I am olidroide (https://keybase.io/olidroide) on keybase.
  • I have a public key ASAWAaR66f8Ci-0bP4JpiNcmeLJeJzxQTb-MX_M4HTOi3Ao

To claim this, I am signing this object:

@olidroide
olidroide / UX303LB_ubuntu.txt
Last active January 4, 2018 11:39
ASUS UX303LB Ubuntu Hacks
#################################
# ADVERTISING:
# UBUNTU 17.10 works everything
#################################
#For Focaltech touchpad: https://launchpad.net/~hanipouspilot/+archive/ubuntu/focaltech-dkms
sudo add-apt-repository -y ppa:hanipouspilot/focaltech-dkms &&
sudo apt-get update && sudo apt-get install focaltech-dkms
sudo apt install sshfs
mkdir ~/Remote-Machine
sudo editor /etc/fstab
proc /proc proc defaults 0 0
# SSH File System Mount of my server
pi@192.168.1.10:/remote_folder /home/pi/Remote-Machine fuse.sshfs noauto,x-systemd.automount,_netdev,users,idmap=pi,IdentityFile=/home/pi/.ssh/id_rsa,allow_other,reconnect 0 0