Skip to content

Instantly share code, notes, and snippets.

View gsora's full-sized avatar
🤙
Vibin'

Gianguido Sorà gsora

🤙
Vibin'
View GitHub Profile
@gsora
gsora / logcat-ics-desire-sandvold
Created February 6, 2012 20:47
ICS for Desire by Sandvold, multitouch issue
D/SurfaceTexture( 123): [unnamed-123-106] this:0x12692f0 SurfaceTexture::setName: name:com.android.gallery3d/com.android.gallery3d.app.Gallery
D/dalvikvm( 1365): GC_CONCURRENT freed 6480K, 53% free 12998K/27399K, paused 3ms+3ms
D/SurfaceTexture( 123): [SurfaceView] this:0x124e8b8 dequeueBuffer: tryAgain:1
D/SurfaceTexture( 123): [SurfaceView] this:0x124e8b8 dequeueBuffer: tryAgain:1
D/SurfaceTexture( 123): [SurfaceView] this:0x124e8b8 dequeueBuffer: tryAgain:1
D/dalvikvm( 1365): GC_FOR_ALLOC freed 145K, 52% free 13410K/27399K, paused 53ms
D/SurfaceTexture( 123): [SurfaceView] this:0x124e8b8 dequeueBuffer: tryAgain:1
D/SurfaceTexture( 123): [SurfaceView] this:0x124e8b8 SurfaceTexture::dequeuebuffer: MIN EXCEEDED mBuffer:4 bumped
D/SurfaceTexture( 123): [com.android.launcher/com.android.launcher2.Launcher] this:0x122e8a0 SurfaceTexture::abandon
D/SurfaceTexture( 123): [SurfaceView] this:0x124e8b8 dequeueBuffer: tryAgain:1
@gsora
gsora / gist:2153733
Created March 21, 2012 22:14
md5 password check in python
#!/usr/bin/python2
#-*- coding:utf-8 -*-
########## createdy by Gianguido
########## gianguidorama at gmail dot com
########## @PeppeLaKappa on Twitter
import commands
import hashlib
#!/usr/bin/python2
#-*- coding:utf-8 -*-
import os
import commands
import hashlib
# Menu!
def menu():
print '|--------------------------------------|'
#!/bin/bash
#
# Adrenizer: a simple Adreno 200 official driver installer.
# Works on all operating system that Google's adb supports.
# Developed by @PeppeLaKappa (aka Gianguido Sorà) gianguidorama (at) gmail (dot) com
# help me!
if [ "$1" = "" ]; then
echo "Adrenizer: a simple Adreno 200 official driver installer."
echo "Works on all operating system that Google's adb supports."
@gsora
gsora / lol.js
Created February 13, 2013 20:25
var windowWidth = $(window).width();
var windowHeight = $(window).height();
$(document).ready(function()
{
if(windowHeight == "690") {
$(galleria).css("margin-left","16%");
$(galleria).css("margin-top","15%");
}
});
#!/bin/bash
# by @PeppeLaKappa
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
/sbin/iptables -A FORWARD -i wlan0 -o rndis0 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i rndis0 -o wlan0 -j ACCEPT
zstyle :compinstall filename '~/.zshrc'
autoload -Uz compinit zcalc
compinit
zstyle ':completion:*' menu select
zstyle '*:processes-names' command 'ps -e -o comm='
zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'
zstyle ':completion:*' file-sort modification reverse
autoload -U colors && colors
zstyle ':completion:*' list-colors "=(#b) #([0-9]#)*=31=36"
#source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
sh /home/user/auguri.sh | mutt -s "AUGURI!!1 " EMAILDIBUSO
function percentageOrNot(onCoverBool) {
if(onCoverBool.valueOf() == true) {
coverPercentageOrNot.text = hunger.bat_cur_pr()
} else {
coverPercentageOrNot.text = hunger.long_text()
}
}
Timer {
//blabla
@gsora
gsora / GPUMorePowa.service
Created April 18, 2014 14:46
Boost Jolla UI smoothness
[Unit]
Description=Set the GPU power to the maximum!
After=connman.service
[Service]
Type=forking
ExecStart=/usr/bin/doGPUPowa
Restart=always
[Install]