Skip to content

Instantly share code, notes, and snippets.

I want to mount a previous Synology basic volume (wasn't using RAID or SHR) to copy data to a new drive.

Plug it in the USB port doesn't work, showing (Partition 1 does not start on phyical sector boundary).

# fdisk -l
Disk /dev/sdr: 2.7 TiB, 3000558944256 bytes, 5860466688 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
@goncalor
goncalor / xposed.markdown
Last active December 12, 2023 14:15
How to install Xposed and JustTrustMe in a VM to defeat certificate pinning

Installing Xposed & JustTrustMe in a VM

Prerequisites

  • [Download][android_x86] an x86 Android image (32 bits)
  • [Download][xda_xposed] the XposedInstaller APK (see at bottom of original post)
  • [Download][xposed_zip] the Xposed framework for SDK27 (Android 8.1)
@jnehlmeier
jnehlmeier / SuperDevModeUncaughtExceptionHandler.java
Created December 8, 2014 14:29
GWT: Clickable StackTrace in SDM
package de.carecloud.app.client.base.logging;
import com.google.gwt.core.client.GWT;
import com.google.web.bindery.event.shared.UmbrellaException;
public class SuperDevModeUncaughtExceptionHandler implements GWT.UncaughtExceptionHandler {
@Override
public void onUncaughtException(final Throwable t) {
logException(t, false);
@kdambekalns
kdambekalns / patchset-created
Last active August 20, 2020 05:15
Gerrit commit message check hook
#!/bin/bash
BASE="/home/gerrit/review/git"
while [ "$1" != "" ]; do
case $1 in
--change) CHANGE=$2; shift;;
--project) PROJECT=$2; shift;;
--branch) BRANCH=$2; shift;;
--uploader) UPLOADER=$2; shift;;