Skip to content

Instantly share code, notes, and snippets.

View tanasecosminromeo's full-sized avatar

Cosmin-Romeo TANASE tanasecosminromeo

  • StudentTenant.com Ltd.
  • Bucharest, Romania / Canterbury, England
View GitHub Profile
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-calculator/paper-calculator.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<polymer-element name="my-element">
<template>
Here's actually a page that stole you're ST authentification.
Not really.. but it an very well be that!
@tanasecosminromeo
tanasecosminromeo / docker-psi
Last active September 26, 2017 15:29
List all docker networks with their Gateway
#!/bin/bash
docker ps -a --quiet "$@" | xargs --no-run-if-empty docker inspect --format='{{range $net, $conf := .NetworkSettings.Networks}}{{$conf.Gateway}} {{$net}}{{end}}' | column -t -s '|' | sort -u -V
@tanasecosminromeo
tanasecosminromeo / docker-destroy-all.sh
Created November 3, 2017 19:01 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@tanasecosminromeo
tanasecosminromeo / trello-count-cards.userscript.js
Last active November 29, 2017 14:29
Ads card number to trello and gives an example of how you can also count the number of cards with a specific label. The current example is useful if you mange sprints to see how many of the tasks were critical and how many extra tasks were added into the sprint.
// ==UserScript==
// @name Trello Count
// @namespace https://tcrhd.net/
// @version 0.2
// @description Ads card number to trello and gives an example of how you can also count the number of cards with a specific label. The current example is useful if you mange sprints to see how many of the tasks were critical and how many extra tasks were added into the sprint.
// @author Cosmin-Romeo TANASE
// @include https://trello.com/*
// ==/UserScript==
(function() {
@tanasecosminromeo
tanasecosminromeo / readme.md
Created February 14, 2018 23:35 — forked from techgaun/readme.md
OpenSSH 7.4 on Ubuntu 16.04

Installing OpenSSH 7.4 on Ubuntu 16.04

sudo apt install -y build-essential libssl-dev zlib1g-dev
wget "http://mirrors.evowise.com/pub/OpenBSD/OpenSSH/portable/openssh-7.4p1.tar.gz"
tar xfz openssh-7.4p1.tar.gz
cd openssh-7.4p1
./configure
make
sudo make install
<?php
namespace App\Command;
use App\Entity\Property;
use App\Entity\PropertyRepository;
use Doctrine\ORM\EntityManagerInterface;
use Google_Client;
use Google_Exception;
use Google_Service_Sheets;