Skip to content

Instantly share code, notes, and snippets.

@arodu
arodu / docker-compose.yml
Last active August 6, 2022 15:51 — forked from rochamarcelo/docker-compose.yml
CakePHP docker setup
version: '3'
services:
cakephp-mysql:
image: mysql:5.7
container_name: cakephp-mysql
working_dir: /application
command: mysqld --sql-mode='NO_ENGINE_SUBSTITUTION' --character-set-server=utf8 --init-connect='SET NAMES UTF8;'
environment:
- MYSQL_USER=my_app
- MYSQL_PASSWORD=secret
@arodu
arodu / .bashrc
Last active June 13, 2021 14:15
bash git promt
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
. /usr/share/git/completion/git-completion.bash
. /usr/share/git/completion/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
# colors!
red="\e[1;31m"
green="\e[1;32m"
yellow="\e[1;33m"
blue="\e[1;34m"
@arodu
arodu / banks_venezuela.csv
Last active June 16, 2024 16:14
códigos de bancos en venezuela
Código Nombre
0102 BANCO DE VENEZUELA
0156 100% BANCO
0172 BANCAMIGA BANCO MICROFINANCIERO C A
0114 BANCARIBE
0171 BANCO ACTIVO
0166 BANCO AGRICOLA DE VENEZUELA
0175 BANCO BICENTENARIO DEL PUEBLO
0128 BANCO CARONI
0163 BANCO DEL TESORO
@rochamarcelo
rochamarcelo / docker-compose.yml
Created July 19, 2020 13:04
CakePHP docker setup
version: "3.1"
services:
php-fpm:
image: webdevops/php-nginx:7.4
container_name: myapp-webserver
working_dir: /app
volumes:
- ./:/app
environment:
- WEB_DOCUMENT_ROOT=/app/webroot
@oliveratgithub
oliveratgithub / emojis.json
Last active July 2, 2024 12:24
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z
@MayMeow
MayMeow / Dockerfile
Last active February 11, 2021 11:55
CakePHP PHP-FPM docker image with pgsql and redis
FROM php:fpm
MAINTAINER CakeHub <cakehub@cakehub.sk>
RUN requirements="libmcrypt-dev g++ libicu-dev libpq-dev libmcrypt4 libicu52 netcat" \
&& apt-get update && apt-get install -y $requirements \
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
&& docker-php-ext-install pdo pdo_pgsql \
&& docker-php-ext-install mcrypt \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install intl \
@pokisin
pokisin / instalacion.md
Last active June 29, 2023 21:23
Instalar LAMP en arch linux (Manjaro)

Pasos para instalar LAMP en Manjaro

  1. Abrimos la terminal y ejecutamos la siguiente linea para actualizar la base de datos de los paquetes
  sudo pacman -Syu
  1. Instalamos el apache y ejecutamos lo siguiente
  sudo pacman -S apache
@domenic
domenic / redirecting-github-pages.md
Created February 10, 2017 19:28
Redirecting GitHub pages after a repository move

Redirecting GitHub Pages after a repository move

The problem

You have a repository, call it alice/repo. You would like to transfer it to the user bob, so it will become bob/repo.

However, you make heavy use of the GitHub Pages feature, so that people are often accessing https://alice.github.io/repo/. GitHub will helpfully redirect all of your repository stuff hosted on github.com after the move, but will not redirect the GitHub Pages hosted on github.io.

The solution

@barbietunnie
barbietunnie / udemy-courses-download-using-cookies.md
Last active May 10, 2024 18:17
Downloading Udemy videos with youtube-dl

How to download your Udemy course videos using youtube-dl

$ youtube-dl --list-extractors | grep udemy

Steps

  1. Get link to the course to download. e.g. https://www.udemy.com/course-name/
  2. Login into udemy website, save the cookie from chrome using Chrome (Cookie.txt)[1] export extension. Save it to file udemy-cookies.txt
  3. Get the link of the video that you want to download. usually in format. Use the command provided below where you have to replace the {course_link} and {path_to_cookies_file} with respective paths.
$ youtube-dl {course_link} --cookies {path_to_cookies_file}
@arodu
arodu / see_errors.php
Created August 9, 2016 15:21
Mostrar errores de PHP en tiempo de ejecución
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
// Code...
?>