Skip to content

Instantly share code, notes, and snippets.

View AlexandrYZ's full-sized avatar

Alexandr Zaozerskiy AlexandrYZ

View GitHub Profile
@AlexandrYZ
AlexandrYZ / gist:677c40924f2062ddd9c43b7e4d4c426d
Created August 12, 2020 10:50
Confluence incoming links
## Macro title: incoming links - selected space
## Source - https://community.atlassian.com/t5/Answers-Developer-Questions/Get-incoming-links-with-in-a-user-macro/qaq-p/538128
## @param Space:title=Space|type=spacekey
#set($incLinks = $action.getIncomingLinks())
#if($incLinks && $incLinks.size() > 0)
<ac:structured-macro ac:macro-id="180b25d1-981f-410d-8fc7-b979b17f8ca2" ac:name="panel" ac:schema-version="1">
<ac:parameter ac:name="title">Links to this page from $paramSpace space</ac:parameter>
<ac:rich-text-body>
<p><ul>
#foreach ($incLink in $incLinks)
@AlexandrYZ
AlexandrYZ / gist:5220471
Created March 22, 2013 10:56
Twitter Bootstrap make errors
##################################################
Building Bootstrap...
##################################################
js/bootstrap-affix.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-alert.js: line 23, col 17, Bad option: ';_;'.
js/bootstrap-button.js: line 23, col 17, Bad option: ';_;'.
@AlexandrYZ
AlexandrYZ / gist:4013159
Created November 4, 2012 19:15
XElement helper
public static class XElementExtentsions
{
public static string GetElement(this XElement el, string nodeName)
{
var element = el.Element(nodeName);
if (element != null)
return element.Value;
throw new ArgumentNullException("Xml element not found - " + nodeName);
@AlexandrYZ
AlexandrYZ / gist:1369845
Created November 16, 2011 11:09
Windows Azure Emulator autostart script
"%PROGRAMFILES%\Windows Azure Emulator\emulator\csrun.exe" /devfabric:start
"%PROGRAMFILES%\Windows Azure Emulator\emulator\csrun.exe" /devstore:start
@AlexandrYZ
AlexandrYZ / gist:1284366
Created October 13, 2011 14:38
PC config
CPU:
AMD Athlon II X2 250
http://fvd.ru/?go=ttx&item=55231
2 141 руб.
MB:
ASUS M4A87TD
http://fvd.ru/?go=ttx&item=63948
2 905 руб.
@AlexandrYZ
AlexandrYZ / gist:1263732
Created October 5, 2011 05:39
Protobuf DateTimeKind serialization fail
using System;
using System.IO;
using NUnit.Framework;
using ProtoBuf;
namespace Protobuf_DateTimeKindTest
{
[TestFixture]
public class ProtobufTests
{
@AlexandrYZ
AlexandrYZ / gist:1201106
Created September 7, 2011 16:58
Install ZenCoding to Sublime Text 2
Windows!
cd %appdata%\sublime text 2\packages
hg clone https://bitbucket.org/sublimator/sublime-2-zencoding
restart Sublime Text 2