Skip to content

Instantly share code, notes, and snippets.

View lulu-berlin's full-sized avatar
馃彔

Lulu lulu-berlin

馃彔
  • Berlin
View GitHub Profile
@lulu-berlin
lulu-berlin / shalechet.md
Last active May 1, 2017 15:31
Shalechet

讛砖讬专 "砖诇讻转" 砖诇 注诪讬专 讘谞讬讜谉 诪转谞讙谉 诇讬 讘专讗砖 诪讗讝 砖砖诪注转讬 讗讜转讜 诇专讗砖讜谞讛 讘专讚讬讜 (讻谞专讗讛 讘-2002) 讜讛讜讗 诪讗讜讚 谞讜讙注 诇诇讬讘讬. 讛拽讜诇 砖诇 注诪讬专 讘谞讬讜谉 谞驻诇讗 讜诪专讙砖 讜讛诪谞讙讬谞讛 诪讬讜讞讚转, 诇讗 爪驻讜讬讛 讜诪专转拽转. 讬讜转专 诪讛讻讜诇 讗谞讬 谞驻注诐 诪讛诪讬诇讬诐 砖讘注讬谞讬讬 谞讜讙注讜转 讘注讜诪拽 讛住转讬专讜转 讛驻谞讬诪讬讜转 砖诇 讛谞驻砖 讜讞砖讘转讬 诇砖转祝 讻诪讛 诪讛诪讞砖讘讜转 砖讬砖 诇讬 注诇讬讛谉.

讛砖讬专 诪转讗专 讗讜讛讘 谞讻讝讘 砖诪驻爪讬专 讘讗讛讜讘转讜 诇讗 诇注讝讜讘 讗讜转讜. 讛讝诪谉 砖讘转讜讻讜 讛讚专诪讛 讛讝讗转 诪转讞讜诇诇转 诪讻讜谞讛 "砖诇讻转" 讜讝讗转 讙诐 讛讻讜转专转 砖诇 讛砖讬专.

讛诪专讞讘 砖诇 讛砖讬专, 讘谞讬讙讜讚 诇讻讜转专转, 诇讗 诪转讗专 诪讗驻讬讬谞讬诐 砖诇 住转讬讜 讜讘讗讜驻谉 讻诇诇讬 讗讬谉 讘讜 转讬讗讜专讬诐 拽讜谞拽专讟讬讬诐 砖诇 诪拽讜诪讜转 讗讜 讗谞砖讬诐. 讻诇 驻注诇讬 讛转谞讜注讛 讛诐 讗讜 讘爪讬讜讜讬 砖诇 讛讗讜讛讘 讛谞讻讝讘 诇讗讛讜讘转讜 ("注爪专讬", "讗诇 转诇讻讬") 讗讜 讘注转讬讚 砖诇 诪讛 砖讛讗讛讜讘讛 爪驻讜讬讛 诇注砖讜转 ("讗转 转爪讗讬"). 讛讝诪谉 砖讘讜 讛砖讬专 诪转专讞砖 诪讻讜谞住 诇专讙注 讗讞讚 诪诇讗 讘诪转讞 讜住转讬专讜转 讘讛讜讜讛.

讛讗讜讛讘 讛谞讻讝讘 诪转讞谞谉 讘驻谞讬 讗讛讜讘转讬 砖诇讗 转注讝讜讘 讗讜转讜, 讗讘诇 讛谞讬诪讜拽讬诐 砖诇讜 (砖谞砖诪注讬诐 讘讛转讞诇讛 讻讗讬诇讜 砖讛诐 诪讻讜讜谞讬诐 讗诇讬讜 注爪诪讜) 诪驻转讬注讬诐 讜讘诪讜讚注 诇讗 诪谞住讬诐 诇砖讻谞注. 讛讜讗 讗讜诪专 砖讛讜讗 "注讜讚 诇讗 诪讜讻谉" 诇讛讬讜转 诇讘讚 讜讗讝 诪讘讬谉 砖讘注爪诐 讛讜讗 "讗讚诐 砖诪转讙讘专" - 讻诇讜诪专, 讛讜讗 讬讜讚注 砖讛讜讗 讬讜讻诇 诇讛住转讙诇 诇讛讬注讚专 砖诇讛, 讗讘诇 讛讬讚讬注讛 讛讝讗转 诪注讜专专转 讘讜 驻讞讚. 讬砖 讻讗谉 诪注讙诇 砖诇 驻讞讚 诪讛转诪讜讚讚讜转 注诐 爪注专 爪驻讜讬 =

@lulu-berlin
lulu-berlin / fix-screensaver-kblayout.sh
Created March 27, 2017 03:53
fix for gnome-screensaver lock not allowing to change keyboard layout
#!/usr/bin/env bash
# This bug is well documented and still not fixed for a long time:
# https://bugs.launchpad.net/gnome-screensaver/+bug/872701
# This script is inspired by two scripts that were submitted on askubuntu.com
# to fix this issue in Gnome and in Unity:
# http://askubuntu.com/a/803418/472924
# http://askubuntu.com/a/857652/472924
@lulu-berlin
lulu-berlin / fix-numeric-keypad
Last active July 1, 2017 11:39
How to fix numeric keypad on Linux not working with java applications
# credit to Peter L on StackOverflow:
# https://stackoverflow.com/questions/32753190/how-to-get-numeric-keypad-arrows-working-with-java-applications-on-linux/32753332#32753332
#!/bin/bash
SYMBOLS="/usr/share/X11/xkb/symbols"
KEYPAD="$SYMBOLS/keypad"
# create a backup in a temporary directory
TMP=$(mktemp -d)
@lulu-berlin
lulu-berlin / .block
Last active May 4, 2016 19:05
cat-and-paste
license: cc-by-4.0
border: no
height: 800
" Alternative Vim Keymap file for hebrew
" Created by: Ya'ar Hever
" Last Updated: 09/08/2015 23:13:10
" Use this short name in the status line.
let b:keymap_name = "heb-lyx"
loadkeymap
a <char-0x5e9> " 砖 - shin
b <char-0x5e0> " 谞 - nun
c <char-0x5d1> " 讘 - bet
@lulu-berlin
lulu-berlin / cygwin-setup.sh
Created October 4, 2015 19:58
A shell script for Cygwin to download and run the install program
#!/bin/bash
if [[ $(getconf LONG_BIT) == "64" ]]; then
setup_file="setup-x86_64.exe"
else
setup_file="setup-x86.exe"
fi
wget -N "https://cygwin.com/$setup_file" -P /usr/local/bin
@lulu-berlin
lulu-berlin / FSharpCompilerService-error.fsx
Last active December 19, 2016 19:58
An FSI script to reproduce an error in FSharp.Compiler.Service: doesn't find identifiers beginning with an underscore (with double backticks)
#r "FSharp.Compiler.Service.dll"
open System.IO
open Microsoft.FSharp.Compiler.SourceCodeServices
let checker = FSharpChecker.Create ()
let filesource1 = """
module Abc
let x = 1
let y = x + 1
@lulu-berlin
lulu-berlin / multiwordthesaurus.vim
Last active September 16, 2015 22:15
A script to handle multi-word thesaurus files with underscores instead of spaces
function! MultiWordThesaurus()
" if a thesaurus is already open, abort.
if pumvisible() || &thesaurus == ""
return 0
endif
" mark the cursor position
silent exec "normal! mt"
" take a window of 6 words
@lulu-berlin
lulu-berlin / yiddish.vim
Created August 16, 2015 22:17
A Yiddish keyboard layout for VIM
" VIM keyboard layout for Yiddish and Hebrew
" based on the Mac keyboard layout by Jack (Yosl) and Shoshke-Reyzl Juni
" (url: http://www.shoshke.net/)
" Adapted to VIM by Ya'ar Hever
" Last Updated: Sun Aug 16 22:22:22 CEST 2015
" Use this short name in the status line.
let b:keymap_name = "UYIP"
loadkeymap
a <char-0x5e9> " 砖 - shin
@lulu-berlin
lulu-berlin / timer.fs
Created August 6, 2015 17:28
An accurate timer for F# without using System.Diagnostics
//
// This is in fact a thin wrapper around QueryPerformanceCounter() and QueryPerformanceFrequency().
// When those are not available it falls back to System.DateTime.UtcNow.Ticks.
// This module is based on the C# code of StopWatch.
// See: http://referencesource.microsoft.com/#System/services/monitoring/system/diagnosticts/Stopwatch.cs
//
open System.Runtime.InteropServices
open System.Runtime.Versioning