Skip to content

Instantly share code, notes, and snippets.

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

Alex Babrykovich CAMOBAP

🏠
Working from home
View GitHub Profile
@CAMOBAP
CAMOBAP / youtube-dl-fragment.sh
Last active April 3, 2024 11:36
Update to support ffmpeg 6.1.1
#!/usr/bin/env bash
#
# Input inteface
#
YOUTUBE_VID_ID=""
DURATION=""
START_TIME="0:00"
OUTPUT="output.mp4"
include(default)
standalone_toolchain=/opt/android-ndk-toolchains/arm-27
ndk_home=/opt/android-ndk
api_level=27
target_host=arm-linux-androideabi
cc_compiler=clang
cxx_compiler=clang++
target_specific_flags=-mfpu=neon
@CAMOBAP
CAMOBAP / xgimi-elfin-dissasembly.md
Last active August 12, 2023 12:31
XGIMI Elfin Dissasembly
  1. Flip your projector
  2. Unscrew 2 legs
  3. Rotate black part
  4. Unscrew 6 screws (2 in the middle and 4 on corners)
  5. Take a platic card and move it though perimether of bottom part

2023-08-12 14 15 08 2023-08-12 14 15 23 2023-08-12 14 15 27 2023-08-12 14 15 33

@CAMOBAP
CAMOBAP / init.gradle
Created October 9, 2020 12:26
Gradle RAMdisk ~/.gradle/init.gradle
import org.gradle.internal.os.OperatingSystem
println "Loaded personal ~/.gradle/init.gradle"
final String RAMDiskName = "GradleRamDisk"
final long RAMDiskBytes = 4L * 1024L * 1024L * 1024L // 4Gb
interface RAMDiskManager {
boolean isReady();
String getPath();
#!/usr/bin/env python3
# https://www.bakonkurs.by/kenguru/primery/k2017-3.pdf - task 24
flovers = [6, 7, 8, 11]
print(flovers)
while flovers.count(0) < 2:
mi = flovers.index(min(flovers))
for i, v in enumerate(flovers):
@CAMOBAP
CAMOBAP / conan_install.cmake
Created December 23, 2021 07:30
Conan install helper function
function(conan_install conan_file host_profile)
# download helper conan.cmake
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
file(
DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/v0.16.1/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake"
EXPECTED_HASH SHA256=396e16d0f5eabdc6a14afddbcfff62a54a7ee75c6da23f32f7a31bc85db23484
TLS_VERIFY ON)
endif()
// https://prisoners.spring96.org/ru/table
(function(month) {
// drop header
$('.navbar').remove();
$('h2.mb-5').remove();
$('#table_length').remove();
$('#table_filter').remove();
// select month
$('select').first().val(month).change();
$('tr')[1].remove();
# Create 'alias' for FindXXX.cmake script
# Used to not change naming in existing scripts
function(alias_package source_package_dir source_package_name target_package_name)
set (source_find "${source_package_dir}/Find${source_package_name}.cmake")
if (NOT EXISTS ${source_find})
message(WARNING "Skip aliasing because ${source_find} not exists")
return()
endif()
file(READ ${source_find} find_source_package_cmake_script)
class b10Extension {
String sdk
String authorp12
String storepass
String cskpass
String deviceHost
String devicePass
String apk2bar
}
/**
* Prerequisites:
* 1. Place glslangValidator binaries to ${project.rootProject.projectDir}/tools,
* can be taken from https://github.com/floooh/oryol/tree/master/tools
* 2. By default this plugin look for config in path
* ${project.rootProject.projectDir}/config/quality/glslangValidator.conf
*/
class glslExtension {
String src