Skip to content

Instantly share code, notes, and snippets.

@artygus
artygus / .vimrc
Created September 16, 2022 11:38
Vim stuff
set et
set ts=2
set sw=2
set syntax=on
filetype plugin on
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
@artygus
artygus / Gemfile
Created June 7, 2020 21:24
Capyabara-chrome visible text lag
source "https://rubygems.org"
gem "minitest"
gem "rake"
gem "capybara"
gem "selenium-webdriver"
gem "webdrivers"
@artygus
artygus / rotate_anim+drop_shadow-svg_vs_css.html
Created July 27, 2018 20:13
svg rotate drop shadow comparison (svg animation vs css)
<html>
<body style="background:blue;">
<style>
@keyframes spinner {
to { transform: rotate(360deg); }
}
.spinner {
background: no-repeat center center;
background-size: 100%;
@artygus
artygus / fswatch-1.sh
Created February 27, 2018 11:42
Monitor single level of directory in OSX
pwd | wc -c
fswatch -0 ./ | xargs -0 -n 1 -I {} sh -c 'echo {} | cut -c 28- | awk "!/\//"'
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var myWebView: UIWebView!
@IBOutlet weak var btnSwitch: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
@artygus
artygus / date_from_access_log.sh
Created October 27, 2017 11:10
Extract date from gzipped access log
gzip -dc access.log.1.gz | head -c 200 | head -n 1 | awk '{print $4}' | xargs -I {} date -jf "[%d/%b/%Y" \{} +%Y-%m-%d
@artygus
artygus / .vimrc
Created April 11, 2017 21:12
vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
set et
set sw=2
set ts=2
set hlsearch
au FileType python setl sw=2 sts=2 et
@artygus
artygus / iwdp-deps.sh
Last active January 9, 2016 15:36
ios-webkit-debug-proxy msys2
cd libxml2-2.9.0
./configure CC='gcc -static-libgcc' --without-iconv && make && make install
cd openssl-1.0.0d
CC='gcc -static-libgcc' ./Configure mingw --prefix=/usr/local shared
make && make install
cd pcre-8.37
CC='gcc -static-libgcc' ./configure --disable-cpp --disable-shared --enable-newline-is-anycrlf --enable-utf8 --enable-unicode-properties
make && make install