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
| conda config --set auto_activate_base False |
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://superuser.com/questions/1075992/cedilla-under-c-%c3%a7-in-us-international-with-dead-keys-keyboard-layout-in-linu | |
| Layout: | |
| English (US, intl., with dead keys) | |
| 1. Edit configuration files: | |
| sudo vim /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache | |
| sudo vim /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache | |
| On both, find the lines starting with "cedilla" "Cedilla" and add :en to the line. Something like this: |
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
| http://localhost:8047 | |
| Options> | |
| drill.exec.functions.cast_empty_string_to_null : true. | |
| store.mongo.all_text_mode : true. | |
| store.mongo.bson.record.reader : false. | |
| -- |
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
| db.currentOp().inprog.forEach(function(cop){db.killOp(cop.opid)}) |
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
| sort -u file.csv > newfile.csv |
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
| Add to index.html head: | |
| <script> | |
| if (global === undefined) { | |
| var global = window; | |
| } | |
| </script> |
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
| let uniqueValues = array.map(v => v.property) | |
| .filter((value, index, self) => self.indexOf(value) === index); |
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
| #Create | |
| tmux new -s NAME_OF_TERMINAL | |
| #Detach | |
| $tmux> tmux detach | |
| #Send command | |
| tmux send -t NAME_OF_TERMINAL 'command here' C-m | |
| #Kill |
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 x-related to compile x11vnc from source code. | |
| sudo apt-get update | |
| sudo apt-get install -y libxtst-dev libssl-dev libjpeg-dev | |
| # Grep source code. | |
| wget http://x11vnc.sourceforge.net/dev/x11vnc-0.9.14-dev.tar.gz | |
| gzip -dc x11vnc-0.9.14-dev.tar.gz | tar -xvf - | |
| cd x11vnc-0.9.14/ | |
| ./configure --prefix=/usr/local CFLAGS='-g -O2 -fno-stack-protector -Wall' |
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
| import re | |
| import unicodedata | |
| def strip_accents(text): | |
| try: | |
| text = unicode(text, 'utf-8') | |
| except (TypeError, NameError): | |
| pass | |
| text = unicodedata.normalize('NFD', text) | |
| text = text.encode('ascii', 'ignore') |