Skip to content

Instantly share code, notes, and snippets.

View webmaster128's full-sized avatar

Simon Warta webmaster128

View GitHub Profile
@webmaster128
webmaster128 / gist:07abec35e344c47a78e5
Created March 30, 2015 21:09
QVector initialization
QVector<QString> string = QVector<QString>{
"Nr1",
"Nr2",
"Nr3",
"Nr4",
"Nr5",
};
QVector<QString> value = QVector<QString>{
"1",
@webmaster128
webmaster128 / TooltipArea.qml
Last active March 29, 2021 10:34
TooltipArea.qml
import QtQuick 2.4
import QtQuick.Controls.Private 1.0
// TooltipArea.qml
// This file contains private Qt Quick modules that might change in future versions of Qt
// Tested on: Qt 5.4.1 - Qt 5.6.1
MouseArea {
property string text: ""
QT += core
QT -= gui
TARGET = qmake-test
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
#!/bin/bash
set -e
set -v
REPO="https://github.com/randombit/botan.git"
BRANCH="master"
datetime() {
date --rfc-3339=seconds
This file has been truncated, but you can view the full file.
Cloning repository ...
Done cloning repository
1 On branch modulecombi
2 Your branch is up-to-date with 'origin/modulecombi'.
3
4 nothing to commit, working directory clean
5
6 ---
7
8 commit cc6b626620badc65a8a317b0a318b9f70bd03f7d
13:22:24.232 [go] Job Started: 2015-07-12 13:22:24 MESZ
13:22:24.232 [go] Start to prepare using-botan/254/test-botan/1/OSX10.10 on kullo-imac.local [/Applications/Go Agent.app]
13:22:24.274 [go] Keeping folder pipelines/using-botan/botan
13:22:24.274 [go] Deleting folder pipelines/using-botan/build-botan
13:22:24.346 [go] Keeping folder pipelines/using-botan/cruise-output
13:22:24.346 [go] Keeping folder pipelines/using-botan/using-botan
13:22:24.346 [go] Start to update materials.
13:22:24.346 [go] Start updating using-botan at revision 2c4c8aa601a341bea7087d6261b814762cc5ea2a from [email protected]:kullo/using-botan.git
@webmaster128
webmaster128 / gist:8cbace94767faf5d8d9b
Created August 5, 2015 12:39
Hexdump JPEG and PNG header data
cat kullo_support.png | head -c 64 | hexdump -C
00000000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 |.PNG........IHDR|
00000010 00 00 00 f0 00 00 00 f0 08 06 00 00 00 3e 55 e9 |.............>U.|
00000020 92 00 00 00 04 73 42 49 54 08 08 08 08 7c 08 64 |.....sBIT....|.d|
00000030 88 00 00 00 09 70 48 59 73 00 00 03 52 00 00 03 |.....pHYs...R...|
00000040
cat robert_firscher.jpg | head -c 64 | hexdump -C
00000000 ff d8 ff e0 00 10 4a 46 49 46 00 01 01 01 00 48 |......JFIF.....H|
00000010 00 48 00 00 ff db 00 43 00 01 01 01 01 01 01 01 |.H.....C........|
Raw output
Change theme
06:03:59.840 [go] Job Started: 2015-08-22 06:03:59 MESZ
06:03:59.840 [go] Start to prepare using-botan/321/test-botan/1/OSX10.10 on kullo-imac.local [/Applications/Go Agent.app]
06:03:59.886 [go] Keeping folder pipelines/using-botan/botan
06:03:59.886 [go] Deleting folder pipelines/using-botan/build-botan
06:03:59.949 [go] Keeping folder pipelines/using-botan/cruise-output
@webmaster128
webmaster128 / secure_erase.sh
Last active December 4, 2015 11:33
Secure erase the fast way. Erases a HDD by encrypting zeros
PASS=$(cat /dev/urandom | tr -cd 0-9a-f | head -c 64) \
openssl enc -aes256 -pass env:PASS -iv $(cat /dev/urandom | tr -cd 0-9a-f | head -c 32) -in /dev/zero | sudo dd of=/dev/sdX bs=4096
/*
* Example for https://github.com/philsquared/Catch/issues/539
* compiled using
* g++ -std=c++11 -I./single_include extest.cpp && ./a.out
* in the Catch repo checkout
*/
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"