Skip to content

Instantly share code, notes, and snippets.

@rromanchuk
rromanchuk / fps_test_1.txt
Last active April 4, 2020 18:57
4096x2304 test_flight_c4.fdr X-Plane 11.50b1
FRAMERATE TEST: time=92.7, frames=8463, fps=91.30
GPU LOAD: time=92.7, wait=8.2, load=8.8%
209.170.241.165
@rromanchuk
rromanchuk / gist:7bfa5b9446467db3b933347a685db9ee
Last active November 10, 2019 06:00
X-Plane 11 mac.xpl catalina fix
xattr -d com.apple.quarantine [install dir]/X-Plane\ 11/Resources/plugins/PilotEdge/
fdfs
@rromanchuk
rromanchuk / .ruby-version
Created February 18, 2019 06:12
chruby: unknown Ruby: ruby-2.6.1
2.6.1
@rromanchuk
rromanchuk / after-cleanup-tasks.yml
Created February 8, 2019 00:20
Example ansible deploy with webpacker
- name: Bundle install with --deploy
bundler:
state: present
deployment_mode: yes
chdir: "{{ ansistrano_release_path.stdout }}"
executable: /home/ubuntu/.rbenv/shims/bundle
- name: Running pending migrations
shell: $HOME/.rbenv/bin/rbenv exec bundle exec rake db:migrate
run_once: true
@rromanchuk
rromanchuk / protocol.rb
Last active January 29, 2019 17:19
Ruby 2.6.0 monkey patch for regression in Net::HTTP::Post.new
# frozen_string_literal: true
#
# = net/protocol.rb
#
#--
# Copyright (c) 1999-2004 Yukihiro Matsumoto
# Copyright (c) 1999-2004 Minero Aoki
#
# written and maintained by Minero Aoki <aamine@loveruby.net>
#
@rromanchuk
rromanchuk / after-cleanup-tasks.yml
Created July 22, 2018 01:06
Rollbar deployment with ansistrano and rollbar_deployment ansible module
- name: "Rollbar deployment notification"
rollbar_deployment:
token: "{{rollbar_token}}"
environment: production
revision: "{{ ansistrano_git_result.after }}"
user: "" # Somehow pull this from ansible awx/tower that launched the job?
rollbar_user: ""
comment: "" # hmmm maybe save result of the git log command?
// https://stackoverflow.com/questions/49771555/firebase-auth-error-data-parameter-is-nil-calling-getidtokenforcingrefresh
// https://github.com/firebase/firebase-ios-sdk/issues/1072
// https://github.com/firebase/firebase-ios-sdk/issues/1140
func applicationDidBecomeActive(_ application: UIApplication) {
if let currentUser = Auth.auth().currentUser {
currentUser.getIDToken { (token, error) in
}
}
@rromanchuk
rromanchuk / bitwalletrecover.py
Created December 19, 2017 21:16 — forked from msm595/bitwalletrecover.py
bitwalletrecover.py - recover compressed private keys from your bitcoin wallet. Requires python3, pycoin (https://pypi.python.org/pypi/pycoin), and base58 (https://pypi.python.org/pypi/base58).
import re
import hashlib
import base58
from pycoin.ecdsa import generator_secp256k1, public_pair_for_secret_exponent
def bytetohex(byteStr):
return ''.join( [ "%02X" % x for x in byteStr ] ).strip()
litecoin = [b"\x30", b"\xb0"]
bitcoin = [b"\x00", b"\x80"]