Skip to content

Instantly share code, notes, and snippets.

View tonykevin's full-sized avatar
🍍
Focusing

Tony kevin tonykevin

🍍
Focusing
View GitHub Profile
@tonykevin
tonykevin / docker-compose.yml
Created October 4, 2024 15:50 — forked from Klerith/docker-compose.yml
PostgreSQL + PgAdmin
version: '3'
services:
myDB:
image: postgres:15.3
container_name: my-database
restart: always
ports:
- 5432:5432
environment:
@tonykevin
tonykevin / .gitignore
Created September 12, 2019 13:43
Exclude files in gitignore
/*
!dist/
!.gitignore
!README.md
@tonykevin
tonykevin / archlinux-virtualbox.sh
Created March 9, 2016 21:42 — forked from GabLeRoux/archlinux-virtualbox.sh
Virtualbox archlinux notes
# sudo /sbin/rcvboxdrv -h
# Unloading modules:
# Loading modules: modprobe: FATAL: Module vboxnetadp not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxnetflt not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxpci not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.4.3-1-ARCH
# Solution
# from https://forum.antergos.com/topic/818/can-t-run-my-vitualbox/4
@tonykevin
tonykevin / banner.rb
Created October 26, 2015 23:51 — forked from lulalala/banner.rb
Carrierwave image model validation on image dimensions/height/width.
class Banner < ActiveRecord::Base
attr_accessor :image_width, :image_height
mount_uploader :image, ImageUploader
validate :check_dimensions, :on => :create
def check_dimensions
if !image_cache.nil? && (image.width < 300 || image.height < 300)
errors.add :image, "Dimension too small."
end
end
@tonykevin
tonykevin / box-shadow.html
Created October 24, 2015 04:44 — forked from ocean90/box-shadow.html
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@tonykevin
tonykevin / .gitignore
Last active September 1, 2015 00:51 — forked from eykd/.gitignore
Full stack BDD testing with Behave+Mechanize+Django
*.pyc
bin/
include/
lib/