Skip to content

Instantly share code, notes, and snippets.

View daniel-barrows's full-sized avatar

Daniel Barrows daniel-barrows

View GitHub Profile
@daniel-barrows
daniel-barrows / Copy direct link to Gmail email.md
Last active August 18, 2023 16:54 — forked from alangrainger/Copy direct link to Gmail email.md
Copy a direct link to a Gmail email to your clipboard
@daniel-barrows
daniel-barrows / firefox-cookie-settings
Last active October 25, 2020 11:35
Export domain-specific cookie preservation settings from Firefox to a readable CSV format.
@daniel-barrows
daniel-barrows / neted
Created September 14, 2017 12:13
Edit network (eg. WiFi) information used by network-manager and merge from a cached copy.
#!/bin/bash
# License:: GPLv3+
# Copyright:: 2017 Daniel Barrows
# Status:: beta
#
# This currently doesn't do any sanity checks on arguments.
#
# The most powerful function here is neted merge, which basically lets you
# compare and merge your local networks with some cached networks using meld,
# and then saves the changes, while handling all the necessary file and network
@daniel-barrows
daniel-barrows / startupcli
Last active September 14, 2017 12:05
A simple bash script tool to edit startup applications on Linux.
#!/bin/bash
# License:: GPLv3+
# Copyright:: 2017 Daniel Barrows
# Status:: beta
### CONSTANTS
[ -z $COLUMNS ] && COLUMNS="$(tput cols 2>/dev/null || echo 80)"
EXIT_HELP_MESSAGE=0
EXIT_FILE_NOT_FOUND=2
@maxteufel
maxteufel / Security of cloaks.md
Last active October 21, 2021 16:50
About the security of (unaffiliated) cloaks on freenode

Copyright (c) 2014, 2016, 2017 M. Teufel

Unlimited redistribution and modification of this document is allowed provided that the above copyright notice and this permission notice remains in tact.


If you are reading this, you probably asked for a (unaffiliated) cloak on freenode because you wanted to hide your IP or hostname.

This text is here to tell you that cloaks and vHosts don't hide your IP very well. Cloaks on freenode show your (lack of) affiliation with a project or a group being hosted on freenode.

@jerrykrinock
jerrykrinock / gitcreate.sh
Last active July 12, 2023 17:38 — forked from robwierzbowski/gitcreate.sh
This script creates a new repo on github.com, then pushes to it the local repo from the current directory. Fork of https://gist.github.com/robwierzbowski/5430952/. Some of Rob's lines just didn't work for me, and I made it more verbose while fixing. UPDATE 2017-06-30. No longer needed by Xcode users because this capability is built into Xcode 9 :)
#!/bin/bash
# This script create a new repo on github.com, then pushes the local repo from the current directory to the new remote.
# It is a fork of https://gist.github.com/robwierzbowski/5430952/. Some of Rob's lines just didn't work for me, and to fix them I needed to make it more verbose so that a mere electrical engineer could understand it.
# This script gets a username from .gitconfig. If it indicates that your default username is an empty string, you can set it with
# git config --add github.user YOUR_GIT_USERNAME
# Gather constant vars
@earthgecko
earthgecko / bash.generate.random.alphanumeric.string.sh
Last active April 2, 2024 15:59
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1