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
@tanasecosminromeo
tanasecosminromeo / test-hdd.sh
Last active October 8, 2022 15:04
HDD Speed Check
#!/bin/bash
if [ $# -eq 0 ]
then
echo "Usage ./test-hdd.sh /mounted-path-of-hdd [size-in-Mb]"
exit;
fi
actualDisk=$(df $1 | grep dev | cut --d ' ' -f1)
#echo Running hdparm -Tt $actualDisk
object(stdClass)#183 (29) {
["type"]=>
string(4) "text"
["blog_name"]=>
string(11) "nicecreamfm"
["blog"]=>
object(stdClass)#184 (6) {
["name"]=>
string(11) "nicecreamfm"
["title"]=>
@tanasecosminromeo
tanasecosminromeo / GoogleSheetsImport.php
Created May 5, 2020 21:06
This is a Symfony service that allows importing a google sheet into an entity.
<?php
namespace App\Lib;
use Doctrine\ORM\EntityManagerInterface;
use Exception;
use Google_Client;
use Google_Exception;
use Google_Service_Sheets;
<?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;
@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
@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 / 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 / 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
Here's actually a page that stole you're ST authentification.
Not really.. but it an very well be that!
<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>