Skip to content

Instantly share code, notes, and snippets.

View JuPlutonic's full-sized avatar
💭
🍺

AMZ JuPlutonic

💭
🍺
  • Msk, Russian Fed.
View GitHub Profile
@zuf
zuf / after-contourgps-mount.sh
Created July 6, 2015 15:48
Shell script for automated sync mounted to usb action camera to my archive. GUI progress shown through zenity (matedialog) tool. This script was written for usage with udev rules.
#!/usr/bin/bash
# This script uses too much unneeded dependencies (like python for adding some integers). Sorry for that.
# You can clean it for your cases (replace python with bc for example).
# TODO: test rsync version shoud has --info=progress2 option (v3.0.10 or more)
#USER="`whoami`"
CONTOUR_MOUNTPOINT="/run/media/$USER/CONTOUR GPS/DCIM"
CONTOUR_ARCHIVE='/path/to/archive'
@crmne
crmne / download_zeal_user_docsets.py
Last active June 6, 2022 08:37
A solution to the lack of UI for Dash's user docsets in Zeal. Uses Python 3 and easygui (pip3 install easygui)
"""Download Dash User Docsets and install them in Zeal"""
import configparser
import json
import tarfile
import urllib.request
from pathlib import Path
from sys import platform
import easygui
@mkroman
mkroman / fish.rb
Created December 17, 2015 14:46
A bunch of scripts I once made for weechat
# the oh-so-famous fish encryption for weechat.
# Copyright (C) 2010, Mikkel Kroman <mk@maero.dk>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@alain-andre
alain-andre / capybara cheat sheet
Created March 2, 2016 15:48 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@atweiden
atweiden / connect-linux-ethernet-lan-ssh.md
Created March 19, 2016 21:30
directly connect two linux machines using an ethernet cable

ssh/rsync from one Linux machine to another with a standard ethernet cable

Overview

  • Install ifplugd and openssh on both machines.
  • Optionally install inxi on both machines (recommended).
@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
@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.
@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
@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