Skip to content

Instantly share code, notes, and snippets.

View JuPlutonic's full-sized avatar
💭
🍺

AMZ JuPlutonic

💭
🍺
  • Msk, Russian Fed.
View GitHub Profile
# Copyright 2018 Stanko K.R. <me@stanko.io>
#
# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute,
# sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject
# to the following conditions:
@munepi
munepi / po4a.rb
Last active April 12, 2020 19:33
Unofficial Homebrew Formula for po4a https://po4a.org/
class Po4a < Formula
desc "Tools to ease the translation of documentation"
homepage "https://po4a.org/"
url "http://ftp.debian.org/debian/pool/main/p/po4a/po4a_0.54.orig.tar.gz"
mirror "https://github.com/mquinson/po4a/releases/download/v0.54/po4a-0.54.tar.gz"
sha256 "596f7621697f9dd12709958c229e256b56683d25997ac73c9625a2cc0c603d51"
head "https://github.com/mquinson/po4a.git"
depends_on "libxslt"
depends_on "docbook"
@heptal
heptal / mpd.md
Last active January 16, 2020 21:51

I recently discovered mpd and found it to be a nice little program. There is a dearth of nice-looking OSX clients, though (besides terminal clients).

Using the hs.socket extension (in master, but not yet in the latest official release), I've created a Hammerspoon frontend that speaks the mpd protocol. With what I have so far, it's already much faster and easier to use than iTunes. I'll link the code on the Hammerspoon wiki once everything is finalized, but an in-progress version is available here.

Using hs.menubar, I've created a series of menubar items to assist with controlling playback. Hovering over the play/pause icon shows the current track.

@naomi-henderson
naomi-henderson / CMIP5-MakeFigs-June20.ipynb
Last active April 29, 2020 23:42
June 20 version of the CMIP5-MakeFigs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vcavallo
vcavallo / notes.md
Last active August 25, 2020 09:01
rails + webpacker + webpack-dev-server + vue + remote dev vps and nginx

Process goes something like this:

bundle update webpacker
rails webpacker:binstubs
yarn upgrade @rails/webpacker@4.0.0-pre.2 # or 'add' instead of upgrade
yarn upgrade webpack-dev-server@"'3.1.4'  # or 'add' instead of upgrade
yarn add webpack-cli

bundle exec rails webpacker:install # don't do this! the scrpit seems to overwrite the @rails/webpacker version to 3.5.3
@andyyou
andyyou / rails_webpacker_bootstrap_expose_jquery.md
Last active August 9, 2022 07:38
Rails 5.2 with webpacker, bootstrap, stimulus starter

Rails 5.2 with webpacker, bootstrap, stimulus starter

This gist will collects all issues we solved with Rails 5.2 and Webpacker

Create Project

# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test
@SkyzohKey
SkyzohKey / screen-spoofer.user.js
Last active June 4, 2024 10:23
~ Spoof the reported window.screen as the most common one so that it can't be used to fingerprint browser.
// ==UserScript==
// @name Spoof screen resolution & color depth
// @namespace https://skyzohlabs.be
// @version 1.0.5
// @description Spoof the reported window.screen as the most common one so that it can't be used to fingerprint browser.
// @author SkyzohKey
// @include http://*
// @include https://*
// @run-at document-end
// @grant none
@stephenbaidu
stephenbaidu / immutable.rb
Created March 8, 2017 23:41
Include Ruby/Rails module with arguments/options
# Usage
class Payment < ActiveRecord::Base
# Readonly columns
include Immutable.for :customer_id, :amount
end
# Implementation 1: Rails Concern
module Immutable
extend ActiveSupport::Concern
@okhowang
okhowang / lua.patch
Last active February 16, 2019 20:42
lua 5.2 so patch
diff -Naur lua-5.2.4.origin/Makefile lua-5.2.4/Makefile
--- lua-5.2.4.origin/Makefile 2015-02-24 09:28:54.000000000 +0800
+++ lua-5.2.4/Makefile 2017-02-04 10:08:40.000000000 +0800
@@ -47,12 +47,13 @@
# Lua version and release.
V= 5.2
R= $V.4
+TO_LIB+= liblua.so liblua.so.$(V) liblua.so.$(R)
# Targets start here.
@joshhartman
joshhartman / exim.conf
Last active October 17, 2022 18:44
Exim Configuration for Gmail SMTP Relay (CentOS 6)
######################################################################
# Runtime configuration file for Exim #
######################################################################
# This is a default configuration file which will operate correctly in
# uncomplicated installations. Please see the manual for a complete list
# of all the runtime configuration options that can be included in a
# configuration file. There are many more than are mentioned here. The
# manual is in the file doc/spec.txt in the Exim distribution as a plain