- ubuntu 22.04
- vivaldi browser
- telegram
This file has been truncated, but you can view the full file.
This file contains 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
import 'dayjs/locale/ru'; | |
import customParseFormat from 'dayjs/plugin/customParseFormat'; | |
import dayjs from 'dayjs'; | |
import dayOfYear from 'dayjs/plugin/dayOfYear'; | |
import devHelper from 'dayjs/plugin/devHelper'; | |
import duration from 'dayjs/plugin/duration'; | |
import type { Duration } from 'dayjs/plugin/duration'; | |
import isoWeek from 'dayjs/plugin/isoWeek'; | |
import relativeTime from 'dayjs/plugin/relativeTime'; | |
import toObject from 'dayjs/plugin/toObject'; |
This file contains 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
# https://github.com/linux-thinkpad/tp_smapi |
This file contains 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
import dayjs from 'dayjs'; | |
import { types } from 'mobx-state-tree'; | |
export const DateTimeType = types.custom<string | dayjs.Dayjs, dayjs.Dayjs>({ | |
name: 'DateTime', | |
isTargetType(value) { | |
return dayjs.isDuration(value); | |
}, | |
getValidationMessage(value) { | |
if (dayjs(value).isValid()) return ''; |
This file contains 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
xrandr --listmonitors | |
xrandr --output DVI-I-2-1 --scale 2x2 --pos 0x0 --output eDP-1-1 --pos 640x2160 | |
#xrandr --output eDP-1-1 --primary --pos 640x2160 | |
#xrandr --output DVI-I-2-1 --scale 2x2 --pos 0x0 | |
#xrandr --output DVI-I-2-1 --scale 1x1 --pos 0x0 --output eDP-1-1 --pos 160x1080 | |
xrandr --listmonitors | |
xrandr --output eDP-1-1 --primary | |
xrandr --output DP-1.2 --right-of eDP-1-1 |
This file contains 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
grep "cpu MHz" /proc/cpuinfo | sed 's/-/ /g' | awk '{ print $4 '} | sed 's/\./ /' | awk '{ print $1 }' | tr '\n' ' ' | |
sensors | grep Core | sed 's/-/ /g' | awk '{ print $3 '} |
This file contains 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 | |
# Script to get all the PPA installed on a system | |
for APT in `find /etc/apt/ -name \*.list`; do | |
grep -Po "(?<=^deb\s).*?(?=#|$)" $APT | while read ENTRY ; do | |
HOST=`echo $ENTRY | cut -d/ -f3` | |
USER=`echo $ENTRY | cut -d/ -f4` | |
PPA=`echo $ENTRY | cut -d/ -f5` | |
#echo sudo apt-add-repository ppa:$USER/$PPA | |
if [ "ppa.launchpad.net" = "$HOST" ]; then | |
echo sudo apt-add-repository ppa:$USER/$PPA |
This file contains 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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains 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
[Desktop Entry] | |
Encoding=UTF-8 | |
Version=1.0 | |
Name=Telegram Desktop | |
Comment=Official desktop version of Telegram messaging app | |
Exec=telegram %u | |
Icon=telegram | |
Terminal=false | |
StartupWMClass=Telegram | |
Type=Application |
NewerOlder