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/python3 | |
# Converts Pegasus Mail v4.x .PMM files into Unix mbox files using lots | |
# of heuristics to repair any corruption in the Pegasus mail store | |
# (the "Unix mbox" feature of Pegasus produces malformed Unix mbox files) | |
# (C) 2016 Niall Douglas http://www.nedprod.com/ | |
# File created: Dec 2016 | |
# | |
# Best used with python 3.6, anything older has a less able email and | |
# mailbox python modules |
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
cd /root | |
aptitude install curl git | |
git clone https://github.com/ned14/mailinabox.git | |
cd mailinabox | |
DISABLE_FIREWALL=1 setup/start.sh | |
(Use usual@nedprod.com for the email and mail.nedprod.com for the server) | |
cd /home/user-data/ssl/nedprod.com | |
nano private_key.pem | |
(Use nedprod.com cert private key) | |
chmod og-rwx private_key.pem |
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
#include <stdio.h> | |
#include <type_traits> | |
#define BOOST_CXX14_CONSTEXPR constexpr | |
template<class Enum> struct bitfield : public Enum | |
{ | |
using enum_type = typename Enum::enum_type; | |
using underlying_type = std::underlying_type_t<enum_type>; | |
private: |
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
#include <stdio.h> | |
#define BOOST_CXX14_CONSTEXPR constexpr | |
//! Constexpr bitwise flags support | |
template<class Derived, class T = unsigned> class bitwise_flags | |
{ | |
T _value; | |
public: | |
//! The underlying type |
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
#include <stdio.h> | |
#define BOOST_AFIO_DECLARE_CLASS_ENUM_AS_BITFIELD(type) \ | |
inline constexpr type operator&(type a, type b) \ | |
{ \ | |
return static_cast<type>(static_cast<size_t>(a) & static_cast<size_t>(b)); \ | |
} \ | |
inline constexpr type operator&=(type a, type b) \ | |
{ \ | |
return static_cast<type>(static_cast<size_t>(a) & static_cast<size_t>(b)); \ |
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
File of length 16384 contains zeros! | |
??<???x?m?l? ?v?e?r?s?i?o?n?=?'?1?.?0?'? ?e?n?c?o?d?i?n?g?=?'?U?T?F?-?1?6?'???>???<?!?D?O?C?T?Y?P?E? ?h?t?m?l? ?P?U?B?L?I?C? ?'?-?/?/?W?3?C?/?/?D?T?D? ?X?H?T?M?L? ?1?.?1? ?p?l?u?s? ?M?a?t?h?M?L? ?2?.?0?/?/?E?N?'??? ? ?'?h?t?t?p?:?/?/?w?w?w?.?w?3?.?o?r?g?/?T?R?/?M?a?t?h?M?L?2?/?d?t?d?/?x?h?t?m?l?-?m?a?t?h?1?1?-?f?.?d?t?d?'??? ? ?[?<?!?E?N?T?I?T?Y? ?m?a?t?h?m?l? ?'?h?t?t?p?:?/?/?w?w?w?.?w?3?.?o?r?g?/?1?9?9?8?/?M?a?t?h?/?M?a?t?h?M?L?'?>?]?>???<?h?t?m?l? ?x?m?l?n?s?=?'?h?t?t?p?:?/?/?w?w?w?.?w?3?.?o?r?g?/?1?9?9?9?/?x?h?t?m?l?'?>???<?h?e?a?d?>???<?!?-?-? ?M?a?t?h?M?L? ?c?r?e?a?t?e?d? ?w?i?t?h? ?M?a?t?h?C?a?s?t? ?E?q?u?a?t?i?o?n? ?E?d?i?t?o?r? ?v?e?r?s?i?o?n? ?0?.?8?3? ?-?-?>???<?/?h?e?a?d?>???<?b?o?d?y?>???<?m?a?t?h? ?x?m?l?n?s?=?"?h?t?t?p?:?/?/?w?w?w?.?w?3?.?o?r?g?/?1?9?9?8?/?M?a?t?h?/?M?a?t?h?M?L?"? ?d?i?s?p?l?a?y?=?"?b?l?o?c?k?"?>??? ? ?<?m?r?o?w?>??? ? ? ? ?<?m?i?>?l?<?/?m?i?>??? ? ? ? ?<?m?i?>?g?<?/?m?i?>??? ? ? ? ?<?m?i?>?a?<?/?m?i?>??? ? ? ? ?<?m?i?>?m?<?/?m?i?>??? ? ? ? |
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
-- reading ruleset... | |
-- done reading ruleset. | |
-- Opening SVN repository at /home/ned/ryppl/boost-trunk | |
-- preparing repositories and import processes... | |
-- done preparing repositories and import processes. | |
-- Using git executable: /home/ned/ryppl/Boost2Git/build/git/git | |
-- importing revision 1000 | |
-- importing revision 2000 | |
-- importing revision 3000 | |
-- importing revision 4000 |
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
/* CallgrindParser | |
Copyright (C) 2013 BlackBerry. | |
Permission is hereby granted, free of charge, to any person or organization | |
obtaining a copy of the software and accompanying documentation covered by | |
this license (the "Software") to use, reproduce, display, distribute, | |
execute, and transmit the Software, and to prepare derivative works of the | |
Software, and to permit third-parties to whom the Software is furnished to | |
do so, all subject to the following: |
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
A test file |