Skip to content

Instantly share code, notes, and snippets.

--- original/google-chrome.desktop
+++ fixed/google-chrome.desktop
@@ -112,6 +112,7 @@
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
X-Ayatana-Desktop-Shortcuts=NewWindow;NewIncognito
+StartupWMClass=Google-chrome-stable
[NewWindow Shortcut Group]
Name=New Window
@esamson
esamson / Solarized Dark (Darcula).icls
Last active February 9, 2017 05:34
Solarized Colorscheme for IntelliJ IDEA (from https://github.com/jkaving/intellij-colors-solarized )
<scheme name="Solarized Dark (Darcula)" version="142" parent_scheme="Darcula">
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="CONSOLE_FONT_NAME" value="Menlo" />
<option name="EDITOR_FONT_NAME" value="Monaco" />
<colors>
<option name="ADDED_LINES_COLOR" value="baffba" />
<option name="ANNOTATIONS_COLOR" value="586e75" />
<option name="ANNOTATIONS_MERGED_COLOR" value="2aa198" />
<option name="CARET_COLOR" value="eee8d5" />
<option name="CARET_ROW_COLOR" value="73642" />
@esamson
esamson / retext
Created August 23, 2018 23:20
Reencode text file character set and line endings.
#!/usr/bin/env amm
import $ivy.`com.github.pathikrit::better-files:3.5.0`
import $ivy.`commons-io:commons-io:2.6`
import java.io.{BufferedReader, InputStreamReader, PrintWriter}
import java.nio.charset.{Charset, StandardCharsets}
import ammonite.ops._
import better.files._
import org.apache.commons.io.ByteOrderMark
@esamson
esamson / calibre-install-user.sh
Created November 10, 2018 10:45
Install Calibre on Linux without sudo
wget https://download.calibre-ebook.com/linux-installer.sh
sh linux-installer.sh install_dir=~/.local/opt isolated=True
@esamson
esamson / home-backup.sh
Created December 2, 2019 21:23
borg backup script
#!/bin/sh
#
# Daily backup job.
# Belongs in /etc/cron.daily/
# Back up /home partition to /media/backup partition.
SRC=/home/
DEST=/media/backup/bomuhei/
LOG=/media/backup/last_backup.bomuhei
@esamson
esamson / .gitignore
Last active June 21, 2020 00:47
Podman services
container-*.service