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
# Contributor: Daniel O'Neill <[email protected]> | |
# Maintainer: Daniel O'Neill <[email protected]> | |
pkgname=kdekbtool | |
pkgver=1.0 | |
pkgrel=0 | |
pkgdesc="CLI Keyboard tool for KDE Plasma" | |
url="https://gist.github.com/danieloneill/8ccfab375a8819c61adb5883a0cd7c97" | |
arch="all" | |
license="GPL-3.0-only" | |
depends="qt6-qtbase" |
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/bash | |
# It's expected that you'll have the following commands/programs in your $PATH: | |
# - base64 | |
# - basename | |
# - cat | |
# - cp | |
# - echo | |
# - mktemp | |
# - printf |
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 | |
if [ $# -eq 0 ] | |
then | |
echo "Usage: $0 <filepath.png>" | |
exit 1 | |
fi | |
echo -n $'\033[0C\033]1337;File=inline=1:'; cat $1 | base64 -w 0; echo $'\007' |
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 checksum(gtin) | |
{ | |
const len = gtin.length; | |
// Split the code into an array of characters | |
// then map that into an array of numbers: | |
const chs = gtin.split('').map( (e) => parseInt(e) ); | |
// Since this is just a GTIN-14 example: | |
if( 14 === len ) |
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 'polyjank.js' as PJ |
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
Just a little keyboard layout tool for KDE Plasma. | |
I wrote this so I could swap between Dvorak and US when gaming. It isn't strictly necessary since | |
all my games run on Proton which renders via Xwayland (which you change the layout using setxkbmap), | |
but I like consistency, so I swap the layout for both Wayland and Xwayland at the same time. | |
Steam -> Launch Options: | |
setxkbmap us; kdekbtool -i 1; %command%; setxkbmap dvorak; kdekbtool -i 0 | |
Requires Qt, written/tested with Qt 6.5.2 and Plasma 5.27.5 (Qt 5.15.9) on Fedora 38 |
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
all: | |
/usr/local/cuda-12.0/bin/nvcc -o readbmp readbmp.cu sdltest.cu -g `sdl2-config --cflags --libs` -lcuda |
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
from TTS.api import TTS | |
import pysbd | |
import os | |
import time | |
from datetime import timedelta | |
print(TTS.list_models()) | |
model_name = "tts_models/multilingual/multi-dataset/your_tts" | |
sample_wav = "samples_of_voice_to_copy.wav" |
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
*** loader.c.orig 2023-01-04 01:40:00.048623579 -0800 | |
--- loader.c 2023-01-04 04:16:01.124146104 -0800 | |
*************** static NTSTATUS load_native_dll( LPCWSTR | |
*** 2604,2611 **** | |
{ | |
void *module = NULL; | |
SIZE_T len = 0; | |
NTSTATUS status = NtMapViewOfSection( mapping, NtCurrentProcess(), &module, 0, 0, NULL, &len, | |
! ViewShare, 0, PAGE_EXECUTE_READ ); | |
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 QtQuick | |
import QtQuick.Controls | |
import QtQuick.Controls.Material | |
import QtQuick.Layouts | |
ColumnLayout { | |
id: calendar | |
property alias day: gridMonth.selectedDay | |
property alias month: comboMonth.currentIndex | |
property alias year: spinYear.value |
NewerOlder