Skip to content

Instantly share code, notes, and snippets.

View godbout's full-sized avatar
🏠
in Macau coz broken elbow

G. godbout

🏠
in Macau coz broken elbow
View GitHub Profile
@godbout
godbout / alfred-kat
Last active January 11, 2022 17:23
to show issue with SwiftSoup in release mode and first()?.siblingElements()
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="auto">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Download fight club YIFY Torrents - Kickass Torrents</title>
<meta name="description" content="Come and download fight club YIFY absolutely for free. Fast downloads.">
<link rel="stylesheet" type="text/css" href="/static/all.css" charset="utf-8" />
<link rel="shortcut icon" href="/favicon.ico" />
@godbout
godbout / karabiner-vi-mode-trigger-escape.json
Created August 8, 2020 13:29
karabiner complex modifications that allows some Vi moves in macOS with Escape as trigger (so, a little delay. but real Escape has been moved to Capslock OS wise).
{
"title": "Get some Vi moves on whole macOS",
"rules": [
{
"description": "Vi Mode [Escape as Trigger Key]",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "j",
windows:
- name: chrome
root: /
layout: even-horizontal
panes:
- commands:
- sleep 30
- /usr/bin/open -a "/Applications/Google Chrome.app" "http://ums.docker" --args
- exit
@godbout
godbout / docker-compose.yml
Created April 18, 2018 06:41
docker-compose.yml file for starting a tiki dev environment on your beautiful machine
version: '3'
services:
app:
image: godbout/tiki:latest
ports:
- 8080:80
volumes:
- .:/srv/www/app
links:
@godbout
godbout / How to call tableLiveFilter.md
Created October 29, 2012 07:34
Quick live filtering for tables (under MyUSJ scope, not jQuery)
MyUSJ.tableLiveFilter.init({
    searchInput: $('#search_filter'),
    searchTable: $('#ad_programs_sections, #ad_language_sections, #ad_other_sections')
});
@godbout
godbout / gist:3284628
Created August 7, 2012 11:23
php 5.4.5 install failed with homebrew-php
guilllo-air:ums guill$ brew upgrade -V
==> Upgrading php54
==> Downloading http://www.php.net/get/php-5.4.5.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php54-5.4.5
==> ./configure --prefix=/usr/local/Cellar/php54/5.4.5 --disable-debug --localstatedir=/usr/local/var --sysconfdir=/us
==> make
==> make install
==> /usr/local/Cellar/php54/5.4.5/bin/pear config-set php_ini /usr/local/etc/php/5.4/php.ini
config.log was copied to /Users/guill/Library/Logs/Homebrew
@godbout
godbout / fullcalendar_post.js
Created May 16, 2011 05:07
fullCalendar, send all events to web server through ajax
var calendar = $('#cal').fullCalendar({
...
eventDrop: function(event, dayDelta, minuteDelta, allDay, revertFunc) {
$.post("<?php echo url_for('@section_update_schedule?id=' .$section['id']) ?>", { events: JSON.stringify(calendar.fullCalendar('clientEvents')) }, function(data) {
if (data != 'success')
revertFunc();
}, 'json');
console.log(calendar.fullCalendar('clientEvents'));
console.log(JSON.stringify(calendar.fullCalendar('clientEvents')));