Skip to content

Instantly share code, notes, and snippets.

@juuba
juuba / gist:8ce4c262fd30f687cac7
Last active August 29, 2015 14:08
jolla logs
Nov 04 08:43:25 jolla google-contacts-client[2550]: [W] ContactWriter::syncUpdate:4247 - "Unable to save contact changes for sync update"
Nov 04 08:43:25 jolla google-contacts-client[2550]: [W] QtContactsSqliteExtensions::TwoWayContactSyncAdapter::storeRemoteChanges:910 - virtual bool QtContactsSqliteExtensions::TwoWayContactSyncAdapter::storeRemoteChanges(...
Nov 04 08:43:26 jolla [1005]: [W] Buteo::ProfileManagerPrivate::parseFile:1096 - Failed to parse profile XML: "/home/nemo/.cache/msyncd/sync/facebook.Notifications-3.xml"
Nov 04 08:43:26 jolla [1005]: [W] Buteo::ProfileManagerPrivate::load:152 - Failed to load profile: "facebook.Notifications-3"
Nov 04 08:43:26 jolla [1005]: [W] Buteo::ProfileManagerPrivate::parseFile:1096 - Failed to parse profile XML: "/home/nemo/.cache/msyncd/sync/syncemail-8.xml"
Nov 04 08:43:26 jolla [1005]: [W] Buteo::ProfileManagerPrivate::load:152 - Failed to load profile: "syncemail-8"
@juuba
juuba / gist:fb3e7c94d6c8a7be46bd
Created November 10, 2014 13:23
jolla btrfs fi show
[nemo@Jolla ~]$ devel-su
Password:
[root@Jolla nemo]# btrfs fi show
Label: none uuid: 69e965d1-41fd-449e-831a-669c365e533f
Total devices 1 FS bytes used 4.41GB
devid 1 size 7.40GB used 6.70GB path /dev/mmcblk1
Label: 'sailfish' uuid: 6cd02857-b136-4906-bd6c-c7509374e82c
Total devices 1 FS bytes used 2.97GB
devid 1 size 13.75GB used 13.75GB path /dev/mmcblk0p28
@juuba
juuba / gist:69b1b9eea0475f881832
Last active August 29, 2015 14:16
mount | grep 'mmcblk1\|android'
[nemo@Jolla ~]$ mount | grep 'mmcblk1\|android'
/dev/mmcblk1 on /media/sdcard/69e965d1-41fd-449e-831a-669c365e533f type btrfs (rw,nosuid,nodev,noexec,noatime,dirsync,thread_pool=4,ssd,noacl,space_cache)
/dev/mmcblk1 on /data/media type btrfs (rw,nosuid,nodev,noexec,noatime,dirsync,thread_pool=4,ssd,noacl,space_cache)
/dev/mmcblk1 on /opt/alien/data/media type btrfs (rw,nosuid,nodev,noexec,noatime,dirsync,thread_pool=4,ssd,noacl,space_cache)
/dev/fuse on /opt/alien/home/nemo/android_storage type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /home/nemo/android_storage type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)
[nemo@Jolla ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 14G 4.3G 9.0G 33% /
/dev/mmcblk0p28 14G 4.3G 9.0G 33% /
devtmpfs 404M 64K 404M 1% /dev
tmpfs 405M 632K 405M 1% /dev/shm
tmpfs 405M 30M 375M 8% /run
tmpfs 405M 0 405M 0% /sys/fs/cgroup
tmpfs 405M 32K 405M 1% /tmp
/dev/mmcblk0p19 7.9M 4.1M 3.9M 52% /drm
@juuba
juuba / gist:4924e4d0882c3c078de2
Created March 4, 2015 07:04
1.1.2.16 mounts mmcbkl1 as "read-only"
[root@Jolla nemo]# mount | grep 'mmcblk1\|android'
/dev/mmcblk1 on /media/sdcard/69e965d1-41fd-449e-831a-669c365e533f type btrfs (ro,nosuid,nodev,noexec,noatime,dirsync,thread_pool=4,ssd,noacl,space_cache)
/dev/mmcblk1 on /data/media type btrfs (ro,nosuid,nodev,noexec,noatime,dirsync,thread_pool=4,ssd,noacl,space_cache)
/dev/mmcblk1 on /opt/alien/data/media type btrfs (ro,nosuid,nodev,noexec,noatime,dirsync,thread_pool=4,ssd,noacl,space_cache)
/dev/fuse on /opt/alien/home/nemo/android_storage type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /home/nemo/android_storage type fuse (rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other)
[root@jolla nemo]# btrfs check --repair /dev/mmcblk1
enabling repair mode
Checking filesystem on /dev/mmcblk1
UUID: 69e965d1-41fd-449e-831a-669c365e533f
checking extents
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
checking csums
checking root refs
@juuba
juuba / gist:c9286985e5109da24bbf
Created March 12, 2015 07:09
IL2:BOS land texture LOD tweak
Step one:
Navigate to your BOS graphics folder. Default should be:
C:\Program Files\IL-2 Sturmovik Battle of Stalingrad\data\graphics\
Steam version should be:
C:\Program Files\Steam\SteamApps\common\IL-2 Sturmovik Battle of Stalingrad\data\graphics\
@juuba
juuba / Dusk Patrol - 7th April 2009
Last active August 29, 2015 14:19
Battleground Europe - Dusk Patrol in 2009
Dusk Patrol - 7th April
I lifted my 109G6 from Bertrix (Originally from Wiltz, rearmed/repaired and refueled here)..
Sun was almost setting as I arrived over target - Ste.Menehold
Objective - Defend town against enemy paratroopers:
I had heard reports on comms that enemy constantly flew para planes, C47s mostly from Montfaucon against Ste.Menehold.
As I arrived, i saw the first one and a Hawk-87.. The C47 had already emptied its load over town,
@juuba
juuba / FreePIE script
Created June 3, 2015 21:10
FreePIE + vJoy script for CH Combatstick wheel-axis
# FreePIE + vJoy script for CH Combatstick Wheel
# from https://www.reddit.com/r/hoggit/comments/384bkn/ch_fighterstick_throttle_wheel_has_jitter_any_fix/crspxso
range = 1000 # Not sure if this is ever not 1000 in FreePIE. Set to maximum value of "input"
deadzone = 16 # Deadzone relative to "range" above. With my X-55 rotary, the granularity was 8, so at 16 this gives 2 units of deadzone.
input = joystick[2].z # Change this to whatever joystick and axis is your slider
if starting:
deadzoneStart = 0
@juuba
juuba / 153284.js
Last active August 29, 2015 14:24
Youtube Quality Autoplay Juuba'ed
// ==UserScript==
// @name Youtube Quality Autoplay
// @namespace http://troopers.fi
// @description Juuba-edit: Stops youtube videos from auto-playing, sets video quality
// @version 1.5
// @include *.youtube.com/watch*
// @grant none
// @updateURL http://userscripts.org/scripts/source/153284.meta.js
// @installURL http://userscripts.org/scripts/source/153284.user.js
// @copyright NMGod