Skip to content

Instantly share code, notes, and snippets.

Avatar
👩
Learning Go

Gwyneth Llewelyn GwynethLlewelyn

👩
Learning Go
View GitHub Profile
@GwynethLlewelyn
GwynethLlewelyn / m4atomp3.sh
Last active Aug 1, 2022
Converts M4A to MP3 respecting the original bitrate (uses ffmpeg)
View m4atomp3.sh
#!/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 Jun 8, 2022
Using ffmpeg to split audio files to the size expected by ffmpeg
View split-audio-with-ffmpeg-for-second-life.md

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 Mar 26, 2022
Dark Nord Bootstrap 4 CSS
View nordbootstrap.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 Nov 20, 2021
Golang Logo by FontAwesome
View fa-golang.svg
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
Minimalistic code to add rel=canonical links on HTML header
View functions.php
<?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
Nord theme for Sequel Ace
View Nord.spTheme
<?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 Aug 19, 2020
Keybase proof of my public PGP key
View keybase.md

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:

View pydio-8-context-menu.html
<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>
View pydio-cells-context-menu.html
<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>
View logging in via sshsrv
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