This is a test gist
This file contains hidden or 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
var foo = document.getElementsByName('form-group-country_id')[0]; | |
console.log('FOO ELEMENT: ', foo) | |
var observer = new MutationObserver(function(mutations) { | |
console.log('STYLE CHANGED'); | |
debugger | |
}); | |
observer.observe(foo, { | |
attributes: true, | |
attributeFilter: ['style'] }); |
This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
File: autorotate.py | |
Origial Author: Damien Riquet <d.riquet@gmail.com> | |
Current Maintainer: Trinh Nguyen <dangtrinhnt[at]gmail[dot]com> | |
Description: This script provides an auto-rotate feature of pictures | |
USAGE: autorotate.py [-h] [--recursive] directory [directory ...] | |
positional arguments: |
Invoke is a Python task execution tool & library. Following the lead of most Unix CLI applications, it offers a traditional flag-based style of command-line parsing, deriving flag names and value types from task signatures (optionally, of course!). Like many of its predecessors, it offers advanced features as well – namespacing, task aliasing, before/after hooks, parallel execution and more.
Get more information at pyinvoke.org
# List all tasks invoke can find in the current direktory (from tasks.py)
invoke --list
# Only show commands that would be executed by called task(s) (dry run)
This file contains hidden or 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
# install docker client and docker server on the mac | |
brew install docker docker machine | |
# To have launchd start docker-machine now and restart at login: | |
# brew services start docker-machine | |
# Or, if you don't want/need a background service you can just run: | |
# docker-machine start | |
brew services start docker-machine | |
# [michaelkarrer@~/odoo-new-setup/install_doodba/doodba_subproject_by_copier (master #)]$ brew services start docker-machine |
This file contains hidden or 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
https://www.redhat.com/en/blog/avoiding-clock-drift-vms | |
# https://www.ntp.org/ | |
# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/s1-checking_the_status_of_ntp | |
# http://www.satsignal.eu/ntp/NTPandMRTG.html | |
# https://exchange.nagios.org/directory/Plugins/Network-Protocols/NTP-and-Time | |
# https://www.redhat.com/en/blog/avoiding-clock-drift-vms |
This file contains hidden or 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
On your remote server, run: pip install cython pydevd | |
IMPORTANT: Make sure that your computer is visible to server's IP by pinging your computer's IP | |
AND make port forwarding if necessary | |
Create debug folder localy using same path as on remote server. Necessary for correct break points work. | |
Connect remote content for debug: | |
sshfs bar:/srv/odoo /srv/odoo/ | |
Use this path for mapping. | |
On your computer, configure a Python Remote Debug in run configurations. |
- Tutorial to get the access token odoo addon facebook_lead
- crm_facebook_leads crm_facebook_leads
NewerOlder