Skip to content

Instantly share code, notes, and snippets.

View mkysoft's full-sized avatar
💭
Discover, learn, test, teach.

Mustafa Kerim Yılmaz mkysoft

💭
Discover, learn, test, teach.
View GitHub Profile
@mkysoft
mkysoft / SAP Attachment Downloader.vba
Created February 24, 2023 15:09
SAP Attachment Downloader
' Tools -> References ... -> Browse
' C:\Program Files (x86)\SAP\FrontEnd\SAPgui\sapfewse.ocx
' SAP GUI Settings: Accessbility & Scripting -> Scripting
' Activate SAP GUI Scripting
' Disable Show natice Microsoft Windows dialogs
Sub ME23()
Call Main("ME23", "RM06E-BSTNR", "ctxtRM06E-BEDAT")
End Sub
Sub VA03()
Call Main("VA03", "VBAK-VBELN", "subSUBSCREEN_HEADER:SAPMV45A:4021")
@mkysoft
mkysoft / SAP sales order attachment downloader.vba
Last active February 24, 2023 15:10
SAP sales order attachment downloader
Sub SAP()
' Tools -> References ... -> Browse
' C:\Program Files (x86)\SAP\FrontEnd\SAPgui\sapfewse.ocx
' SAP GUI Settings: Accessbility & Scripting -> Scripting
' Activate SAP GUI Scripting
' Disable Show natice Microsoft Windows dialogs
Dim DOWNLOAD_FOLDER As String
Dim oSapGui As Object
Dim oApp As SAPFEWSELib.GuiApplication
@mkysoft
mkysoft / kubenav.desktop
Created October 28, 2022 15:20
kubenav desktop app shortcut for linux https://github.com/kubenav/kubenav/releases
[Desktop Entry]
Icon=/kubenav/resources/icon.png
Exec=/kubenav/kubenav %u
Version=1.0
Type=Application
Categories=Development
Name=Kubenav
StartupWMClass=kubenav
Terminal=false
MimeType=x-scheme-handler/kubenav;
@mkysoft
mkysoft / java.bat
Last active June 12, 2020 13:09
Prepare PATH and JAVA_HOME system variable for hybris
SET PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files (x86)\GitExtensions\;%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\bin;%USERPROFILE%\AppData\Roaming\npm;C:\Tools\Docker;C:\Program Files\SapMachine\JDK\11\bin
SET JAVA_HOME=C:\Program Files\SapMachine\JDK\11
where java.exe
java.exe -version
cd hybris\bin\platform
@mkysoft
mkysoft / Component.js
Created October 25, 2019 08:58
Change root view on app init for UI5
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/Device"
], function(UIComponent, Device, models) {
"use strict";
return UIComponent.extend("sap.ui.demo.myapp.Component", {
metadata: {
manifest: "json"
},
init: function() {
@mkysoft
mkysoft / credit-card-holder.html
Created October 3, 2018 13:06
Sequential number input boxes with auto focus for pure java script
<html>
<body>
<input id="number-1" type="text" maxlength="1" onkeypress="goToNext(this, event)" onkeydown="goToPrev(this, event)" />
<input id="number-2" type="text" maxlength="1" onkeypress="goToNext(this, event)" onkeydown="goToPrev(this, event)" />
<input id="number-3" type="text" maxlength="1" onkeypress="goToNext(this, event)" onkeydown="goToPrev(this, event)" />
<input id="number-4" type="text" maxlength="1" onkeypress="goToNext(this, event)" onkeydown="goToPrev(this, event)" />
<input id="number-5" type="text" maxlength="1" onkeypress="goToNext(this, event)" onkeydown="goToPrev(this, event)" />
<input id="number-6" type="text" maxlength="1" onkeypress="goToNext(this, event)" onkeydown="goToPrev(this, event)" />
<script>
function goToNext(sender, event) {
@mkysoft
mkysoft / GitLab.cls
Created July 26, 2018 11:12
Getting issues and label assignment date to Excel via VBA macro for time reporting
Private pGitLabClient As WebClient
Private pToken As String
Private Property Get Token() As String
If pToken = "" Then
If Credentials.Loaded Then
pToken = Credentials.Values("GitLab")("token")
Else
pToken = InputBox("GitLab Token?")
End If
@mkysoft
mkysoft / proxy.sh
Created July 23, 2018 11:54
Proxy setter for os, git and maven project by wifi name for mac os
#!/bin/bash
interface="Wi-Fi"
autoProxyURL="http://proxyserver:8080/accelerated_pac_base.pac"
proxyURL="http://proxyuser:proxypass@proxyserver:8080"
SSID=$(networksetup -getairportnetwork en0 | awk -F": " '{print $2}')
echo "WIFI SSID: $SSID"
if [ "$SSID" = "PROXY_NEEDED_WIFI" ]
then