Skip to content

Instantly share code, notes, and snippets.

View rafauke's full-sized avatar
🎯
Focusing

Rafał Wyszomirski rafauke

🎯
Focusing
View GitHub Profile
@rafauke
rafauke / gog_extract_konami_collectors_series.sh
Created August 19, 2021 18:17 — forked from shmerl/gog_extract_konami_collectors_series.sh
For extracting GOG Konami Collector's Series
#!/bin/bash
# Extractor for game ROMs from Konami Collector's Series.
#
# Usage: gog_extract_konami_collectors_series.sh <path_to>/cc.exe
#
# Make sure you have xxd hexdump tool and dd installed.
#
# Games locations:
@rafauke
rafauke / emacsclient.desktop
Last active April 21, 2021 20:57
Emacs .desktop entry (client)
[Desktop Entry]
Name=Emacs (Client)
GenericName=Text Editor
Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=emacsclient -a '' -c %F
Icon=emacs
Type=Application
Terminal=false
Categories=Development;TextEditor;
(defun rw/improve-js-fontlock ()
"Add specific strings to font lock."
(font-lock-add-keywords 'rjsx-mode
'(("`\\(.+\\)`"
("\\$" (beginning-of-line) nil (0 'font-lock-function-name-face t t))
("{" (beginning-of-line) nil (0 'font-lock-variable-name-face t t))
("}" (beginning-of-line) nil (0 'font-lock-variable-name-face t t))))))
(modify-syntax-entry ?` "\"" rjsx-mode-syntax-table)
(rw/improve-js-fontlock)
#!/usr/bin/env bash
# from https://github.com/westurner/dotfiles/tree/develop/scripts
### pbcopy
# Shim to support something like pbcopy on Linux
function pbcopy {
__IS_MAC=${__IS_MAC:-$(test "$(uname -s)" == "Darwin" && echo 'true')}
#!/bin/bash
# Removes all archives from Xcode. Used in interactive mode.
# Remove -I parameter if used in non-interactive mode.
rm -rf -I ~/Library/Developer/Xcode/Archives/*
;; Keybonds
(global-set-key [(hyper a)] 'mark-whole-buffer)
(global-set-key [(hyper v)] 'yank)
(global-set-key [(hyper c)] 'kill-ring-save)
(global-set-key [(hyper s)] 'save-buffer)
(global-set-key [(hyper l)] 'goto-line)
(global-set-key [(hyper w)]
(lambda () (interactive) (delete-window)))
(global-set-key [(hyper z)] 'undo)
@rafauke
rafauke / .htaccess
Created July 25, 2018 16:49
Simple Apache .htaccess for SPA
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
@rafauke
rafauke / keybase.md
Last active February 13, 2017 15:02
Keybase.io proof

Keybase proof

I hereby claim:

  • I am rafauke on github.
  • I am ralfix (https://keybase.io/ralfix) on keybase.
  • I have a public key ASA9DUPAx7eh7eYlExja7D-Dy70lSRefP4JFv5g7xEEgBAo

To claim this, I am signing this object: