Skip to content

Instantly share code, notes, and snippets.

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 / unitymedia.txt
Created Jun 26, 2018
Ping statistics UnityMedia UPC
View unitymedia.txt
--- 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
traceroute to (, 64 hops max, 52 byte packets
2 ( 3285.267 ms 4504.943 ms 3893.761 ms
3 ( 3893.598 ms 3479.283 ms 3859.114 ms
4 ( 3625.398 ms 3368.249 ms 3282.193 ms
View ZK setViewModel.txt
Method setViewModel not found for class org.zkoss.zul.Window
Missing closing paranthesis for @init.
<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 {
UCHAR AdditionalParameters[1];