Skip to content

Instantly share code, notes, and snippets.

View krishraghuram's full-sized avatar

Raghuram Krishnaswami krishraghuram

  • Guwahati
View GitHub Profile
"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",
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
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";
@krishraghuram
krishraghuram / change_desktop_background.txt
Last active April 24, 2021 16:27
Command to change wallpaper in KDE Plasma
# 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 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.
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.
Acquire::http::proxy “http://<user>:<pass>@<proxy>:<port>/”; 
Acquire::https::proxy “http://<user>:<pass>@<proxy>:<port>/”;