Skip to content

Instantly share code, notes, and snippets.

View GwynethLlewelyn's full-sized avatar
👩
Learning Go

Gwyneth Llewelyn GwynethLlewelyn

👩
Learning Go
View GitHub Profile
@GwynethLlewelyn
GwynethLlewelyn / m4atomp3.sh
Last active December 19, 2022 14:33
Converts M4A to MP3 respecting the original bitrate (uses ffmpeg)
#!/usr/bin/env bash
# Takes a directory as parameter and converts everything inside it
# from M4A to MP3, respecting the bitrate, and creating a directory
# for the converted files.
#
# MIT Licensed by Gwyneth Llewelyn (2022)
#
# Based on https://superuser.com/a/1211902/127382 by @jbowman (2017)
@GwynethLlewelyn
GwynethLlewelyn / split-audio-with-ffmpeg-for-second-life.md
Last active June 8, 2022 16:17
Using ffmpeg to split audio files to the size expected by ffmpeg

Instructions on how to use ffmpeg

To split sounds for usage in Second Life.

  • Gwyneth Llewelyn (20220608)

Install ffmpeg and LAME

Your mileage may wary.

@GwynethLlewelyn
GwynethLlewelyn / nordbootstrap.css
Created March 26, 2022 03:08
Dark Nord Bootstrap 4 CSS
/*
This CSS contains a modified version of Bootstrap's CSS
Bootstrap's License can be found here: https://github.com/twbs/bootstrap/blob/main/LICENSE
This CSS contains the Nord color scheme made by Arctic Ice Studio & Sven Greb
Nord's License can be found here: https://github.com/arcticicestudio/nord/blob/develop/LICENSE.md
The modifications to Bootstrap's CSS were done by SaberTooth Studios Games
The github repository containing the source code of this CSS can be found here: https://github.com/SaberTooth-Studios/NordTheme-Bootstrap/
@GwynethLlewelyn
GwynethLlewelyn / fa-golang.svg
Created November 20, 2021 13:26
Golang Logo by FontAwesome
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@GwynethLlewelyn
GwynethLlewelyn / functions.php
Last active May 27, 2021 01:25
Minimalistic code to add rel=canonical links on HTML header
<?php
/**
* Minimalistic code to add rel=canonical links on HTML header.
*
* No wish to install a full-blown SEO plugin just to get those rel=canonical links? That's fine!
* Just place the code below somewhere on your child's theme `functions.php` file.
* If you also wish to get a meta description tag in the header, uncomment the last few lines.
*
* @todo this only works for singulars (page, post, attachment page, etc.); not for archive/search pseudo-pages,
which do *not* have a unique identifier at the $wp_query level... that's (mostly) why SEO plugins include
@GwynethLlewelyn
GwynethLlewelyn / Nord.spTheme
Created May 4, 2021 18:42
Nord theme for Sequel Ace
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>background</key>
@GwynethLlewelyn
GwynethLlewelyn / keybase.md
Created August 19, 2020 22:14
Keybase proof of my public PGP key

Keybase proof

I hereby claim:

  • I am GwynethLlewelyn on github.
  • I am gwynethllewelyn (https://keybase.io/gwynethllewelyn) on keybase.
  • I have a public key whose fingerprint is CE8A 6006 B611 850F 1275 72BA D93E AA3D C4B3 E1CB

To claim this, I am signing this object:

<div class="menu-positioner" style="color: rgba(0, 0, 0, 0.87); background-color: rgb(255, 255, 255); transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; box-sizing: border-box; font-family: Roboto, sans-serif; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px; border-radius: 2px; top: 2px; left: 542px; z-index: 1000;">
<div role="presentation" style="z-index: 1000;">
<div display="right" role="menu" style="padding: 16px 0px; display: table-cell; user-select: none; width: 250px;">
<div>
<div>
<div style="margin-left: 0px; padding: 0px 64px 0px 24px; position: relative;">
<div>
Download
</div>
</div>
@GwynethLlewelyn
GwynethLlewelyn / pydio-cells-context-menu.html
Last active May 25, 2019 18:49
Pydio Cells Context Menu
<div class="menu-positioner" style="color: rgba(0, 0, 0, 0.87); background-color: rgb(255, 255, 255); transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; box-sizing: border-box; font-family: Roboto, sans-serif; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 10px, rgba(0, 0, 0, 0.23) 0px 3px 10px; border-radius: 2px; bottom: 0px; left: 0px; right: 0px; height: 200px; z-index: 1000; overflow-y: auto;">
<div role="presentation" style="z-index: 1000;">
<div display="right" role="menu" style="padding: 8px 0px; display: table-cell; user-select: none; width: 600px;">
<div>
<div>
<div style="margin-left: 0px; padding: 0px 72px 0px 16px; position: relative;">
<div>
Download
</div>
</div>
This is using sshsrv:
$ ./sshsrv -v -l git git.gwynethllewelyn.net
Found 1 SRV record(s) for _ssh._tcp.git.gwynethllewelyn.net.
Record 0: 1 1 22 autonomy.gwynethllewelyn.net.
Target for git.gwynethllewelyn.net is autonomy.gwynethllewelyn.net:22
command: /usr/bin/ssh -p 22 -v -l git autonomy.gwynethllewelyn.net
Connecting to autonomy.gwynethllewelyn.net:22
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /Users/gwyneth/.ssh/config