Skip to content

Instantly share code, notes, and snippets.

View umjammer's full-sized avatar

Naohide Sano umjammer

View GitHub Profile
@umjammer
umjammer / list_startups.sh
Created March 8, 2015 13:46
List startup items, launch daemons, plugins on your Mac
#!/bin/bash
EA=0
if [ $# -ge 1 ]; then
if [ $1"" == "-x" ]; then
EA=1
elif [ $1"" == "-h" ]; then
echo $0 "[-x] [-h]"
echo " -x exclude com.apple.*"
@umjammer
umjammer / fix_itunes_font.sh
Last active September 3, 2015 08:55
fix ugly iTunes 12 japanese font settings
sed -i '.orig' 's/[o|O]saka/LucidaGrande/g' TextStyles.plist
zaurusใฎBOXๅฝขๅผ
ZPxxxx.BOXใชใฉใฎๅๅ‰ใฎใƒ•ใ‚กใ‚คใƒซใฎ่งฃๆž๏ผŽใ“ใ‚Œใฏใ‚ใใพใงใ‚‚ใƒกใƒข๏ผŽ
ๆญฃ็ขบใซใฏใƒ—ใƒญใ‚ฐใƒฉใƒ ใ‚’่ชญใ‚๏ผŽ
0x0074็•ชๅœฐใ‹ใ‚‰๏ผŒ2ใƒใ‚คใƒˆ[L:H]ใšใค๏ผŒใƒฌใ‚ณใƒผใƒ‰ใฎใƒใ‚คใƒˆไฝ็ฝฎใŒใฏใ„ใฃใฆใ„ใ‚‹๏ผŽ
54 0E 00 00 ; ใคใพใ‚Š00000E54ใ‹ใ‚‰ไธ€ใคใฎใƒฌใ‚ณใƒผใƒ‰ใŒๅง‹ใพใ‚‹
9E 0E 00 00 ; ๅŒใ˜ใ00000E9Eใ‹ใ‚‰ๅง‹ใพใ‚‹
...
FF FF FF FF ; ใŠใ‚ใ‚Š
@umjammer
umjammer / ใƒ™ใ‚ฟ้™ใ‚Š.md
Last active January 23, 2017 03:02
discarding priority for mahjong

๏ผณ๏ผณ โ—Žโ—Ž

  • ็พ็‰ฉ

็ตถๅฏพๅฎ‰ๅ…จ

๏ผณ โ—Ž

  • ๏ผ’ๆžšไปฅไธŠๅˆ‡ใ‚Œใƒคใ‚ฏใƒใ‚ค
  • ๏ผ‘ๆžšไปฅไธŠๅˆ‡ใ‚Œใ‚ชใ‚ฟใ‚ซใ‚ผ
@umjammer
umjammer / extract_iphone_backup.md
Last active October 31, 2019 04:12
how to extract iphone backup
  1. backup iphone to your pc with password

  2. extract using the tool

https://github.com/dinosec/iphone-dataprotection

$ source ../.ve_2.7/bin/activate
$ # extract and decrypt from a backup
$ python iphone-dataprotection/python_scripts/backup_tool.py ~/Library/Application\ Support/MobileSync/Backup/ABCD ./Backup_extract/ABCD
diff --git a/src/main/java/com/github/fge/filesystem/box/attributes/BoxBasicFileAttributesProvider.java b/src/main/java/com/github/fge/filesystem/box/attributes/BoxBasicFileAttributesProvider.java
index f20b2b6..760cc50 100644
--- a/src/main/java/com/github/fge/filesystem/box/attributes/BoxBasicFileAttributesProvider.java
+++ b/src/main/java/com/github/fge/filesystem/box/attributes/BoxBasicFileAttributesProvider.java
@@ -1,46 +1,60 @@
package com.github.fge.filesystem.box.attributes;
+import java.io.IOException;
+import java.nio.file.attribute.FileTime;
+import java.nio.file.attribute.GroupPrincipal;
diff --git a/src/main/java/com/github/fge/fs/dropbox/driver/DropBoxFileSystemDriver.java b/src/main/java/com/github/fge/fs/dropbox/driver/DropBoxFileSystemDriver.java
index e6789f5..56cd78c 100644
--- a/src/main/java/com/github/fge/fs/dropbox/driver/DropBoxFileSystemDriver.java
+++ b/src/main/java/com/github/fge/fs/dropbox/driver/DropBoxFileSystemDriver.java
@@ -3,15 +3,23 @@ package com.github.fge.fs.dropbox.driver;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
+import java.nio.ByteBuffer;
+import java.nio.channels.Channels;
diff --git a/src/main/java/co/paralleluniverse/fuse/StructStatvfs.java b/src/main/java/co/paralleluniverse/fuse/StructStatvfs.java
index 8af5e42..60cbeaa 100644
--- a/src/main/java/co/paralleluniverse/fuse/StructStatvfs.java
+++ b/src/main/java/co/paralleluniverse/fuse/StructStatvfs.java
@@ -184,4 +184,8 @@ public class StructStatvfs {
return path + "\n" + JNRUtil.toString(layout, p);
return JNRUtil.toString(layout, p);
}
+
+ public String getPath() {
diff --git a/src/main/java/de/tuberlin/onedrivesdk/OneDriveSDK.java b/src/main/java/de/tuberlin/onedrivesdk/OneDriveSDK.java
index 3ce396b..2376be3 100644
--- a/src/main/java/de/tuberlin/onedrivesdk/OneDriveSDK.java
+++ b/src/main/java/de/tuberlin/onedrivesdk/OneDriveSDK.java
@@ -1,13 +1,14 @@
package de.tuberlin.onedrivesdk;
-import de.tuberlin.onedrivesdk.folder.OneFolder;
+import java.io.IOException;
+import java.util.List;
$ mp3splt -p th=-36 -r foo.mp3