Skip to content

Instantly share code, notes, and snippets.

View ferminhg's full-sized avatar
🐙
WFH

fermin ferminhg

🐙
WFH
View GitHub Profile
@ferminhg
ferminhg / code_chatgpt.gs
Created February 27, 2023 21:57
Apps script to connect chatGPT with gdocs
// DROP DOWN MENU
function onOpen() {
DocumentApp.getUi().createMenu("ChatGPT")
.addItem("Generate Ideas", "generateIdeas")
.addItem("Summary", "summary")
.addItem("Action Items", "actionItems")
.addToUi();
}
// ****END MENU****
@ferminhg
ferminhg / README.txt
Created May 8, 2022 18:44
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX DEFAULT WORKSPACE
Remix default workspace is present when:
i. Remix loads for the very first time
ii. A new workspace is created
iii. There are no files existing in the File Explorer
This workspace contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
{:profiles
{:Default
{:alone 500
:default true
:delay 200
:held 500
:sim 200
:simlayer-threshold 220}}
:applications

#Effective Communication


Prepare the conversation.

  • Why are we having this conversation?
    Your time is valuable, other people's time is valuable. If you need to use this time, the least you can do is to prepare it. Things such as "what do you want to achieve?", "What info you need to give?", and all following...
  • What do you expect from the meeting?
    How many times do you go to a meeting without thinking what's the outcome you want from it?
  • Try to understand the audience.:
  • How can I get to my audience better?.

Hello world 👋 → was my first line of code pixar lamp

Header image coding

✨ I'm Eleonora, Eli for friends, becoming a Frontend developer after an amazing experience working in a start-up and digging deeper into Web sites and UX.

In addition I'm a sociologist holding a master in human resources.

@ferminhg
ferminhg / get-pr-comments.py
Created December 11, 2020 09:42
Get PR comments
# create env
# python3.8 -mvenv venv
# activate
# . venv/bin/activate
# install lib https://github.com/PyGithub/PyGithub
# pip3 install PyGithub
# run
# python get-pr-comments.py > comments.json
from github import Github
@ferminhg
ferminhg / create_dailymd.sh
Created July 31, 2020 17:21
Shell script to create a daily file `20200731.md`
#!/bin/bash
# ./create_daily.sh [--tomorrow]
# Flags: (--tomorrow) to create the file for tomorrow
if [ "$1" == "--tomorrow" ] ; then
# not need to be initializaded
DATE_PARAM="-v +1d"
fi
DAILY_PATH=$(dirname "$0")
=b= wopwop
devaway test
@ferminhg
ferminhg / 00_ssl_setup_certbot.sh
Created July 17, 2020 19:01
AWS elastic beanstalk postdeploy. Certificate with SSL and certbox, compile ningx with headers-more-ningx module to hide info. To use create it on directory: .platform/hooks/postdeploy/00_ssl_setup_certbot.sh
#!/usr/bin/env bash
# Bash script to attach to postdeploy hook for SSL
# Compatible only with Amazon Linux 2 EC2 instances
# Auto allow yes for all yum install
# Suggestion: Remove after deployment
if ! grep -q 'assumeyes=1' /etc/yum.conf; then
echo 'assumeyes=1' | tee -a /etc/yum.conf
fi
@ferminhg
ferminhg / Dockerfile
Last active June 22, 2020 10:21
How-to run django-orchestra with docker
FROM python:3.6
RUN apt-get -y update && apt-get install -y curl sudo
RUN pip3 install wheel
RUN pip3 install https://github.com/ribaguifi/django-orchestra/tarball/dev/api-docs-swagger#egg=django-orchestra-dev
#RUN export TERM=xterm; curl -L http://git.io/orchestra-admin | bash -s install_requirements
RUN apt-get -y install python3-dev
RUN pip3 install -r https://raw.githubusercontent.com/ribaguifi/django-orchestra/dev/api-docs-swagger/requirements.txt
RUN apt-get clean