Skip to content

Instantly share code, notes, and snippets.

View pugson's full-sized avatar

Wojtek Witkowski pugson

View GitHub Profile
# Author - Arjun Variar
# Thanks to Ben for introducing me to fiftyfootshadows, Awesome Wallpapers!!
#!/bin/sh
if [[ -z "$TMP" ]]
then
TMP="/private/tmp"
fi
dir="$HOME/Wallpapers/fiftyfootshadows"
@pugson
pugson / psiupuxa.rb
Last active August 29, 2015 14:13 — forked from schmich/psiupuxa.rb
# Download desktop-resolution wallpapers from http://psiupuxa.com/
# into the current directory.
require 'nokogiri'
require 'open-uri'
require 'openssl'
require 'uri'
# Uncomment next line if you don't have the Ruby SSL cert bundle installed.
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
@pugson
pugson / .zshrc
Created May 27, 2016 11:23
Adds arrow on new line in zsh prompt
PROMPT="$PROMPT \
%{$terminfo[bold]$fg[red]%}→ %{$reset_color%}"
@pugson
pugson / run_scripts.sh
Created August 11, 2016 22:28
Send Telegram Bot Notification when a torrent finishes downloading in Transmission
#!/bin/sh
# Replace chat_id value with your chat id from @myidbot
# Replace XXXXXXXXX:xxxxxxxxxxxxxxxxxxxxx with your bot token from @BotFather
curl --data chat_id=XXXXXXXXX --data-urlencode text=�~\~E\ $TR_TORRENT_NAME "https://api.telegram.org/botXXXXXXXXX:xxxxxxxxxxxxxxxxxxxxx/sendMessage"
@pugson
pugson / svgo.json
Created September 7, 2016 23:53
Compact settings for Sketch's SVGO Compressor Plugin
{
"comment": "This is the settings file for the SVGO Compressor Plugin. For more info, please check <https://github.com/BohemianCoding/svgo-compressor>",
"pretty": false,
"indent": 0,
"plugins": [
{
"name": "cleanupAttrs"
},
{
"name": "cleanupEnableBackground"

Keybase proof

I hereby claim:

  • I am pugson on github.
  • I am wkw (https://keybase.io/wkw) on keybase.
  • I have a public key whose fingerprint is 9CA7 07A1 BAC0 8F37 8810 E4E5 82C4 5CFD 085A DFBB

To claim this, I am signing this object:

@pugson
pugson / easing.css
Created August 2, 2018 16:05 — forked from bendc/easing.css
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
@pugson
pugson / WIP GIFs.json
Created August 12, 2018 16:02
Handbrake high-quality MP4 muted videos
{
"PresetList" : [
{
"AlignAVStart" : false,
"AudioCopyMask" : [
],
"AudioEncoderFallback" : "ca_aac",
"AudioLanguageList" : [
@pugson
pugson / style.css
Created March 7, 2019 23:22
Break element out of a container
.element {
width: 100vw;
position: relative;
left: calc(-1 * (100vw - 100%) / 2);
}
@pugson
pugson / readme.md
Created April 4, 2019 15:11
How to fix unknown host on .dev TLD after using puma-dev

How to fix unknown host on .dev TLD after using puma-dev

  1. Run scutil --dns
  2. Check if you have something like this in your output:
resolver #8
  domain   : dev
  nameserver[0] : 127.0.0.1
  port     : 9253
 flags : Request A records, Request AAAA records