ipconfig -all
xclip -sel clip < ~/.ssh/id_rsa.pub
и подсунуть его гитлабу на той самой странице в переменные скопированный ключ. before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
<template>
<div class="col s4">
<a class="collection-header"><h4>Rooms List</h4></a>
<ul id = "rooms-list" class="collection">
<li v-for="(room, index) in rooms" :key="index" @click="myMethod(room)">{{room}}</li>
</ul>
</div>
</template>
<script>
export default {
name: 'qqqq',
data() {
return {
rooms: [
'room1',
'room2',
'room3',
'room4',
]
}
},
methods: {
addRoom(name) {
this.rooms.push(name);
}
}
}
</script>
private class ThreadsafeMemoizeCache<TArgument, TResult>
{
private readonly Dictionary<TArgument, TResult> _internalCache = new Dictionary<TArgument, TResult>();
private readonly object _internalCacheLocker = new object();
public TResult GetOrAdd(TArgument key, Func<TArgument, TResult> valueFactory)
{
lock (_internalCacheLocker)
{
TResult result;
if (_internalCache.TryGetValue(key, out result))
return result;
result = valueFactory(key);
_internalCache.Add(key, result);
return result;;
}
}
}
var cache = new ThreadsafeMemoizeCache<string, string>();
cache.GetOrAdd("1", (arg) => string.Empty);
cache.GetOrAdd("1", (arg) => string.Empty);
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wpfApplication1="clr-namespace:WpfApplication1"
Title="MainWindow" Height="350" Width="525">
<Grid wpfApplication1:NewPropertyHelper.Prop="{Binding}">
</Grid>
</Window>
namespace WpfApplication1
{
public static class NewPropertyHelper
{
public static readonly DependencyProperty PropProperty = DependencyProperty.RegisterAttached("Prop", typeof (object), typeof (NewPropertyHelper), new PropertyMetadata(default(object)));
public static object GetProp(UIElement element)
{
return (object) element.GetValue(PropProperty);
}
public static void SetProp(UIElement element, object value)
{
element.SetValue(PropProperty, value);
}
}
}