Skip to content

Instantly share code, notes, and snippets.

@bigfox
bigfox / magic_button.formula
Created November 2, 2021 14:41
HCL Notes Magic Button
REM {Get a listing of all the fields on the current document};
List := @DocFields;
REM {Possible data types to choose from.};
REM {I called Number Integer because use keyboard to select what you want with keyboard quicker.};
DataTypes := "Text" : "Date" : "Integer" : "Password" : "Name" : "Common Name" : "**** Remove Field ****" : "Text Multi Value" : "Date Multi Value" : "Integer Multi Value" : "Name Multi Value";
REM {Prompt for which field needs to be updated.};
EditField := @Prompt([OkCancelList]; "Select Field To Update"; "Select the field you wish to update:"; ""; List : "**** ADD A NEW FIELD ****");
@bigfox
bigfox / android_adb_wifi.sh
Last active June 1, 2017 13:25
Android ADB over Wifi
# Get device IP address
adb shell ip addr show wlan0
# Run ADB
adb tcpip 5555
adb connect <device_ip_address>:5555
@bigfox
bigfox / git_commit_count
Last active March 31, 2025 12:45
Git - number of commits by author (exclude merge commits)
git shortlog -s -n --all --no-merges
@bigfox
bigfox / custom_login_msg_cz
Created September 2, 2015 13:02
IBM Domino custom login form - messages (en + cz)
sDefault := "Prosím, zadejte své údaje:";
sNotEnough := "%1, nemáte oprávnění pro přístup k %2." + @NewLine + @NewLine + "Prosím, použijte uživatelské jméno, které má dostatečná přístupová práva:";
sInvalid := "Zadali jste neplatné uživatelské jméno nebo heslo." + @NewLine + @NewLine + "Prosím, přihlaste se znovu:";
sExpired := "Vaše přihlášení vypršelo. Prosím, přihlaste se znovu:";
sOutOfSync := "%1, vaše přihlášení bylo zrušeno z důvodu problému s časem na přihlašovacích serverech." + @NewLine + @NewLine + "(Pro vyřešení problému bude nutné sesynchronizovat čas mezi servery.)" + @NewLine + @NewLine + "Prosím, přihlaste se znovu:";
sLockedOrInvalid := "Jste uzamčen, nebo jste zadali neplatné uživatelské jméno nebo heslo." + @NewLine + @NewLine + "Prosím, přihlaste se znovu:";
@bigfox
bigfox / b4x-version
Created June 17, 2015 21:34
Version of installed Bootstrap4Xpages on Domino server
tell http osgi ss com.ibm.xsp.extlib
@bigfox
bigfox / extlib-version
Created June 17, 2015 21:32
Version of installed Extension library on Domino Server
tell http osgi ss com.ibm.xsp.extlib
@bigfox
bigfox / domino
Last active April 24, 2016 01:00
IBM Domino startup script for Linux
#!/bin/sh
#
# A startup script for the Lotus Domino 6 server
#
# chkconfig: 345 95 5
# description: This script is used to start the domino \
# server as a background process.\
#
# Usage /etc/init.d/domino start|stop|status|restart
@bigfox
bigfox / run-agent
Created February 27, 2014 12:02
Run agent from IBM Domino adminstrator console
Tell Amgr Run "DatabaseName.nsf" 'AgentName'
@bigfox
bigfox / lotusscript-error-handling.vb
Last active April 1, 2016 17:57
Lotusscript - Error handling
' FUNCTION
Function TestFunction(param as String) As String
On Error GoTo ErrorThrower
' CUSTOM CODE
Exit Function
ErrorThrower:
Error Err, Error & Chr(13) & "Function: " & GetThreadInfo(1) & ", Line: " & Erl
End Function