Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View omaciel's full-sized avatar
🎯
Learning

Og Maciel omaciel

🎯
Learning
View GitHub Profile
@omaciel
omaciel / main.go
Created August 15, 2023 23:49 — forked from majest/main.go
Sqlite with GORM using UUID
package main
import (
"database/sql"
sqliteGo "github.com/mattn/go-sqlite3"
uuid "github.com/satori/go.uuid"
log "github.com/sirupsen/logrus"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
"gorm.io/gorm/logger"
@omaciel
omaciel / soundtrack.md
Last active December 23, 2020 14:36
I.C.Q. - A Novel: Soundtrack
Track Name Artist Year Genre
1 Fly Sugar Ray & Super Cat 1997 Rock
2 Mo Money Mo Problems (feat. Mase & Puff Daddy) [2014 Remastered Version] The Notorious B.I.G. 1997 Hip-Hop/Rap
3 Can't Nobody Hold Me Down (feat. Mase) Puff Daddy 1997 Hip-Hop/Rap
4 How Bizarre (Mix) OMC 1995 Rock
5 Ready or Not Fugees 1996 Hip-Hop/Rap
6 Here Comes the Hotstepper (Heartical Mix) Ini Kamoze 1994 Pop
7 1979 Smashing Pumpkins 1995 Hard Rock
8 U Can't Touch This MC Hammer 1990 Hip-Hop/Rap
@omaciel
omaciel / rst_to_md.sh
Last active December 8, 2020 17:47 — forked from ldong/rst_to_md.sh
Convert rst to md files
# This script was created to convert a directory full
# of rst files into md equivalents. It uses
# pandoc to do the conversion.
#
# 1. Install pandoc from http://johnmacfarlane.net/pandoc/
# 2. Copy this script into the directory containing the .rst files
# 3. Ensure that the script has execute permissions
# 4. Run the script
#
# By default this will keep the original .rst file
@omaciel
omaciel / installation.log
Last active July 2, 2020 15:58
docker-compose build
hacking/ibutsu-server [master] » docker-compose logs worker
Attaching to ibutsu-server_worker_1
worker_1 | /usr/local/lib/python3.7/site-packages/celery/platforms.py:801: RuntimeWarning: You're running the worker with superuser privileges: this is
worker_1 | absolutely not recommended!
worker_1 |
worker_1 | Please specify a different user using the --uid option.
worker_1 |
worker_1 | User information: uid=1001 euid=1001 gid=0 egid=0
worker_1 |
worker_1 | uid=uid, euid=euid, gid=gid, egid=egid,
@omaciel
omaciel / vscode.json
Created May 5, 2018 00:39
VS Code User Settings
{
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.pylintEnabled": false,
"python.pythonPath": "/usr/local/bin/python3",
"python.unitTest.unittestEnabled": false,
"python.unitTest.pyTestEnabled": true,
"python.unitTest.nosetestsEnabled": false,
@omaciel
omaciel / spreadsheet.py
Created December 29, 2017 19:40 — forked from alchemyst/spreadsheet.py
Spreadsheet in 100 lines of Python
#!/usr/bin/env python
import tkinter as tk
import math
import re
from collections import ChainMap
Nrows = 5
Ncols = 5
@omaciel
omaciel / .coveragerc
Created December 5, 2017 22:27 — forked from mattbennett/.coveragerc
coverage subprocess
[run]
branch = True
source = .
@omaciel
omaciel / travis.yml
Created October 26, 2017 16:22
Example for using Google Chrome via Travis for UI testing
language: python
python:
- 3.5
services:
- postgresql
addons:
postgresql: '9.4'
chrome: stable
before_install:
- wget https://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip
@omaciel
omaciel / facts.json
Last active May 22, 2017 18:43
Create a Satellite 6 Host + FauxFactory Facts
{
"facts":
{
"architecture": "x86_64",
"augeasversion": "1.4.0",
"bios_release_date": "06/27/2012",
"bios_vendor": "IBM Corp.",
"bios_version": "-[JQE150AUS-1.02]-",
"blockdevice_sda_model": "ST500NM0011",
"blockdevice_sda_size": "500107862016",
@omaciel
omaciel / README.md
Created May 11, 2017 21:42
Some simple code to show the differences between using namedtuple from the collections module and NamedTuple from the typing module. Extra points for using type hinting.

Playing with named tuples

Some simple code to show the differences between using namedtuple from the collections module and NamedTuple from the typing module. Extra points for using type hinting.

Using namedtuple from the collections module:

>>> from platforms_namedtuple_35 import *
>>> system_1 = RHEL7
>>> system_2 = RHEL5