This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PAGE=$( wget -qO- --post-data="shop=5742011_923%2C1979335517_923%2C1262625646_923&order_number=$1" https://pickpoint.ru/monitoring/msearch.php ) | |
echo "$PAGE" | sed -n 's#.*\(Текущий статус :[^<]*\).*#\1#p' | |
PARAMS=$(echo "$PAGE" | sed -n 's#.*onclick="monitoring.show_history("\([0-9]*\)", "\([0-9]*\)".*#id=\1\&owner_id=\2#p') | |
wget -qO- "https://pickpoint.ru/monitoring/mhistory.php?$PARAMS" | sed -n 's#.*<tr><td>\([^<]*\)</td><td>\([^<][^<]*\)</td></tr>.*#\1 — \2\n#gp' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstring> | |
#include <unordered_map> | |
#include <memory> | |
#include <boost/unordered_map.hpp> | |
#define FUSE_USE_VERSION 26 | |
#define _FILE_OFFSET_BITS 64 | |
#include <fuse.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DISPLAY=:0 | |
MAIN=DVI-D-0 | |
TV=HDMI-0 | |
if xrandr --listactivemonitors | grep -q "$MAIN" | |
then | |
xrandr --output "$MAIN" --off | |
xrandr --output "$TV" --auto | |
else | |
xrandr --output "$TV" --off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make sure to enable nvidia-xconfig --cool-bits=4 | |
# nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan-0]/GPUTargetFanSpeed=5" | |
#[ $( pgrep -c FanCurveScript ) -lt 2 ] || exit 1 # already running | |
newfanspeed="0" | |
while true | |
do | |
gputemp=$(nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits) |
OlderNewer