Skip to content

Instantly share code, notes, and snippets.

View jrichardsz's full-sized avatar

JRichardsz jrichardsz

View GitHub Profile
@jrichardsz
jrichardsz / vimeo-downloader.js
Created September 23, 2020 15:34 — forked from mistic100/vimeo-downloader.js
Download video from Vimeo (chopped m4s files)
// 1. Open the browser developper console on the network tab
// 2. Start the video
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL
// 4. Run: node vimeo-downloader.js "<URL>"
// 5. Combine the m4v and m4a files with mkvmerge
const fs = require('fs');
const url = require('url');
const https = require('https');
@jrichardsz
jrichardsz / setenv.sh
Last active December 2, 2020 22:13 — forked from terrancesnyder/setenv.sh
./setenv.sh - example setenv.sh with defaults set for minimal time spent in garbage collection
#! /bin/sh
# ==================================================================
# ______ __ _____
# /_ __/___ ____ ___ _________ _/ /_ /__ /
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / /
# / / / /_/ / / / / / / /__/ /_/ / /_ / /
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/
# Multi-instance Apache Tomcat installation with a focus
# on best-practices as defined by Apache, SpringSource, and MuleSoft
@jrichardsz
jrichardsz / http_https_nginx.conf
Last active January 2, 2021 05:26 — forked from unixcharles/nginx.conf
nginx config for http and https proxy
#user nobody;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
// ==UserScript==
// @name ReplaceURLs(GoogleImages)
// @namespace http://ashiato1.blog62.fc2.com/
// @description Replace URLs with orig image
// @author tomato111
// @version 0.0.8
// @downloadURL https://gist.github.com/tomato111/681d634ded1a9bd3107e2baf60460a35/raw/ReplaceURLs(GoogleImages).user.js
// @updateURL https://gist.github.com/tomato111/681d634ded1a9bd3107e2baf60460a35/raw/ReplaceURLs(GoogleImages).user.js
// @include https://www.google.*/search?*tbm=isch*
// @include https://www.google.*/search?*tbs=sbi*
@jrichardsz
jrichardsz / list-files-in-folder.js
Created March 9, 2021 04:47 — forked from hubgit/list-files-in-folder.js
List all files in a folder (Google Apps Script)
function listFilesInFolder() {
var folder = DocsList.getFolder("Maudesley Debates");
var contents = folder.getFiles();
var file;
var data;
var sheet = SpreadsheetApp.getActiveSheet();
sheet.clear();
@jrichardsz
jrichardsz / index.html
Created March 10, 2021 22:51 — forked from revskill10/index.html
D3.js drawing nodes and links from json structure
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>tags</title>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="d3.v2.min.js"></script>
@jrichardsz
jrichardsz / PerformBuild.cs
Created March 29, 2021 05:11 — forked from dholdaway/PerformBuild.cs
Automated Unity Build from git repository to apk, xcode projects for use in conjunction with Jenkins. Contains Unity Editor script to collect the scenes, set the build settings, set the build location and an ant script to build the Unity project on the command line.
using UnityEditor;
using System.IO;
using System.Collections;
using UnityEngine;
using System.Collections.Generic;
class PerformBuild
{
private static string BUILD_LOCATION = "+buildlocation";
@jrichardsz
jrichardsz / PROCEDURE.sql
Last active April 22, 2021 05:45 — forked from vano468/restaurant.sql
oracle sql plsql snippets
CREATE OR REPLACE PROCEDURE "IS_OWN"."SP_SD_PGM_LOG_HST"
(
IN_UPD_PGM_ID IN VARCHAR2 , -- 로그를 남기는 프로그램ID 30
IN_MSG IN VARCHAR2 -- LOG 메세지 2000자 제한
)
/******************************************************************************
NAME : SP_SD_PGM_LOG_HST
PURPOSE : procedure application log Create
@jrichardsz
jrichardsz / oracle copyfile.plsql
Created April 24, 2021 23:41 — forked from SteveRuben/copyfile.plsql
copy file in oracle, utl_file.fcopy doesn't work for some type of file and the only way to copy a file is to do it as raw file. So here is an example.
CREATE OR REPLACE PROCEDURE copyfile (in_director in varchar2, in_filename IN VARCHAR2, out_directory in varchar2, out_filename IN VARCHAR2)
IS
in_file UTL_FILE.file_type;
out_file UTL_FILE.file_type;
buffer_size CONSTANT INTEGER := 32767; -- Max Buffer Size = 32767
buffer RAW (32767);
buffer_length INTEGER;
BEGIN
-- Open a handle to the location where you are going to read the Text or Binary file from
-- NOTE: The 'rb' parameter means "read in byte mode" and is only available
@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.