Skip to content

Instantly share code, notes, and snippets.

View fshp's full-sized avatar
🏠
Working from home

Maxim Moseychuk fshp

🏠
Working from home
View GitHub Profile
@fshp
fshp / Makefile
Created March 31, 2023 23:09
obs streamfx macos build
OBS_DEBS := third-party/obs-deps
OBS_DEBS_URL := "https://github.com/obsproject/obs-deps/releases/download/2023-03-30/macos-deps-2023-03-30-x86_64.tar.xz"
OBS_DEBS_QT6 := third-party/obs-deps-qt6
OBS_DEBS_QT6_URL := "https://github.com/obsproject/obs-deps/releases/download/2023-03-30/macos-deps-qt6-2023-03-30-x86_64.tar.xz"
FUCKING_PATCH := "H4sICK9fJ2QCAzAwMDEtZnVja2luZy1tYWNvcy5wYXRjaAC1Ve9vm0gQ/Zz9K0ZuPyRHoLsG/+JOp3AEq7SxccGNLjqd0AKDQ2MDgnXlKNf//RZj69zEipwPt7LN7PDmeXnzPB5XxQpYN+7pxiBlfNTjg5T2h7Qb9Zg+SBPKkt4gSYb6CNkQJkUOAZbABkCpuX1Bl1JGxpLGhAnfZCsJqvExvl8/wG+rYnWFG54L1HD9O7nmAk0IuLgEBlZZydquDpSZum4yBgrVKSXBOvqGsTDhr5k1tz/+Dek6fsjyBax4XNSEqKpKwJ7wB7zJalFrYiPg+PoHhqDuFoG6WFcxfsA8LhKs6n2gpumqxIUWl+W2pAuK8hJ8z/NkeRBs4XuwDmm2xBpieXOBySUYkOU1ViIr8vpcubiU50hwie1evSAkydJUHm2RCeAfnj1L9CxBsjzBDfRZv4vxUNMGesooRsAo7RtGI8cLDqIoykueqytQ2cgYXTIDlG3QB5mrUYSCVwt5KauibI6N9fn7p5nvfXLseTi1Js4PkLuZ489dJyBw5k5mnj8PZ74zdv+ETofABQGivpPeEFst4LvUSj4tUd/Mrp5NLPujF9reRPbf/cO9ced34a3jB643hfdP+zCcWJ88/4d2mHGnMvMfw1ffd6bzg9r9l+4yDTTw3k
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@fshp
fshp / sberbank.rb
Last active January 4, 2017 20:11 — forked from maliqq/sberbank.rb
текстовая выписка сбербанка -> csv
# encoding: utf-8
def parse_date(s)
map = {'ЯНВ' => 1, 'ФЕВ' => 2, 'МАР' => 3, 'АПР' => 4, 'МАЙ' => 5, 'ИЮН' => 6, 'ИЮЛ' => 7, 'АВГ' => 8, 'СЕН' => 9, 'ОКТ' => 10, 'НОЯ' => 11, 'ДЕК' => 12}
s =~ /^(\d+)(.+?)(\d+)$/
Date.new($3.to_i + 2000, map[$2], $1.to_i)
end
def parse_date2(s, s2)
map = {'ЯНВ' => 1, 'ФЕВ' => 2, 'МАР' => 3, 'АПР' => 4, 'МАЙ' => 5, 'ИЮН' => 6, 'ИЮЛ' => 7, 'АВГ' => 8, 'СЕН' => 9, 'ОКТ' => 10, 'НОЯ' => 11, 'ДЕК' => 12}
s =~ /^(\d+)(.+?)$/
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/animationsprite">
<animationsprite>
<xsl:for-each select="//frame">
<sprite>
<xsl:attribute name="start">
<xsl:text>0</xsl:text>