Skip to content

Instantly share code, notes, and snippets.

View jrichardsz's full-sized avatar

JRichardsz jrichardsz

View GitHub Profile
@jrichardsz
jrichardsz / v$session_v$sql.md
Last active February 9, 2017 14:02
v$session_v$sql.md
machine program ouser
my laptop username SQL DEVELOPER User
machine program ouser
ip-10-6-7-1 oracle@ip-10-6-7-1 rdsdb
@jrichardsz
jrichardsz / min3d.sampleProject1:raw camaro_obj.java
Created February 12, 2017 17:01
min3d.sampleProject1:raw/camaro_obj
IParser parser = Parser.createParser(Parser.Type.OBJ, getResources(), "min3d.sampleProject1:raw/camaro_obj", true);
@jrichardsz
jrichardsz / getGlobalResourcePackageIdentifier.java
Last active February 12, 2017 19:34
Fix to ERROR No package identifier when getting value for resource number in min3d framework
package android.common;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.util.Log;
import java.io.File;
/**
IParser parser = Parser.createParser(Parser.Type.OBJ,
getResources(), ResourceUtils.getGlobalResourcePackageIdentifier(this.getBaseContext())+":raw/camaro_obj", true);
@jrichardsz
jrichardsz / pandoc.css
Created April 6, 2017 20:10 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@jrichardsz
jrichardsz / notepad-escribir.au3
Created August 18, 2017 04:14
script autoit que abre el notepad y escribe algo
main()
func main()
Sleep(125)
Send("^c")
Send("#r")
Sleep(125)
Send("notepad")
Send("{ENTER}")
@jrichardsz
jrichardsz / ejemplo_001.au3
Created August 18, 2017 04:16
script autoit creado en el video
main2()
func main2()
$cont=0
$salto=18
global $num_elem = 20
global $arr[$num_elem]
While $cont < $num_elem
@jrichardsz
jrichardsz / curl
Created October 17, 2017 17:11
Posting a File and Json Data
# funciono : file + json
curl -X POST -F "jsonPayload=@/c/Users/lala/Desktop/payload.json" -F "fileName=lala-2017.xlsx" -F "image=@/c/Users/lala/Desktop/input.txt" http://localhost:9090/upload
# funciono : json + file
curl -v POST \
-H 'Accept: application/json' \
-H 'Content-Type: multipart/form-data' \
--form-string 'data={"id": 42}' \
-F 'file=@/c/Users/lala/Desktop/input.txt' \
'http://localhost:9090/upload'
@jrichardsz
jrichardsz / curl.md
Last active May 27, 2021 23:43 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@jrichardsz
jrichardsz / gist:63e9ebf6a03fa944ef44027acb68e276
Created December 11, 2017 16:59 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>