Skip to content

Instantly share code, notes, and snippets.

View facuescobar's full-sized avatar

Facu Escobar facuescobar

View GitHub Profile
@facuescobar
facuescobar / xCode-project-v2
Created May 22, 2018 14:25
xCode-project-v2
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
@facuescobar
facuescobar / ** BUILD FAILED ** react-native-pdf-view
Created June 12, 2017 22:05
** BUILD FAILED ** react-native-pdf-view
➜ app-mobile git:(BM-751) ✗ rnios
Scanning 636 folders for symlinks in /Users/myuser/dev/comp/app-mobile/node_modules (5ms)
Found Xcode project myapp.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.2)...
Building using "xcodebuild -project myapp.xcodeproj -configuration Debug -scheme myapp -destination id=7ABCD8A2-EB9F-48CC-A40C-245CB0083F3F -derivedDataPath build"
User defaults from command line:
IDEDerivedDataPathOverride = /Users/myuser/dev/comp/app-mobile/ios/build
There's a bug when a user send a bunk note using Bunk Reply Stationery, WEB and MOBILE apps.
With Basic bundle, seems to be working correctly, but it doesn't seem to be working corretly with PLUS and MAX bundles
PLUS Bundle:
User json data has: "bunkreply_stationery": true,
WebApp Flow:
Bunk Note: 1 Credits
Bunk Reply Stationery: 2 Credits
---
isconnecting from rebelmouse@wfe-test2... done.
[localhost] local: sudo -H -u deploys_roar /bin/bash -c "/home/deploys_roar/live-test.sh findmypast ."
Starting sanity check...
Checking www.rebelmouse.com .... OK
Checking www.cloudinsights.com .... OK
Checking www.thedodo.com .... OK
Checking www.thesnug.com .... OK
Checking www.weedhorn.com .... OK
Checking www.theoutfit.com .... OK
Checking connect.powertofly.com .... OK
@facuescobar
facuescobar / load_skeleton_for_section_as_frontpage
Created October 6, 2016 15:37
load_skeleton_for_section_as_frontpage module
@handlers.register(condition=lambda obj: obj.env.site.extra.get('use_section_as_homepage') and obj.env.page_type == page_types.FRONTPAGE)
def load_skeleton_for_section_as_frontpage(self):
subpage_template_name = None
for subpage in Subpages.get_subpages(self.env.site.id):
if subpage.get('is_homepage', False):
subpage_template_name = u'section_{}.xml'.format(subpage['url'].lower())
break
if subpage_template_name:
try:
(rebelmouse)escobar@beta1:~/rebelmouse$ deploy-roar unitedhub
[localhost:8022] Executing task 'prod'
[localhost:8022] Executing task 'deploy_roar'
[localhost] local: ls -1 ./engine/
[localhost] local: hostname
beta1
[localhost] local: sudo -H -u deploys_roar /bin/bash -c "id"
uid=1104(deploys_roar) gid=1104(deploys_roar) groups=1104(deploys_roar)
[localhost] local: test -f /tmp/deploy2.lock && echo True || echo False
[localhost] local: test -f /tmp/rebelmouse2.lock && echo True || echo False
(rebelmouse)escobar@beta1:~/rebelmouse$ git commit -a
checking file community/admin.py
checking file community/dynamic_content/render_handlers/bootstrap.py
checking file community/dynamic_content/skeleton.py
checking file community/dynamic_content/tests/test_render_handlers/bootstrap/test_posts.py
checking file community/orm.py
checking file community/views/page_not_found.py
checking file discovery/models.py
checking file engine/core/services/logger/__init__.py
checking file engine/lot18/engine_settings.py
(rebelmouse)escobar@beta1:~/rebelmouse$ python manage.py test cta/polls/tests/
nosetests --verbosity 1 cta/polls/tests/
flushing redis dev keys for social_stats_queue (1035)
flushing redis dev keys for daily_stats (1026)
flushing redis dev keys for post_counters (1028)
flushing redis dev keys for river_post_being_in_stage (1049)
flushing redis dev keys for likes (1030)
flushing redis dev keys for registration (1001)
flushing redis dev keys for subpage_frozen_posts (1024)
flushing redis dev keys for worker_dupes_cache (1066)
(rebelmouse)escobar@beta1:~/rebelmouse$ prodtest
[localhost:8022] Executing task 'deploy_prodtest'
[localhost] local: hostname
beta1
[localhost] local: sudo -H -u deploys_debug /bin/bash -c "id"
uid=1039(deploys_debug) gid=1025(deploys_debug) groups=1025(deploys_debug)
[localhost] local: grep -q escobar /home/deploys_debug/prodtest.conf
[localhost] local: grep escobar /home/deploys_debug/prodtest.conf | cut -d'|' -f4
[localhost] local: grep rebelmouse@wfe-prod-test7:rebelmouse@wfecache-prod-test7 /home/deploys_debug/prodtest.conf | cut -d'|' -f1
[localhost] local: test -f /tmp/rebelmouse-prodtest.lock && echo True || echo False
(rebelmouse)escobar@beta1:~/rebelmouse$ deploy-roar flonasespring
[localhost:8022] Executing task 'prod'
[localhost:8022] Executing task 'deploy_roar'
[localhost] local: ls -1 ./engine/
[localhost] local: hostname
beta1
[localhost] local: test -f /tmp/deploy2.lock && echo True || echo False
[localhost] local: test -f /tmp/rebelmouse2.lock && echo True || echo False
False
[localhost] local: echo -n escobar > /tmp/rebelmouse2.lock