Skip to content

Instantly share code, notes, and snippets.

@maxiwoj
maxiwoj / 1PasswordArchiveProcessor.md
Created May 29, 2023 17:40
A set of tools for proecssing 1Password Unencrypted Archive (.1pux)

1PasswordArchiveProcessor

Whenever migrating to a different password manager an important thing is exporting all of the data. Unfortunately, most of the password managers export by default to csv or support importing from csv only. Exporting everything to a csv with 1password contains only the default fields (such as username, password, notes), but won't export all the custom fields (e.g. fields that it suggests to add for a passport, any imported SSH keys etc.). I created those functions in order to easily manage my items that have some additional information than what can be exported to a csv file.

Initialise data

In order to get the file, you need to export the 1password account to .1pux file (1password unencrypted archive). Then change the file extension to .zip - inside there is the export.data file with a dump of the whole account.

# in order to setup zsh on termux with some proper stuff
# pkg install wget
# wget <this_raw> ; chmod u+x termux-setup-script.sh ; termux-setup-script.sh
pkg install wget
pkg install htop
pkg install nano
apt install zsh
pkg install lftp
chsh -s zsh
@maxiwoj
maxiwoj / 31025.xml
Last active November 11, 2018 17:56
This is a definition for 31025 programmable target object for Remote Programmer
<?xml version="1.0" encoding="utf-8"?>
<LWM2M xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://openmobilealliance.org/tech/profiles/LWM2M.xsd">
<Object ObjectType="MODefinition">
<Name>Programmable Target</Name>
<Description1>This Object is used for configuring and running various tests, later getting their results.
</Description1>
<ObjectID>31025</ObjectID>
<ObjectURN>urn:oma:lwm2m:x:31025</ObjectURN>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Optional</Mandatory>
#include <iostream>
#define N 1000000
using namespace std;
struct node{
int rank;
int num_of_friends;
node *parent;
};
int generateNum[100000000];
//-------------------------
(*
* Zadanie domowe 1, czesc 1
* structure file
*)
structure id283224 :> PART_ONE =
struct
exception NotImplemented
datatype 'a tree= Leaf of 'a | Node of 'a tree * 'a * 'a tree