Skip to content

Instantly share code, notes, and snippets.

View jrichardsz's full-sized avatar

JRichardsz jrichardsz

View GitHub Profile
@jrichardsz
jrichardsz / html samples.html
Last active January 3, 2025 14:49
html samples
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
</head>
<body>
<p>This is an example of a simple HTML page with one paragraph and one image</p>
<img src="https://i.ibb.co/S6rHkjK/b188dd2b-4614-4fcc-bf8d-b15107c4b2ea.webp">
</body>

ffmpeg -framerate 1 -pattern_type glob -i '*.jpg' -c:v libx264 -r 30 -pix_fmt yuv420p -vf "scale=1920:1080:force_original_aspect_ratio=decrease:eval=frame,pad=1920:1080:-1:-1:eval=frame" output.mp4

@jrichardsz
jrichardsz / sql connection validation snippets - java.md
Last active December 23, 2024 15:18
sql connection validation snippets
@jrichardsz
jrichardsz / swagger implementations tips - java.md
Created December 18, 2024 23:16
swagger implementations tips
@jrichardsz
jrichardsz / github action snippets.md
Created November 20, 2024 22:12
github action snippets, github_actions, actions, githubactions

clone private repositories using pat token

 - name: Install requirements
      run: |
        git config --global url."https://${{ secrets.ACESS_TOKEN }}@github".insteadOf https://github
        git clone https://github.com/githubtraining/hellogitworld.git

https://stackoverflow.com/a/66094537/3957754

@jrichardsz
jrichardsz / nodejs unit test sinon.md
Created November 20, 2024 21:52
nodejs unit test sinon

stub field

This works for me with Sinon.JS v4.1.2:

myObject = {hello: 'hello'}
sandbox = sinon.createSandbox()
sandbox.stub(myObject, 'hello').value('Sinon')
myObject.hello // "Sinon"
sandbox.restore()
##--------------------------
## Terraform: Functions ##
##--------------------------
## Open terraform console
terraform console
#######################
## Numeric Functions ##
#######################
@jrichardsz
jrichardsz / devops sql - cdn.md
Last active October 1, 2024 23:48
devops sql

113512181-1a965b00-956c-11eb-8ac6-e046c11ba368

@jrichardsz
jrichardsz / environment variables snippets - nodejs.md
Created September 30, 2024 14:32
environment variables snippets
var express = require('express');
var app = express();

app.get('/', function(req, res) {
  res.type('text/plain');
  res.send('Hell , its about time!!');
});