Skip to content

Instantly share code, notes, and snippets.

require "uri"
(URI::REGEXP.constants - ["PATTERN"]).each do |rc|
puts "#{rc}: #{URI::REGEXP.const_get(rc)}"
end
URI::REGEXP::PATTERN.constants.each do |pc|
puts "#{pc}: #{URI::REGEXP::PATTERN.const_get(pc)}"
end
@mydoghasworms
mydoghasworms / json_util.abap
Last active February 19, 2023 14:46
ABAP Utility class for mapping JSON to ABAP data and vice versa - Rather use https://gist.github.com/mydoghasworms/4888a832e28491c3fe47
* Rather use https://gist.github.com/mydoghasworms/4888a832e28491c3fe47
* The alternative is a better parser although it is not an emmitter)
*----------------------------------------------------------------------*
* CLASS json_util DEFINITION
*----------------------------------------------------------------------*
class json_util definition.
public section.
class-methods:
data_to_json importing data type any
returning value(json) type string,
@ronjouch
ronjouch / ronj-autohotkey.ahk
Created April 20, 2012 13:28
Collection of AutoHotkey scripts I use
; Variables definition
; -----------------------------------------------------------------------------
EnvGet, userProfile, USERPROFILE
Software := userProfile . "\Dropbox\software\"
; Launch or toggle program, http://lifehacker.com/5468862/create-a-shortcut-key-for-restoring-a-specific-window
; -----------------------------------------------------------------------------
ToggleWinMinimize(WindowTitle)
{
SetTitleMatchMode,2
@schickling
schickling / Rakefile
Last active May 12, 2025 13:28
Activerecord without Rails
require "active_record"
namespace :db do
db_config = YAML::load(File.open('config/database.yml'))
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'})
desc "Create the database"
task :create do
ActiveRecord::Base.establish_connection(db_config_admin)
@danieljarolim
danieljarolim / SSIS SAP Integration.md
Last active November 20, 2020 18:11
SSIS SAP Integration

SSIS SAP Integration

This describes how to consume data from SAP without using a custom component. There are several prerequisites to get this working.

  1. SAP adapter packs from the MS Biztalk server.
  2. SAP client DLLs from SAP.
  3. Acess to BAPIs in SAP to call.

Step 1 Install ADO.NET SAP Adapter packs

Download the Biztalk server demo (BizTalk Server 2013 R2 Evaluation Edition) from http://www.microsoft.com/en-au/download/details.aspx?id=43381

@lfcipriani
lfcipriani / terminalfred.plugin.zsh
Last active October 10, 2018 18:59
terminalfred.plugin.zsh
# -=-=-=- TERMINALFRED -=-=-=-
#
# ** a few zshell plugins I use:
# encode64: encode and decode base64 with e64 or d64
# extract: to extract compressed files
# sublime
# colored-man-pages
# web-search
# z