This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# required installation of realpath | |
ROOT_PATH=$(realpath "$(dirname ${0})/../") | |
ROOT_PATH=$(cd `dirname "$0"` && cd .. && pwd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/apps/*/current/log/*.log { | |
daily | |
missingok | |
rotate 14 | |
compress | |
delaycompress | |
notifempty | |
copytruncate | |
create 640 deployer deployer | |
su deployer deployer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# /etc/init.d/teamcity - Startup script for TeamCity | |
# | |
# | |
# Register the startup script to run automatically: | |
# | |
# sudo update-rc.d teamcity defaults | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved. | |
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. | |
* | |
* | |
* | |
* | |
* | |
* | |
* |
NewerOlder