adb shell "run-as package.name chmod 666 /data/data/package.name/databases/file"
adb pull /data/data/package.name/databases/file .
adb shell "run-as package.name chmod 600 /data/data/package.name/databases/file"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"event_classifiers": { | |
"Theory - Practice": 100, | |
"Hardware": 15, | |
"Security": 95, | |
"Novelty": 50, | |
"Defense - Offense": 100 | |
}, | |
"language": "en", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import os | |
import sys | |
from shutil import copyfile | |
def getScriptPath(): | |
""" | |
Returns the full directory path of this script. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Jazz highlight my tickets. | |
// @description Visually highlights rows which belongs to the currently logged-in user. | |
// @version 2.0.0 | |
// @author Tobias Preuss | |
// @grant none | |
// @include https://jazz.example.com/ccm/web/projects/* | |
// ==/UserScript== | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#split vcf files | |
import re | |
working_dir = '/home/umair/Documents/Contacts/' | |
input_file = 'contacts starred 26-06-2014.vcf' | |
output_seed = 'contacts-part-' | |
vcards_per_file = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='utf-8' ?> | |
<schedule> | |
<version>v10.2</version> | |
<conference> | |
<acronym>gpn18</acronym> | |
<title>18. Gulaschprogrammiernacht</title> | |
<start>2018-05-10</start> | |
<end>2018-05-13</end> | |
<days>4</days> | |
<timeslot_duration>00:05</timeslot_duration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"crs": { | |
"properties": { | |
"name": "urn:ogc:def:crs:OGC:1.3:CRS84" | |
}, | |
"type": "name" | |
}, | |
"features": [ | |
{ | |
"geometry": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void logBundleState(Class<?> klass, Context context, Bundle outState) { | |
int size = getBundleSizeInBytes(outState); | |
String humanReadableSize = android.text.format.Formatter.formatFileSize(context, size); | |
Log.d(klass.getName(), "onSaveInstanceState >>> " + "bundle = " + humanReadableSize + " (" + size + " bytes)"); | |
} | |
public static int getBundleSizeInBytes(Bundle bundle) { | |
Parcel parcel = Parcel.obtain(); | |
parcel.writeValue(bundle); | |
byte[] bytes = parcel.marshall(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jetbrains-idea-ce.desktop | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=IntelliJ IDEA Community Edition | |
Icon=/home/USERNAME/bin/idea-IC-172.3942.27/bin/idea.png | |
Exec=env JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 /home/USERNAME/bin/idea-IC-172.3942.27/bin/idea.sh %f | |
Comment=The Drive to Develop | |
Categories=Development;IDE; | |
Terminal=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Art & Culture | |
CCC | |
Entertainment | |
Ethics, Society & Politics | |
Hardware & Making | |
Resilience | |
Science | |
Security |