Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Linda-chan's full-sized avatar
🐄
То засада, то измена...

Linda Kaioh Linda-chan

🐄
То засада, то измена...
View GitHub Profile
#!/bin/bash
SRC_FILE_NAME="$1"
if [[ "$SRC_FILE_NAME" = "" ]] ; then
echo "Usage: $0 FILE"
exit
fi
if [[ ! -f "$SRC_FILE_NAME" ]] ; then
@Linda-chan
Linda-chan / vimdiff.md
Last active December 6, 2018 12:58
Most useful hotkeys for visual comparsion in vim

vimdiff hotkeys

Most useful:

]c       – next difference
[c       – prev difference

dp       – copy left to right
do – copy right to left
@Linda-chan
Linda-chan / do-cleaner.rb
Last active December 23, 2018 11:06
Clean up domain records from verification records
#!/usr/local/bin/run_ruby_script_in_rvm
require "json"
require "os"
DOCTL_FILE_NAME = "doctl"
#====================================================================
def main
if OS.windows? then
@Linda-chan
Linda-chan / mpv.conf
Created January 14, 2019 19:21
mpv player config
screenshot-format=png
# Windows
screenshot-template=Z:\Screenshots\%f_snapshot_%wH.%wM.%wS_[%tY.%tm.%td_%tH.%tM.%tS]
# Linux
#screenshot-template=~/ScreenShots/%f_snapshot_%wH.%wM.%wS_[%tY.%tm.%td_%tH.%tM.%tS]
volume=0
#no-audio
@Linda-chan
Linda-chan / input.conf
Created January 14, 2019 19:22
mpv player config
esc quit
enter cycle fullscreen
alt+enter cycle fullscreen
kp_enter cycle fullscreen
Z screenshot # take a screenshot
z screenshot video # ...without subtitles
f12 screenshot video
ctrl+s screenshot video # override "with subtitles and OSD, and scaled"
ctrl+S screenshot video # override "with subtitles and OSD, and scaled"
@Linda-chan
Linda-chan / BeepFix.REG
Created January 18, 2019 06:48
Fix for spontaneous beeps in Windows XP
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\WinLogon\.Default\.current]
@=""
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\WinLogon\SystemAsterisk\.current]
@=""
[HKEY_USERS\S-1-5-18\AppEvents\Schemes\Apps\WinLogon\.Default\.current]
@=""
#include "windows.bi"
#include "win\shellapi.bi"
'====================================================================
Private Function MyCommand() As String
Dim lpCmdLine As LPSTR
Dim CmdLine As String
Dim RC As Integer
lpCmdLine = GetCommandLine()
#include <AJP System.H>
//===================================================================
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
char szDirectory[513] = "\0";
GetCurrentDirectory(512, szDirectory);
#include "windows.bi"
#include "win\shellapi.bi"
'====================================================================
Declare Function Main() As Integer
'====================================================================
Main
'====================================================================
' https://stackoverflow.com/questions/34514580/get-document-properties-using-vbs
' https://stackoverflow.com/questions/5651890/using-vba-to-get-extended-file-attributes
Option Explicit
Dim FSO
Dim Shell
Call Main()
'====================================================================