Skip to content

Instantly share code, notes, and snippets.

View zolo2hin's full-sized avatar

Serhii Zolotukhin zolo2hin

  • Kyiv, Ukraine
View GitHub Profile
@zolo2hin
zolo2hin / controllers.application.js
Created December 26, 2016 13:49
Observer nested array
import Ember from 'ember';
export default Ember.Controller.extend({
array: [{foo:1,'ar':Em.A()}, {foo:2}, {foo:3}],
actions: {
addElement: function() {
this.array.pushObject({foo:4});
},
addSub: function(){
import DS from 'ember-data';
export default DS.JSONAPIAdapter.extend({
});
@zolo2hin
zolo2hin / controllers.application.js
Last active February 11, 2019 19:02
Serjikz123_problem
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@zolo2hin
zolo2hin / Commands.sh
Last active November 30, 2020 09:49
Bash commands and syntax
# Generate ssh key without password
ssh-keygen -b 2048 -t rsa -f ~/Documents/keys/ssh/KEYNAME -q -N ""
@zolo2hin
zolo2hin / pods
Last active March 22, 2021 14:52
# Get pods in namespace
kubectl get pods -n rest
# SSH Pod
kubectl exec --stdin -n rest --tty pod-name -- /bin/sh
# установить my-cluster-name как контекст по умолчанию
kubectl config use-context my-cluster-name