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. | |
* | |
* | |
* | |
* | |
* | |
* | |
* |
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 | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
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
# 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
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
proxy_cache_path /tmp/???_nginx_cache keys_zone=???:512m inactive=2w; | |
server { | |
listen 8081; | |
error_log /var/log/nginx/???.error.log error; | |
access_log /var/log/nginx/???.access.log; | |
root /apps/???/current/public; | |
passenger_enabled on; |
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
require 'radiustar' | |
module Radiustar | |
class Packet | |
def xor_str(str1, str2) | |
bstr1 = str1.unpack('C*') | |
bstr2 = str2.unpack('C*') | |
bstr1.zip(bstr2).map {|b1, b2| b1 ^ b2}.pack('C*') |
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 { |
NewerOlder