Skip to content

Instantly share code, notes, and snippets.

View emgiezet's full-sized avatar
:octocat:
Working from home

Max Małecki emgiezet

:octocat:
Working from home
View GitHub Profile
@emgiezet
emgiezet / radeon_gpu_teperature_logger.sh
Created November 24, 2012 20:55
radeon gpu teperature logger
#!/bin/bash
function console_mode
{
echo -e "\033[30;42mPress Ctrl-C to break ...\033[0m"
while true; do
get_gpu
## gpu usage
@emgiezet
emgiezet / gist:2115402
Created March 19, 2012 15:01
Finding count($variable) in the if statements in php code
ack-grep "(if\(([\w\s])?count\()(.*)(\))(([\w\s])?(>)[\w\s])[\d]([\w\s])?(\))"
@emgiezet
emgiezet / gist:2115262
Created March 19, 2012 14:57
Finding variables in the twig templates inside the { trans } blocks
ack-grep '({ trans }+(.*)?)+{{ (.*) }}+((.*)?{ endtrans })' --type-set twig=.twig