Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

maxd

🏠
Working from home
  • Amsterdam, Netherlands
View GitHub Profile
View gist:91106df5da6b59feb1d8e0802578d8a8
# required installation of realpath
ROOT_PATH=$(realpath "$(dirname ${0})/../")
ROOT_PATH=$(cd `dirname "$0"` && cd .. && pwd)
@maxd
maxd / gist:1164357adbc9dcecffbfa2311d9dc5db
Created Dec 13, 2020
Uber 3.434.10005.iap (Helix.app): List of bundles
View gist:1164357adbc9dcecffbfa2311d9dc5db
Accelerators-Localizations-Helix.bundle
AddressEntryAccessories-Localizations-Helix.bundle
AudioRecording-Localizations-Helix.bundle
AuditRider-Localizations-Helix.bundle
AugmentedReality-Localizations-Helix.bundle
AugmentedRealityRider-Localizations-Helix.bundle
Authentication-Localizations-Helix.bundle
AuthenticationRider-Localizations-Helix.bundle
BiometricsVerification-Localizations-Helix.bundle
BugReporter-Localizations-Helix.bundle
@maxd
maxd / monitoring_output.txt
Created Oct 16, 2020
Monitoring output for https://github.com/espressif/esp-idf/issues/5980 with ESP-IDF from release/4.1 branch
View monitoring_output.txt
➜ stack_trace_fault git:(master) ✗ idf.py reconfigure build
Executing action: reconfigure
Running cmake in directory /Users/mdobryakov/Projects/my/AGV/experiments/stack_trace_fault/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /Users/mdobryakov/Projects/my/AGV/experiments/stack_trace_fault"...
Warn about uninitialized values.
-- Found Git: /usr/local/bin/git (found version "2.26.0")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/mdobryakov/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
View compare_classes.kt
import kotlin.reflect.KClass
inline operator fun <reified L : Any, reified R : Any> KClass<L>.compareTo(other: KClass<R>): Int {
return if (this === other) {
0
} else if (this.java.isAssignableFrom(other.java)) {
-1
} else if (other.java.isAssignableFrom(this.java)) {
1
} else {
View app-logrotate.conf
/apps/*/current/log/*.log {
daily
missingok
rotate 14
compress
delaycompress
notifempty
copytruncate
create 640 deployer deployer
su deployer deployer
View append_additional_url_params.rb
def append_additional_url_params(url)
uri = URI(url)
params = URI.decode_www_form(uri.query || '')
params += additional_url_params.to_a
uri.query = URI.encode_www_form(params).to_s
uri.to_s
end
@maxd
maxd / buildagent
Last active Aug 29, 2015
Startup script for TeamCity Build Agent (put it to /etc/init.d/buildagent)
View buildagent
#!/bin/sh
# /etc/init.d/buildagent - Startup script for TeamCity Build Agent
#
#
# Register the startup script to run automatically:
#
# sudo update-rc.d buildagent defaults
#
@maxd
maxd / teamcity
Last active Nov 11, 2021
Startup script for TeamCity (put it to /etc/init.d/teamcity)
View teamcity
#!/bin/sh
# /etc/init.d/teamcity - Startup script for TeamCity
#
#
# Register the startup script to run automatically:
#
# sudo update-rc.d teamcity defaults
#
@maxd
maxd / db.1.rake
Created Oct 28, 2014
Rake task for drop active connections to PostgreSQL database
View db.1.rake
namespace :db do
namespace :drop do
task connections: :environment do
begin
database = ActiveRecord::Base.connection.current_database
ActiveRecord::Base.connection.execute(<<-SQL)
SELECT pg_terminate_backend(pg_stat_activity.pid)
FROM pg_stat_activity
WHERE pg_stat_activity.datname = '#{database}' AND pid <> pg_backend_pid();
SQL
@maxd
maxd / modena.css
Last active Dec 29, 2021
modena.css from JDK 10.0.1
View modena.css
/*
* Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*