Skip to content

Instantly share code, notes, and snippets.

View Keroosha's full-sized avatar
🔪
Spikes spikes spikes spikes

Kirill Poletaev Keroosha

🔪
Spikes spikes spikes spikes
View GitHub Profile
@Keroosha
Keroosha / glx-sm
Created August 2, 2022 19:39
glx with silicon moution integral graphics on mITX 8c
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Mesa/X.org (0xffffffff)
Device: llvmpipe (LLVM 9.0.1, 128 bits) (0xffffffff)
Version: 20.3.5
Accelerated: no
Video memory: 16008MB
Unified memory: no
#! /bin/bash
function process_cue () {
local FILEDIR=$(dirname "$1")
local FILENAME=$(basename "$1")
local FLAC_FILE="$FILEDIR/${FILENAME%.*}.flac"
local SPLIT_DIR="$FILEDIR/$FILENAME-split"
mkdir -p "$SPLIT_DIR" &&\
split2flac -o "$SPLIT_DIR" -of "@track @artist - @title.@ext" -cue "$1" -f "flac" "$FLAC_FILE"
static (string sql, DataParameter[] parameters) Build(FormattableString query)
{
var q = query.Format;
var args = new List<DataParameter>();
for (var c = 0; c < query.ArgumentCount; c++)
{
var name = ":__arg_" + c;
q = q.Replace($"{{{c}}}", name);
var arg = query.GetArgument(c);
q = q.Replace($"{{{c}:raw}}", arg.ToString());
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Serialization;
namespace ConsoleApp15
@Keroosha
Keroosha / telega-history-parser.cs
Created November 3, 2020 12:25 — forked from EgorBo/telega-history-parser.cs
telega-history-parser.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Newtonsoft.Json;
public class Message
{
public string type { get; set; }
public DateTime date { get; set; }
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace ConsoleApp1
{
#!/bin/bash
docker rm -f $(docker ps -a -q)
docker system prune -af
for mount in $(mount | grep tmpfs | grep '/var/lib/kubelet' | awk '{ print $3 }') /var/lib/kubelet /var/lib/rancher; do umount $mount; done
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
[generated bytecode for function: (0x12ac297e9bb1 <SharedFunctionInfo>)]
Parameter count 1
Register count 0
Frame size 0
0 E> 0x12ac297e9c7e @ 0 : 81 00 00 00 CreateClosure [0], [0], #0
10110 S> 0x12ac297e9c82 @ 4 : aa Return
Constant pool (size = 1)
Handler Table (size = 0)
Source Position Table (size = 8)
[generated bytecode for function: (0x12ac297e9be9 <SharedFunctionInfo>)]
@Keroosha
Keroosha / README.md
Created November 26, 2019 10:58 — forked from igrek8/README.md
knex.js typescrips migrations (fix the migration directory is corrupt)

TypeScript migrations for knex.js

Fix the migration directory is corrupt

Migrations will work in both production/development environments. You may also have declrations/source maps generated in the migrations directory and the migration source will skip them.