#include <stdio.h>
#include <wchar.h>
#include <locale.h>
int main() {
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 json | |
import os | |
import requests | |
import re | |
import sys | |
import traceback | |
HREF_RE = re.compile(r'href="([^"]+)"') | |
with open("releases.json") as f: |
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 python | |
# Code modified from bcc-tools cachetop | |
from __future__ import absolute_import | |
from __future__ import division | |
# Do not import unicode_literals until #623 is fixed | |
# from __future__ import unicode_literals | |
from __future__ import print_function | |
from bcc import BPF |
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 gi | |
gi.require_version("Gio", "2.0") | |
from gi.repository import Gio | |
def main(): | |
# Retrieve all applications using g_app_info_get_all() | |
app_infos = Gio.AppInfo.get_all() | |
# Print details for each application | |
for app_info in app_infos: |
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
# Converted from https://musescore.com/user/76963843/scores/19868371 | |
60 0 | |
8 4 2 | |
6 4 2 | |
3 5 4 | |
3 5 4 | |
1 5 4 | |
4 5 4 | |
3 5 4 | |
1 5 4 |
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
[package] | |
name = "keyboardsim" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
ashpd = "0.10.2" | |
keycode = "0.4.0" | |
tokio = { version = "1.41.1", features = ["full"] } |
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
// Modules to control application life and create native browser window | |
const { app, BrowserWindow, Notification, Tray, Menu } = require('electron') | |
const path = require('node:path') | |
let tray; | |
let mainWindow; | |
function createWindow () { | |
// Create the browser window. | |
mainWindow = new BrowserWindow({ |
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
// CollectionDowngrader.LazerSchema from https://github.com/ookiineko/CollectionDowngrader/tree/main/LazerSchema | |
using CollectionDowngrader.LazerSchema; | |
using Realms; | |
// Console.WriteLine($"cwd: {Environment.CurrentDirectory}"); | |
const int LazerSchemaVersion = 41; | |
string realmFile = Path.GetFullPath("./client.realm"); | |
RealmConfiguration config = new(realmFile) | |
{ | |
IsReadOnly = true, |
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 -e | |
version=2.10.0 | |
rm -f autocorrect-linux-amd64.tar.gz.sha256 | |
wget https://github.com/huacnlee/autocorrect/releases/download/v$version/autocorrect-linux-amd64.tar.gz.sha256 | |
rm -f autocorrect-linux-arm64.tar.gz.sha256 | |
wget https://github.com/huacnlee/autocorrect/releases/download/v$version/autocorrect-linux-arm64.tar.gz.sha256 | |
sed -i "s/^pkgver=.*/pkgver=$version/" PKGBUILD | |
sed -i "s/^sha256sums_x86_64=.*/sha256sums_x86_64=('$(cat autocorrect-linux-amd64.tar.gz.sha256)')/" PKGBUILD | |
sed -i "s/^sha256sums_aarch64=.*/sha256sums_aarch64=('$(cat autocorrect-linux-arm64.tar.gz.sha256)')/" PKGBUILD |
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
# md_seq_show | |
- printf("%s: %sactive", dev, active ? "" : "in") | |
- if active | |
- if rdonly then printf(" (read-only)") | |
- if autoread then printf(" (auto-read-only)") | |
- printf(" %s", raidtype) | |
- for each dev | |
- printf(" %pg[%d]", dev, nr) | |
- * NOTE: %pg is a special format that prints the device name | |
- if writemostly then printf("(W)") |
NewerOlder