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
#!/usr/bin/fish | |
# Append this lines to ~/.config/fish/config.fish for automatic start: | |
# ``` | |
# if functions -q konsole_semantic_integration | |
# konsole_semantic_integration | |
# end | |
# ``` | |
function konsole_semantic_integration |
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
// Start with `QT_LOGGING_RULES="qml.debug=true" qmlscene-qt5 test-kirigami2.qml` | |
import org.kde.kirigami 2.20 as Kirigami | |
Kirigami.ApplicationWindow { | |
id: root | |
width: 500 | |
height: 400 |
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
#!/usr/bin/python3 | |
""" | |
Copyright 2021 Mygod | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
#!/usr/bin/bash | |
sudo dnf --assumeyes | |
--setopt=install_weak_deps=False \ | |
--installroot=$(readlink -f ./chroot) \ | |
--releasever=$(python3 -c 'import dnf; b=dnf.dnf.Base(); print(b.conf.releasever)') \ | |
install dnf |
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
#NoEnv | |
#SingleInstance force | |
SendMode Input | |
CapsLock::SwitchNextLayout() | |
+CapsLock::SetCapsLockState % !GetKeyState("CapsLock", "T") | |
;SetCapsLockState, AlwaysOff | |
SwitchNextLayout() |
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
[skin] | |
description = My Dark skin | |
[Lines] | |
horiz = ─ | |
vert = │ | |
lefttop = ┌ | |
righttop = ┐ | |
leftbottom = └ | |
rightbottom = ┘ |
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
function findChildByClass(el, clazz, deep) { | |
let children = Array.isArray(el) ? el : Array.from(el.childNodes); | |
if (deep === true) { | |
for (let i = 0; i < children.length; ++i) { | |
let res = findChildByClass(children[i], clazz, true); | |
if (res) return res; | |
} | |
} | |
return children.find(i => Array.from(i.classList || []).indexOf(clazz) != -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
desktops().forEach((desktop, index) => { | |
desktop.currentConfigGroup = ['Wallpaper', desktop.wallpaperPlugin, 'General']; | |
if (desktop.screen != -1) { | |
let image = desktop.readConfig('Image'); | |
print(`Desktop ${index}: ${image}\n`); | |
} | |
}); |
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
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <stdio.h> | |
#include <string.h> |
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
#!/usr/bin/env ruby | |
require 'net/http' | |
COLORS_RE = /\e\[([;\d]+)?m/.freeze | |
def strip_colors(str) | |
str.gsub(COLORS_RE, '') | |
end | |
params = ARGV[0] || '' |
NewerOlder