Skip to content

Instantly share code, notes, and snippets.

@dk0r
dk0r / Output from user_sync.py
Created August 31, 2020 17:46
ldap_sync.py Line-149: slack = mail.decode().split('@')[0]
2020-08-31 17:43:43,309 INFO oncall.metrics Loaded metrics handler dummy
2020-08-31 17:43:43,309 INFO oncall.metrics Loaded metrics handler dummy
2020-08-31 17:43:43,310 INFO root Starting user sync loop at 1598895823.3106189
2020-08-31 17:43:43,310 INFO root Starting user sync loop at 1598895823.3106189
2020-08-31 17:43:43,335 INFO root Loaded 1 entries from ldap.
2020-08-31 17:43:43,335 INFO root Loaded 1 entries from ldap.
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "/home/oncall/src/oncall/user_sync/ldap_sync.py", line 426, in main
sync(config, engine)
@dk0r
dk0r / gist:4d8a1b484ca8b12cf0643045b40c6333
Created August 31, 2020 17:40
Output from user_sync.py
root@ee24356c9381:/home/oncall/src/oncall/bin# ./user_sync.py /home/oncall/configs/config.yaml
2020-08-28 16:34:59,484 INFO oncall.metrics Loaded metrics handler dummy
2020-08-28 16:34:59,484 INFO oncall.metrics Loaded metrics handler dummy
2020-08-28 16:34:59,485 INFO root Starting user sync loop at 1598632499.4854853
2020-08-28 16:34:59,485 INFO root Starting user sync loop at 1598632499.4854853
2020-08-28 16:34:59,510 INFO root Loaded 0 entries from ldap.
2020-08-28 16:34:59,510 INFO root Loaded 0 entries from ldap.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/SQLAlchemy-1.3.18-py3.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1278, in _execute_context
cursor, statement, parameters, context
@dk0r
dk0r / config.yaml
Created August 27, 2020 17:59
oncall/configs/config.yaml
#######################
### Oncall-api settings
#######################
server:
host: 0.0.0.0
port: 8080
oncall_host: http://localhost:8080
metrics: dummy
db:
conn:
@dk0r
dk0r / README.md
Created August 25, 2020 13:05
Making Oncall v1.2.3 for python3
## Make Oncall v.1.2.3 on Ubuntu 18.04LTS
0. [Docker Image Preparation](#docker-image-preparation)
1. [Source Modifications](#source-modifications)
2. [Database Preparation](#hdatabase-preparation)
3. [Install Oncall](#install-oncall)
4. [Manually Start Oncall](#manually-start-oncall)
---
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@dk0r
dk0r / .hyper.js
Created July 23, 2018 15:52
Default hyper config + hyperTransparent (lines 8-12)
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
hyperTransparent: {
backgroundColor: '#4b4',
opacity: 0.2,
"dependencies": {
"apollo": "^0.2.2",
"apollo-client": "^1.9.2",
"date-fns": "^1.28.5",
"graphql-anywhere": "^3.1.0",
"graphql-tag": "^2.4.2",
"react": "16.0.0-alpha.12",
"react-apollo": "^1.4.15",
"react-native": "0.48.3",
"react-native-calendars": "^1.6.2",
@dk0r
dk0r / gist:3794b96fcd9e728ef75ef236cbc59592
Created November 2, 2017 22:22
react-native run-android
react-native run-android
Scanning folders for symlinks in /Users/admin/Workspace/test/node_modules (5ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72301Library
@dk0r
dk0r / gist:2aeb7489df00748aac0da8bd9c58e7e8
Created November 2, 2017 22:11
react-native run-ios
Scanning folders for symlinks in /Users/admin/Workspace/test/node_modules (5ms)
Found Xcode project renameTest.xcodeproj
We couldn't boot your defined simulator due to an already booted simulator. We are limited to one simulator launched at a time.
Launching iPhone 6 (iOS 10.3)...
Building using "xcodebuild -project renameTest.xcodeproj -configuration Debug -scheme renameTest -destination id=5075EBF6-E75D-4630-89DE-3693A41CA008 -derivedDataPath build"
User defaults from command line:
IDEDerivedDataPathOverride = /Users/admin/Workspace/test/ios/build