This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DROPBOX_PATH=/Apps/Keepass2Android/main.kdbx | |
KDBX_DROPBOX=~/Documents/keepass/dropbox/main.kdbx | |
KDBX_LOCAL=~/Documents/keepass/main.kdbx | |
YUBIKEY_SERIALNO=9851170 | |
YUBIKEY_SLOT=2 | |
# 1. obtain dropbox API credentials from local keepassxc database | |
APP_KEY=$(keepassxc-cli show --yubikey $YUBIKEY_SLOT:$YUBIKEY_SERIALNO --no-password "$KDBX_LOCAL" Dropbox --attributes "API key") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for f in $(git diff --cached --name-only); do | |
if [ "${f##*\.}" = "mmp" ]; then | |
lmms_normalizer "${f}" "${f}" | |
git add "${f}" | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
***** InstancesOf('Win32_OperatingSystem') ***** | |
BootDevice: \Device\HarddiskVolume1 | |
BuildNumber: 19041 | |
BuildType: Multiprocessor Free | |
Caption: Microsoft Windows 10 Pro | |
CodeSet: 1252 | |
CountryCode: 1 | |
CreationClassName: Win32_OperatingSystem | |
CSCreationClassName: Win32_ComputerSystem | |
CSDVersion: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ask host to create an Automation object instance | |
let locator = createOleObject('WbemScripting.SWbemLocator'); | |
const computerName = '.'; | |
const namespace = ''; | |
const userName = ''; | |
const password = ''; | |
// use it (access its properties and methods) from Javascript | |
let service = locator.ConnectServer(computerName, namespace, userName, password); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Calling javascript methods on variants creates temporary variant arrays for passing parameters. | |
// To avoid access violations after freeing the runtime, make sure all your code using Variants gets out of scope first. | |
procedure Test(Context: TChakraCoreContext); | |
var | |
Global, Json, MyObj: Variant; | |
begin | |
// assign javascript Global to a Variant | |
Global := JsValueToVariant(Context.Global); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file was initially generated by Windows Terminal Preview 1.1.1812.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Unit1; | |
interface | |
uses | |
System.SysUtils, System.Classes; | |
type | |
TDataModule1 = class(TDataModule) | |
procedure DataModuleCreate(Sender: TObject); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compare two selected files in Meld | |
[Nemo Action] | |
############################################# | |
#### DEBUGGING: | |
#### | |
#### Run Nemo with the environment | |
#### variable NEMO_ACTION_VERBOSE | |
#### set to get useful log output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
if [ "$color_prompt" = yes ]; then | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;35m\]$(parse_git_branch)\[\033[00m\]\$ ' | |
else | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\$ ' | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<CONFIG> | |
<Lazarus> | |
<ColorSchemes Version="12"> | |
<Names Count="1"> | |
<Item1 Value="My Colors"/> | |
</Names> | |
<Globals Version="12"> | |
<SchemeMy_Colors> | |
<ahaGutter Background="clBtnFace"/> |
NewerOlder