Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrei Damian-Fekete DamianFekete

View GitHub Profile
@DamianFekete
DamianFekete / confluence-velocity-macros.vm
Created Aug 16, 2018
grep #macro confluence-6.6.2-source\confluence-project\confluence-core\confluence-webapp\src\main\webapp\template\includes\macros.vm
View confluence-velocity-macros.vm
#macro (iconSpan $type $text $additionalClasses)
#macro (contentIcon $content)
#macro (contentIconWithLinkPrefix $content $prefix)
#macro (contentIcon2 $content $linkColor $linkHref $linkTitle)
#macro (typeIcon $type)
#macro (icon $imageName $size $title)<img src="$staticResourceUrlPrefix/images/icons/${imageName}" height="$size" width="$size" style="vertical-align: middle" #if($title != '')title="$title"#end/>#end
#macro (contentHref $content)
#macro (contentHrefWithLinkPrefix $content $prefix)
#macro (contentOther $content)
#macro (contentLink2 $content $showIcon $showSpace)
@DamianFekete
DamianFekete / unitymedia.txt
Created Jun 26, 2018
Ping statistics UnityMedia UPC
View unitymedia.txt
--- 1.1.1.1 ping statistics ---
53 packets transmitted, 31 packets received, 41.5% packet loss
round-trip min/avg/max/stddev = 1539.227/4070.125/6043.525/1215.725 ms
$ traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 64 hops max, 52 byte packets
2 hsi-kbw-085-216-125-235.hsi.kabelbw.de (85.216.127.235) 3285.267 ms 4504.943 ms 3893.761 ms
3 hsi-kbw-85-216-127-234.hsi.kabel-badenwuerttemberg.de (85.216.127.234) 3893.598 ms 3479.283 ms 3859.114 ms
4 84.116.190.90 (84.116.190.90) 3625.398 ms 3368.249 ms 3282.193 ms
View ZK setViewModel.txt
*Error:*
Method setViewModel not found for class org.zkoss.zul.Window
*Reason*
Missing closing paranthesis for @init.
*Bad:*
<window title="Search" width="600px" border="normal"
apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('com.example.SearchVM'">
View ZK 7 ZUL Font Awesome sclass
ZK 7 ZUL Awesome
.z-icon-glass {content:"\f000"}
.z-icon-music {content:"\f001"}
.z-icon-search {content:"\f002"}
.z-icon-envelope-o {content:"\f003"}
.z-icon-heart {content:"\f004"}
.z-icon-star {content:"\f005"}
.z-icon-star-o {content:"\f006"}
.z-icon-user {content:"\f007"}
.z-icon-film {content:"\f008"}
View gist:879372
#include <windows.h>
#include <stdio.h>
typedef enum _STORAGE_QUERY_TYPE {PropertyStandardQuery = 0,PropertyExistsQuery,PropertyMaskQuery,PropertyQueryMaxDefined} STORAGE_QUERY_TYPE, *PSTORAGE_QUERY_TYPE;
typedef enum _STORAGE_PROPERTY_ID {StorageDeviceProperty = 0,StorageAdapterProperty} STORAGE_PROPERTY_ID, *PSTORAGE_PROPERTY_ID;
typedef struct _STORAGE_PROPERTY_QUERY {
STORAGE_PROPERTY_ID PropertyId;
STORAGE_QUERY_TYPE QueryType;
UCHAR AdditionalParameters[1];
You can’t perform that action at this time.