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
#!/usr/bin/env python | |
import sys, json | |
def is_rclf(data) -> bool: | |
return data.startswith("&rcl") | |
def load_rclf(data) -> object: | |
def read_string(line) -> (str, str): | |
string = "" |
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
[net] | |
git-fetch-with-cli = true | |
[source.crates-io] | |
registry = "https://github.com/rust-lang/crates.io-index" | |
[http] | |
proxy = "" |
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
#!/bin/bash | |
ROTATE_OLD=0 | |
rotate_screen () { | |
if [ "$1" == "$ROTATE_OLD" ]; then | |
return | |
fi | |
waydroid shell settings put system user_rotation $1 | |
echo $1 |
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
/* remove titlebar */ | |
@supports (grid-template-columns:subgrid) and (white-space-collapse:collapse) { | |
.visual-refresh .base_c48ade { | |
display: grid; | |
grid-template-columns: [start] min-content [guildsEnd] min-content [channelsEnd] 1fr [end]; | |
grid-template-rows: [titleBarEnd] min-content [noticeEnd] 1fr [end]; | |
grid-template-areas: | |
"guildsList notice notice" | |
"guildsList channelsList page"; |
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
package ru.themixray.config; | |
import org.yaml.snakeyaml.Yaml; | |
import java.io.*; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.HashMap; | |
import java.util.Map; |
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
{ | |
description = "Rust project"; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
rust-overlay.url = "github:oxalica/rust-overlay"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }: |
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
#include <netinet/in.h> | |
#include <string> | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <unistd.h> | |
#include <optional> | |
#include <vector> | |
class TcpStream { | |
private: |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Document</title> | |
<!-- <link href="style.css" rel="stylesheet"> --> | |
</head> | |
<body> | |
<!-- <script src="script.js"></script> --> |
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
#!/bin/sh | |
if [ "$(id -u)" -ne 0 ]; then sudo bash update-discord.sh >&2; exit 1; fi | |
rm -f -r -v void-packages | |
git clone https://github.com/void-linux/void-packages.git | |
chmod -R -v 777 "void-packages" | |
cd void-packages | |
sudo -u user ./xbps-src binary-bootstrap | |
echo XBPS_ALLOW_RESTRICTED=yes >> etc/conf | |
sudo -u user ./xbps-src pkg discord | |
xbps-install --repository hostdir/binpkgs/nonfree discord --yes |
NewerOlder