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
"LD_* scout runtime" information: | |
{ | |
"steam-runtime-system-info" : { | |
"version" : "0.20231107.1+srt1", | |
"path" : "/home/raghuram/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/bin/steam-runtime-system-info" | |
}, | |
"can-write-uinput" : true, | |
"steam-installation" : { | |
"path" : "/home/raghuram/.local/share/Steam", | |
"data_path" : "/home/raghuram/.local/share/Steam", |
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
Computer Information: | |
Manufacturer: ASUSTeK COMPUTER INC. | |
Model: ROG STRIX X570-E GAMING WIFI II | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 9 5950X 16-Core Processor | |
CPU Family: 0x19 |
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
import subprocess | |
import re | |
command = ['qdbus', 'org.kde.plasmashell', '/PlasmaShell', 'org.kde.PlasmaShell.evaluateScript'] | |
command.append(""" | |
var allDesktops = desktops(); | |
for (i=0;i<allDesktops.length;i++) | |
{ | |
d = allDesktops[i]; | |
d.wallpaperPlugin = "org.kde.image"; |
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
# This is the command to change the desktop background on KDE plasma | |
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript ' | |
var allDesktops = desktops(); | |
for (i=0;i<allDesktops.length;i++) | |
{ | |
d = allDesktops[i]; | |
d.wallpaperPlugin = "org.kde.image"; | |
d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General"); | |
d.writeConfig("Image", "file:///home/raghuram/Pictures/shrug.png") |
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
This gist was made for ... | |
We start by taking a random point A on the curve, and drawing a random line passing through it. | |
The line divides the curve into two parts. | |
Let’s name the parts R(for Red) and G(for Green). | |
As we rotate the line about A, the size of R and G changes. | |
R goes from 0 -> 1, while | |
G goes from 1 -> 0 | |
Thus, there must be some point where they are equal. We can say this because "area is continuous" under rotation. | |
R = G for some rotated line passing through A. |
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
sudo apt-get install htpdate | |
sudo crontab -e | |
#If the system asks for a choice of editor, choose nano. Its the simplest one. | |
#Copy paste the following line at the bottom of the file | |
* * * * * /usr/sbin/htpdate -s intranet.iitg.ernet.in | |
#Close the file by pressing CTRL+X. Press Y and then ENTER to save the file. |
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
Acquire::http::proxy “http://<user>:<pass>@<proxy>:<port>/”; | |
Acquire::https::proxy “http://<user>:<pass>@<proxy>:<port>/”; |