Skip to content

Instantly share code, notes, and snippets.

View marek-saji's full-sized avatar
:shipit:

Marek ‘saji’ Augustynowicz marek-saji

:shipit:
View GitHub Profile
@marek-saji
marek-saji / app.getflow.com.userstyle.css
Created December 22, 2016 11:14
If you _have_ to use app.getflow.com, but want it to make just a bit less ugly
/* better contrast for own messages */
.direct-messages .chat-message-list-item[data-type="message"]:not(.edit-mode).yours .chat-message-list-item-content
{
background-color: #3574a5;
}
/* super-sized emojis */
#app-content .emoji-sizer:only-child
{
transform: scale(1.5);
@marek-saji
marek-saji / fonts.conf
Last active November 20, 2017 03:18
Use Noto Emoji on Linux.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- prepend color emoji to all -->
<match>
<edit name="family" mode="prepend"><string>Noto Color Emoji</string></edit>
</match>
<!-- prepend black and white emoji if monospace font is used -->
<match>

Keybase proof

I hereby claim:

  • I am marek-saji on github.
  • I am saji (https://keybase.io/saji) on keybase.
  • I have a public key whose fingerprint is 66F1 FC7A 91D5 AA8B 64DF 3E41 ED64 F884 B8AA 020B

To claim this, I am signing this object:

@marek-saji
marek-saji / .bashrc (part).sh
Last active October 23, 2016 19:03
man(1) wrapper that tries running a command with --help if no man page found
# If no man page found, try running the command with --help
man ()
{
if man -w "$1" >/dev/null 2>&1
then
command man "$@"
elif which "$1" >/dev/null
then
echo "No man page found for $1, trying --help..."
"$1" --help 2>&1 | less -S
@marek-saji
marek-saji / vncscreen
Last active September 22, 2016 09:44
Create a virtual screen and allow connecting to it via VNC
#!/bin/sh
#
# Create a virtual screen and allow connecting to it via VNC
#
# Based on:
# - https://bbs.archlinux.org/viewtopic.php?id=191555
# - https://bitbucket.org/denilsonsa/small_scripts/src/default/screenlayout/create-virtual-modelines.sh?fileviewer=file-view-default
#
# GistID: 90c34e47689cbef235fe76251706c7d0
@marek-saji
marek-saji / gadugadu-stare.yaml
Last active April 26, 2017 11:00
Classic emojis from Gadu-Gadu for Slack. See https://github.com/lambtron/emojipacks on how to import.
title: Gadu-Gadu-stare
emojis:
- name: 3m_sie
src: http://aqq.wapster.pl/EmotsImgSrv.aspx?uid=-1&pid=1755&eid=18472
- name: 8P
src: http://aqq.wapster.pl/EmotsImgSrv.aspx?uid=-1&pid=1755&eid=18473
- name: aniolek
src: http://aqq.wapster.pl/EmotsImgSrv.aspx?uid=-1&pid=1755&eid=18474
- name: beksa
src: http://aqq.wapster.pl/EmotsImgSrv.aspx?uid=-1&pid=1755&eid=18333
@marek-saji
marek-saji / dabblet.css
Last active March 6, 2016 23:17
Untitled
:root
{
box-sizing: border-box;
font-family: sans-serif;
}
*
{
box-sizing: inherit;
}
@marek-saji
marek-saji / record-gif
Last active October 9, 2015 14:15
Select area on the screen and record it as a GIF
#!/bin/sh
# Select area on the screen and record it as a GIF.
# Running for the second time stops recording, so it's suitable for
# assigning to a key.
set -e
getbin ()
{
BIN="$( which "$1" || which "$( dirname "$0" )/$1" )"
@marek-saji
marek-saji / index.html
Created June 4, 2015 09:24
Fakturomir: dead–simple, single element polish invoicong
<!DOCTYPE html>
<!--
TODO
[ ] ładność
[ ] tabela
[ ] kolor?
[ ] suma kontrolna numeru konta
http://wipos.p.lodz.pl/zylla/ut/banki.html
[ ] suma kontrolna NIP
http://pl.wikipedia.org/wiki/NIP#Znaczenie_numeru
@marek-saji
marek-saji / dabblet.css
Created May 28, 2015 13:04 — forked from stoikerty/dabblet.css
SVG alternative to fittext.js
/* SVG alternative to fittext.js */
div {
width: 300px;
height: 150px;
float: left;
margin-right : 10px;
background: #f06;
font: bold 150% sans-serif;
text-shadow: 0 1px 2px rgba(0,0,0,.5);