Skip to content

Instantly share code, notes, and snippets.

View jrichardsz's full-sized avatar

JRichardsz jrichardsz

View GitHub Profile
@jrichardsz
jrichardsz / Rotate Videos using ffmpeg
Created December 17, 2018 17:03 — forked from cmlewis/ Rotate Videos using ffmpeg
Rotate videos 90 or 180 degrees using ffmpeg
Rotate videos 90 or 180 degrees using ffmpeg.
@jrichardsz
jrichardsz / Dockerfile
Created January 22, 2019 15:28 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
@jrichardsz
jrichardsz / media-query.css
Created May 15, 2019 16:06 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@jrichardsz
jrichardsz / app.js
Last active May 15, 2019 21:36 — forked from kernow/gist:840796
mongo mongodb mongoose create find all
var sys = require('sys')
, mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test_mongoose');
// Models
var Schema = mongoose.Schema;
@jrichardsz
jrichardsz / hello-world-pom.xml
Created June 19, 2019 03:59 — forked from rcwalker/hello-world-pom.xml
Hello World With Maven
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>local</groupId>
<artifactId>hello-world</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>hello-world</name>
@jrichardsz
jrichardsz / docker-compose.yml
Created September 29, 2019 02:57 — forked from pantsel/docker-compose.yml
example docker-compose.yml for kong, postgres and konga
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
@jrichardsz
jrichardsz / mysql wordpress docker
Created October 23, 2019 16:16 — forked from crissanis/mysql wordpress docker
mysql wordpress docker
docker run --name eduxdb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=noloveas -d mysql:5.7
docker run --name some-wordpress -p 8080:80 -e WORDPRESS_DB_HOST=10.16.211.194:3306 \
-e WORDPRESS_DB_USER=root -e WORDPRESS_DB_PASSWORD=noloveas -d wordpress
@jrichardsz
jrichardsz / simple-https-server.py
Last active December 30, 2019 19:29 — forked from dergachev/simple-https-server.py
simple https server
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# create file : https-server.py with the followinfg code
import BaseHTTPServer, SimpleHTTPServer
import ssl
httpd = BaseHTTPServer.HTTPServer(('0.0.0.0', 4443), SimpleHTTPServer.SimpleHTTPRequestHandler)
httpd.socket = ssl.wrap_socket (httpd.socket, certfile='./server.pem', server_side=True)
httpd.serve_forever()
@jrichardsz
jrichardsz / setVariable.groovy
Created January 5, 2020 13:22 — forked from felipebizz/setVariable.groovy
[Mule] Set variable value inside Groovy
<flow name="get:/setVariable:api-config">
<set-variable variableName="username" value="" doc:name="username"/>
<scripting:component doc:name="Groovy">
<scripting:script engine="Groovy">
<![CDATA[
String value = 'felipe'
message.setInvocationProperty('username', value)
]]></scripting:script>
</scripting:component>
@jrichardsz
jrichardsz / docker-ps-vertical
Last active April 17, 2020 22:38 — forked from wzulfikar/docker-ps-vertical
vertical format for docker ps
export FORMAT="ID\t{{.ID}}\nNAME\t{{.Names}}\nIMAGE\t{{.Image}}\nPORTS\t{{.Ports}}\nCOMMAND\t{{.Command}}\nCREATED\t{{.CreatedAt}}\nSTATUS\t{{.Status}}\n"
// usage:
docker ps --format="$FORMAT"