Skip to content

Instantly share code, notes, and snippets.

View Frodox's full-sized avatar
🎯
Focusing

Vitaly Rybnikov Frodox

🎯
Focusing
View GitHub Profile

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

@int128
int128 / README.md
Last active April 12, 2025 13:02
Example of Envoy TCP Proxy
@f41gh7
f41gh7 / victoria_metrics_push_gw.py
Created January 17, 2021 02:08
VictoriaMetrics as push gateway.
from prometheus_client import Counter, start_http_server
from threading import Thread
import requests as re
import time
JOB_NAME = 'test'
INSTANCE = 'localhost'
def scrape_and_send(local_url: str, vm_url: str, scrape_interval: int):
@cronfy
cronfy / download-getcourse-video.sh
Created November 14, 2020 16:49
Download getcourse video
#!/usr/bin/env bash
set -euo pipefail
function failExit() {
local msg="$1"
echo "FAIL: $msg" >&2
exit 1
}
@aalexeev239
aalexeev239 / Readme.md
Last active July 9, 2021 15:56
GIT links

Git links

⭐⭐ firstaidgit - Коллекция часто задаваемых вопросов по Git с возможностью поиска

⭐⭐⭐ git - the simple guide - простое руководство по работе с git. Ничего сложного ;)

⭐⭐ Git How To - еще руководство

Resources to learn Git - от гитхаба

@satmandu
satmandu / make_current_arm64_rpi_kernel_debs.sh
Last active September 25, 2024 03:44
Make arm64 deb packages for the offical Raspberry Pi Foundation arm64 kernels, tested with ubuntu 23.04
#!/bin/bash -x
# make_arm64_rpi_kernel_debs.sh
# Builds arm64 debian packages from the CURRENT rpi firmware repository kernel which is installed by:
# sudo rpi-update
# This runs on an arm64 host with arm64 compilation tools...
# or with some sort of cross-compilation setup.
# Debs are put in $workdir/build
#
# This will NOT work in Raspbian unless you have an arm64 compilation
# environment setup. Appears to work on
@patsevanton
patsevanton / Тестирование ролей ansible.txt
Created September 24, 2019 07:02
Тестирование ролей ansible
Lev Goncharov:
люди добрые. расскажите кто как тестирует свои роли в ansible?
Я пробовал разные подходы
- при тестирование развертывания SDS (software-defined storage): gitlab / vagrant / ruby / docker / bash / ansible / serverspec / virtualbox ~60 фактически на интеграционные тесты развертывания.
- test Ansible roles: ansible / hyper-v / jenkins / testkitchen / inspec ~40-70 минут для 25-35 ролей.
- test Ansible roles: ansible / docker / jenkins / molecule / testinfa ~20-25 минут для 50-55 ролей.
С моей колокльни это все медленно. И пришел к пирамиде тестирования инфраструктуры
static - shellcheck/ansible lint
@Mykolaichenko
Mykolaichenko / prometheus-envoy.yml
Created January 3, 2019 10:51
Prometheus Envoy Consul relabel_configs
- job_name: "envoy-proxy-service"
metrics_path: "/stats/prometheus"
consul_sd_configs:
- server: "localhost:8500"
scheme: "http"
services:
- envoy-client
- envoy-aws-server
- envoy-sj-server
@lananovikova10
lananovikova10 / highload++.md
Last active September 18, 2019 07:24
Notes from Highload++ 2018

Управление знаниями по принципам DevOps

Управление знаниями

Управлять знаниями = Идентифицировать артефакты знания - логировать критические знания и навыки, фасилитировать обмен и находить узкие места

Зачем (с точки зрения проектных команд)?

  1. Risk-management
  2. Онбординг новичков и ротация
  3. Профессиональный рост внутри команды, компании
  4. Формирование культуры - прозрачность
@primaryobjects
primaryobjects / m3u8.md
Last active May 7, 2025 07:45
How to download m3u8 and ts video movie streams.

m3u8 Downloading

  1. Open Chrome Developer tools and click the Network tab.
  2. Navigate to the page with the video and get it to start playing.
  3. Filter the list of files to "m3u8".
  4. Find master.m3u8 or index.m3u8 and click on it.
  5. Save the file to disk and look inside it.
  6. If the file contains a single m3u8 master url, copy that one instead.
  7. Run the program m3u8x.
  8. Paste the same m3u8 url in both textboxes (URL and Quality URL) and click "Headers" and set the referral url and user-agent from the request as found in Chrome.