-
Open your wsl ubuntu terminal
-
install open-ssh server
sudo apt update
sudo apt install openssh-server
| /** | |
| * Valida un CUPS (Código Unificado de Punto de Suministro) dado | |
| * @param {string} CUPS Código CUPS que se quiere verificar. Más información aquí: https://es.wikipedia.org/wiki/C%C3%B3digo_Unificado_de_Punto_de_Suministro | |
| * @returns Resultado de la verificación. `true` si el CUPS dado es correcto, o `false` en caso contrario. | |
| */ | |
| function validarCUPS(CUPS) { | |
| let ret = false; | |
| const reCUPS = /^[A-Z]{2}(\d{4}\d{12})([A-Z]{2})(\d[FPCRXYZ])?$/i; | |
| if (reCUPS.test(CUPS)) { | |
| const mCUPS = CUPS.toUpperCase().match(reCUPS); |
curl -d @sample_request.txt -X POST https://ner.morcego.net/ner
response:
[{"tag": "ORGANIZATION", "score": 0.40190129560515164, "label": "Furnival Barristers"}, {"tag": "PERSON", "score": 1.0128972145423198, "label": "Edith Oliv\u00e9 Bocanegra"}, {"tag": "LOCATION", "score": 0.9171091771615874, "label": "Panam\u00e1"}, {"tag": "PERSON", "score": 0.3877786881212515, "label": "Mossack & Fonseca"}, {"tag": "LOCATION", "score": 1.0092007968591041, "label": "Espa\u00f1a"}]% ➜ ~
Short link to this page: http://caseywatts.com/ptt
Other gists & tricks: http://caseywatts.com/gists-and-tricks
Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book
Add Page...PTT (push to talk) or whatever you'd like (maybe short so it stays on your bookmarks toolbar)| #!/bin/sh | |
| # Example run-folder.sh env.json collection.json "My Folder" | |
| echo "Generating Temporary Environment" | |
| newman run "${2}" --environment "${1}" --silent --export-env /tmp/temp-newman-env.json --folder "Fixtures" | |
| newman run "${2}" --environment /tmp/temp-newman-env.json --bail --reporters cli --folder "${3}" |
This text now lives at https://github.com/MarcDiethelm/contributing/blob/master/README.md. I turned it into a Github repo so you can, you know, contribute to it by making pull requests.
If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)