Skip to content

Instantly share code, notes, and snippets.

View hyperized's full-sized avatar
🥑
Eating a sandwich

hyperized

🥑
Eating a sandwich
View GitHub Profile
---
stages:
- testing
- qa
phpstan:
image:
name: hyperized/phpstan:latest
entrypoint: [""]
stage: testing
<?php declare(strict_types=1);
namespace Hyperized\File\Safe;
use Hyperized\File\Exceptions\CouldNotGetGroupId;
/**
* @param string $filename
* @return int
* @throws CouldNotGetGroupId
@hyperized
hyperized / temperature.sh
Created November 25, 2020 11:55
Script to display temperature in the console
#!/usr/bin/env bash
# Run like: ./temperature.sh &
# Requires sensors and smartctl
while true; do
tput sc
tput cup 0 $(($(tput cols)-74))
cpu=$(sensors | grep temp1 | awk '{print $2}')