Skip to content

Instantly share code, notes, and snippets.

@joby-lol
joby-lol / custom.css
Last active November 12, 2019 20:07
CSS for making "Simple" Blogger theme fluid-width
/*
CSS to enable a fluid layout for Blogger's "Simple" theme
by Joby Elliott -- www.byjoby.com
*/
/* remove odd margins on images, make their size fluid and limited to their container */
.widget.Blog img {box-sizing:border-box;height:auto !important;width:auto: !important;max-width:100%;}
.widget.Blog a[imageanchor] {margin:0 !important;}
/* remove padding from content area, set smaller min-widths */
.content-inner {padding:0;}
body, .content-outer, .content-fauxcolumn-outer, .region-inner {min-width:300px !important;}
@joby-lol
joby-lol / encryption-example.cs
Last active August 29, 2015 14:05
Example in C# of encoding a string with AES, then getting it and its IV and an HMAC hash as useful strings. It's pieced together from bits of an actual project, and probably won't work quite right just copied and pasted. It should point you in the right direction if you're curious though. It's also of note that this was written for .NET 2.0, so …
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
string encryptionKey = "01010101010101010101010101010101";
string hmacKey = "01010101010101010101010101010101";
/*
USAGE
*/
@joby-lol
joby-lol / 1 - includes.html
Last active May 21, 2020 19:30
Colorful Accordion Navigation -- for a demo and to get the referenced CSS and JS files, see here: https://www.byjoby.com/hackery/relics/2014/accordion-nav/
<!--
Requires jQuery and the hoverIntent plugin,
although it does fundamentally work with no JS at all
-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="hoverintent.js"></script>
<!--
One script and one CSS file, both are small and might be worth inlining if you're using it for your main navigation
-->
@joby-lol
joby-lol / CSS-centered-modal.markdown
Created October 24, 2014 21:40
A Pen by Joby Elliott.

CSS-centered modal

Pure-CSS centering of a box, both horizontally and vertically. No javascript required, works with any markup.

A Pen by Joby Elliott on CodePen.

License.

@joby-lol
joby-lol / .bashrc
Last active December 14, 2015 17:14
Git Bash Windows Setup
#!/bin/bash
eval `ssh-agent -s`
ssh-add ~/.ssh/*_rsa
SSH_ENV=$HOME/.ssh/environment
# start the ssh-agent
function start_agent {
echo "Initializing new SSH agent..."
# spawn ssh-agent
@joby-lol
joby-lol / keybase.md
Created January 4, 2017 16:57
keybase.md

Keybase proof

I hereby claim:

  • I am jobyone on github.
  • I am joby (https://keybase.io/joby) on keybase.
  • I have a public key whose fingerprint is F440 A7F4 D814 656B 071A E331 1C96 79A1 D2DC 9457

To claim this, I am signing this object:

@joby-lol
joby-lol / Dockerfile
Last active September 7, 2023 13:22
PHP 8.2 Dev Container and VS Code launch options starting point
# .devcontainer/Dockerfile
FROM ubuntu:22.04
# prepare to install php 8.2
RUN apt update && apt install -y software-properties-common
RUN add-apt-repository ppa:ondrej/php
RUN apt update
# install php 8.2 and other fundamental packages
<?php
// script source https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/converter.php
// https://github.com/r-a-y/mobile-hosts/blob/master/
// License: GPL-3.0 https://github.com/r-a-y/mobile-hosts/blob/master/LICENSE
// Add our lists.
$lists = array(
'adAway' => 'https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt',
'adguardApps' => 'https://github.com/AdguardTeam/AdguardFilters/raw/master/MobileFilter/sections/specific_app.txt',
'adguardDNS' => 'https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt',
'adguardMobileAds' => 'https://raw.githubusercontent.com/AdguardTeam/AdguardFilters/master/MobileFilter/sections/adservers.txt',