Skip to content

Instantly share code, notes, and snippets.

View abatkin's full-sized avatar

Adam Batkin abatkin

View GitHub Profile
@abatkin
abatkin / CITRIX.md
Created May 26, 2017 03:53
Make Citrix Receiver and Storefront usable on Linux

In order to make Citrix Receiver on Linux function nicely, I have modified the following settings in ~/.ICAClient/All_Regions.ini:

  • In [Virtual Channels\Seamless Windows]:
    • Set TWIMode=FALSE
    • This forces the window into true Fullscreen mode (as opposed to Seamless mode where the window happens to be fullscreen - there is a big difference!)
  • In [Virtual Channels\Mouse]:
    • Set MouseSendsControlV=False
    • This makes the middle mouse button function as a middle mouse button (as opposed to sending Ctrl+V, which I can't imagine anyone on Earth would actually want)
  • In [Virtual Channels\Keyboard]:
  • Set TransparentKeyPassthrough=FullScreenOnly
@abatkin
abatkin / WINDOWS.md
Last active January 29, 2021 04:01
Setting up Windows

Basic Software

  • Firefox
  • Firefox Addons
    • BitWarden
    • Cookie Manager
    • Facebook Container
    • Firefox Multi-Account Containers
  • FoxyProxy Standard
@abatkin
abatkin / AutoHotkey.ahk
Last active January 28, 2021 17:49
Keyboard setup
; VirtuaWin - Switch to next desktop
sc169:: ; Forward
PostMessage, 1034, 1026, 0, , VirtuaWinMainClass
return
; VirtuaWin - Bring window to next desktop
+sc169:: ; Shift+Forward
PostMessage, 1049, 0, -1026, , VirtuaWinMainClass
return
@abatkin
abatkin / .vimrc
Created January 28, 2021 06:35
Vim testing on Windows
"call pathogen#infect()
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'mileszs/ack.vim'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'vim-scripts/synic.vim'
@abatkin
abatkin / README.md
Last active September 2, 2019 02:50
Raspberry Pi Setup

Basic Setup

  • Download Raspbian (I used the "Lite" variant)
  • Copy to SD Card
% dmesg # to figure out which device is being used
...
% dd bs=4M if=2019-07-10-raspbian-buster-lite.img of=/dev/sdc conv=fsync status=progress
  • Mount boot partition and create file ssh
@abatkin
abatkin / basic-system.md
Last active March 23, 2019 15:12
Make Gnome 3.0 Usable (Fedora 20)

Basic System

This set of documents explains how I make a "usable" developer system using Fedora under various desktop environments. This was all tested with Fedora 20.

  • Update all packages
  • Fix dumb GTK+ 3 Scrollbar behavior:
# http://askubuntu.com/questions/295988/how-to-fix-gtk3-scrollbar-behavior
# https://bugzilla.gnome.org/show_bug.cgi?id=683885
# Add to .config/gtk-3.0/settings.ini:
@abatkin
abatkin / IntelliJ.MD
Last active July 2, 2018 18:27
IntelliJ IDEA Customizations

IntelliJ IDEA Customizations

This file describes the customizations that I have made to my IntelliJ installation:

  • Editor -> File and Code Templates -> Includes -> File Header: Empty
  • Editor -> General -> Uncheck "Honor "CamelHumps" words settings when selecting on double click
  • Editor -> General -> Smart Keys -> Check "Use "CamelHumps" words"

Templates

@abatkin
abatkin / README.md
Last active May 22, 2017 13:54
OpenVPN Setup on CentOS or RHEL 7

This document is based on an older DigitalOcean document: https://www.digitalocean.com/community/tutorials/how-to-setup-and-configure-an-openvpn-server-on-centos-7

  • Install openvpn: yum install openvpn
  • Install easy-rsa (for your own CA): yum install easy-rsa
  • Configure openvpn:
    • Find location of the sample server.conf file from the openvpn distribution and copy to /etc/openvpn/server: cp /usr/share/doc/openvpn-2.4.2/sample/sample-config-files/server.conf /etc/openvpn/server
    • Edit the configuration file and uncomment the following lines:
      • `toplogy subnet
      • comp-lzo
  • user nobody
@abatkin
abatkin / README.md
Last active April 27, 2016 04:47
XFCE on Fedora 23

Introduction

This is my description of what I did to customize a base install of the Fedora 23 XFCE spin to my needs.

Installation

Apparently there is some sort of bug the the Nouveau driver with dual monitors (at least on the GTX 750). So step 1 was to unplug one of my monitors. I didn't really customize anything, but as soon as it was done installing, I installed the propriatary NVidia drivers. I'm a big Free Software fan, but sometimes I need to Get Things Done and the fact is that the Nouveau drivers kinda suck (also they don't work in my setup).