Skip to content

Instantly share code, notes, and snippets.

View nmicht's full-sized avatar

Michelle Torres nmicht

View GitHub Profile
@nmicht
nmicht / atom-packages
Last active January 8, 2019 22:42
Atom packages
apm install docblockr
apm install atom-wrap-in-tag
apm install php-cs-fixer
apm install goto-definition
apm install todo-show
apm install editorconfig
apm install atom-beautify
apm install aligner
apm install linter-python-pep8
@nmicht
nmicht / emoticons.md
Last active January 10, 2019 17:18 — forked from rxaviers/gist:7360908
Lista completa de emoticons para github markdown

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@nmicht
nmicht / .htaccess
Last active February 17, 2019 22:00
Apache htaccess to list files with a beauty format
# ENABLE DIRECTORY
# Docs: https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html
Options +Indexes
IndexOptions IgnoreCase FancyIndexing FoldersFirst HTMLTable NameWidth=* SuppressHTMLPreamble ScanHTMLTitles SuppressLastModified DescriptionWidth=*
# SPECIFY HEADER FILE
HeaderName /header.html
# SPECIFY FOOTER FILE
ReadmeName /footer.html
@nmicht
nmicht / *RC-application.md
Last active March 10, 2019 02:25
Application as Recursers for the Resource Center Winter 2, 2019

Recurse Center Application

The Recurse Center runs educational programming retreats in New York City. The retreats are free, self-directed, project based, and for anyone who wants to get dramatically better at programming.

This gist includes my application and code for the pair programming interview

@nmicht
nmicht / *RC-Notes.md
Last active March 12, 2019 00:16
Herramientas, paquetes y cositas interesantes para usar. Todo aprendido durante mi tiempo en RC

Recurse Center W2'19 notes

This are my notes during the W2'19 at Recurse Center

  • Tools A file with a list of tools, software and links to interesting development things.
  • Projects A list with interesting projects created by recurses.
@nmicht
nmicht / README.md
Created March 14, 2019 01:36
Deploy Docker to GCloud

Create the cluste

gcloud container clusters create kaka-cluster --num-nodes=1

  • kaka-cluster: the name of the cluster

Run the docker (the workload)

kubectl run kaka-server --image=gcr.io/kaka-234500/dockerflask_docker-flask:latest --port 5000 --env="FLASK_APP=app/main.py" --env="PORT=5000" --env="HOST=0.0.0.0"

  • kaka-server: the name of the workload
  • image: the name of the image on the hub
  • port: the exposed by the docker
  • env: the environment variables
@nmicht
nmicht / curl-http-code.sh
Last active August 31, 2019 23:57
This script do a loop to read all the lines in file "url-list" and with curl get the http code response
# This script do a loop to read all the lines in file "url-list"
# Usign curl with get the http code of the url and print it with the url
#!/bin/bash
while read LINE; do
curl -o /dev/null --silent --head --write-out '%{http_code}' "$LINE"
echo ' '$LINE
done < url-list
@nmicht
nmicht / CodeSniffer with pre-commit.md
Last active January 29, 2021 12:58
Force PHP standards with Git hooks and Code Sniffer

Force PHP standards with Git hooks and Code Sniffer

Phpcs Dependency

First, we need a development dependency specified to install phpcs. It looks something like this:

{
    "require-dev": [
        "squizlabs/php_codesniffer": "2.0.*@dev"
    ]
}
@nmicht
nmicht / *Docker-Flask.md
Last active August 23, 2022 02:18
Docker files for flask app

Docker for flask app

  1. Create a Dockerfile with all the specs for your image
  2. Create a docker-compose.yml file for the basic setup
  3. Create docker-compose.env.yml files for the specific rules for each environment

To build the image execute:
docker-compose -f docker-compose.yml -f docker-compose.env.yml build

To run the container execute:

@nmicht
nmicht / lehrer-argentur-fur-arbeit.json
Created March 5, 2023 11:47
List of Lehrer roles listed in the Argentur fur Arbeit site
[ {
"bezeichnung" : "Lehrer/in (Uni) - Gesamtschulen",
"berufId" : 9297,
"istReglementiert" : true
}, {
"bezeichnung" : "Lehrer/in - Alexander-Technik",
"berufId" : 15103,
"istReglementiert" : false
}, {
"bezeichnung" : "Lehrer/in - Begabtenförderung",