Skip to content

Instantly share code, notes, and snippets.

Pinas UTC +8

Kris Carillo kriscarilloxyz

Pinas UTC +8
View GitHub Profile
kriscarilloxyz / mongo-docker.bash
Created May 6, 2021 07:11 — forked from davideicardi/mongo-docker.bash
Running mongodb inside a docker container (with mongodb authentication)
View mongo-docker.bash
# Create a container from the mongo image,
# run is as a daemon (-d), expose the port 27017 (-p),
# set it to auto start (--restart)
# and with mongo authentication (--auth)
# Image used is
docker pull mongo
docker run --name YOURCONTAINERNAME --restart=always -d -p 27017:27017 mongo mongod --auth
# Using the mongo "localhost exception" (
# add a root user
View admin.php
<!DOCTYPE html>
<html lang="en">
<?php include('config.php') ?>
<?php include('components/header.php') ?>
<div id="particles-js"></div>
<?php include('components/navigation/default.php') ?>
kriscarilloxyz / margin_padding_helper.css
Created November 20, 2018 12:22 — forked from prasofty/margin_padding_helper.css
Margin Padding Helper CSS
View margin_padding_helper.css
.p-0 {
padding: 0px;
.p-3 {
padding: 3px;
.p-5 {
padding: 5px;
kriscarilloxyz / sample.spec
Created November 18, 2018 07:27
Include pandas in pyinstaller
View sample.spec
# -*- mode: python -*-
block_cipher = None
a = Analysis([''],
A script that loads a GitHub repositories info and updates a Firebase database with it.
You will require the following database rules:
"rules": {
"repositories": {
".write": "auth != null",
".read": true
from selenium import webdriver
import time
fb_page_post = ""
fb_link = ""
user = input("username: ")
pwd = input("password: ")
driver = webdriver.Chrome()
kriscarilloxyz /
Created April 24, 2018 12:56 — forked from NicolasRitouet/
How to automate deployment on AWS S3 with bitbucket (or github) and wercker
kriscarilloxyz /
Created February 28, 2018 18:57 — forked from alanhamlett/
Serialize SQLAlchemy Model to dictionary (for JSON output) and update Model from dictionary attributes.
import uuid
import wtforms_json
from sqlalchemy import not_
from sqlalchemy.dialects.postgresql import UUID
from wtforms import Form
from wtforms.fields import FormField, FieldList
from wtforms.validators import Length
from flask import current_app as app
from flask import request, json, jsonify, abort