Skip to content

Instantly share code, notes, and snippets.

James Stout jamesstout

Block or report user

Report or block jamesstout

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jamesstout
jamesstout / gh-sync-fork.sh
Last active Sep 17, 2018
GitHub - Sync a fork
View gh-sync-fork.sh
# I can never remember...
git fetch upstream
git checkout master
git merge upstream/master
View ftp.gnu.org-analysis.log
$ curl -v http://ftp.gnu.org/
* Trying 208.118.235.20...
* TCP_NODELAY set
* Connection failed
* connect to 208.118.235.20 port 80 failed: Operation timed out
* Failed to connect to ftp.gnu.org port 80: Operation timed out
* Closing connection 0
curl: (7) Failed to connect to ftp.gnu.org port 80: Operation timed out
$ ping ftp.gnu.org
@jamesstout
jamesstout / Gitlab-Docker-certbot.md
Created Jul 30, 2018 — forked from 0x646e78/Gitlab-Docker-certbot.md
gitlab inside docker with certs from Let's Encrypt
View Gitlab-Docker-certbot.md

Running gitlab inside docker with certs from Let's Encrypt

This will serve SSH and HTTPS (with which I got an A+ from testssl).

Creates three docker containers:

  • gitlab-prostgres
  • gitlab-redis
  • gitlab, which is linked to the other two. This contains nginx, sshd, git, gitlab.
@jamesstout
jamesstout / vagrant-vscode-php-xdebug-instructions.md
Last active Aug 19, 2019 — forked from sveggiani/instructions.md
Configure Xdebug, Visual Studio Code for a Vagrant VM
View vagrant-vscode-php-xdebug-instructions.md

0. Assumptions

  • You've installed Xdebug in your VM.
  • You've installed Xdebug extension for VSCode and reloaded/restarted VSCode.
  • You have not forwarded port 9000 from the guest to the host.
  • Configure Debugger in VSCode. See item 1 next.

1. Configure .vscode/launch.json

View podcast-list.txt
* [5by5 at the Movies](http://5by5.tv/movies) <a style="color:#fa9b39" href="http://feeds.5by5.tv/movies" itemprop="sameAs"> <i class="fas fa-fw fa-rss-square" aria-hidden="true"></i></a>
* [A Cast of Kings - A Game of Thrones Podcast](http://www.slashfilm.com/) <a style="color:#fa9b39" href="http://feeds.feedburner.com/castofkings" itemprop="sameAs"> <i class="fas fa-fw fa-rss-square" aria-hidden="true"></i></a>
* [A STORM OF SPOILERS - A Pop Culture Podcast](http://stormofspoilers.com/) <a style="color:#fa9b39" href="http://feeds.feedburner.com/AStormOfSpoilers" itemprop="sameAs"> <i class="fas fa-fw fa-rss-square" aria-hidden="true"></i></a>
* [Accidental Tech Podcast](http://atp.fm/) <a style="color:#fa9b39" href="http://atp.fm/episodes?format=rss" itemprop="sameAs"> <i class="fas fa-fw fa-rss-square" aria-hidden="true"></i></a>
* [Amber Nectar HCAFC](http://www.ambernectar.org/) <a style="color:#fa9b39" href="http://feeds.soundcloud.com/users/soundcloud:users:54747069/sounds.rss" itemprop="sameAs"> <i cl
@jamesstout
jamesstout / overcast.opml
Created Apr 22, 2018
Example OPML file from Overcast, note: it contains usernames and passwords in the feed URL
View overcast.opml
<?xml version="1.0"?>
<!-- example OPML file -->
<opml version="1.0">
<head>
<title>Overcast Podcast Subscriptions</title>
</head>
<body>
<outline type="rss" text="Richard Herring's Leicester Square Theatre Podcast" title="Richard Herring's Leicester Square Theatre Podcast" xmlUrl="http://feeds.feedburner.com/RichardHerringLSTPodcast" htmlUrl="https://www.comedy.co.uk/podcasts/richard_herring_lst_podcast/"/>
<outline type="rss" text="5by5 at the Movies" title="5by5 at the Movies" xmlUrl="http://feeds.5by5.tv/movies" htmlUrl="http://5by5.tv/movies"/>
<outline type="rss" text="TV Talk Machine" title="TV Talk Machine" xmlUrl="http://feeds.theincomparable.com/tvtm" htmlUrl="https://www.theincomparable.com/tvtm/"/>
@jamesstout
jamesstout / opml2md.py
Last active Apr 22, 2018
OPML to Markdown converter based on https://gist.github.com/domdavis/9988867 but customised for Overcast OPML
View opml2md.py
# Based on https://gist.github.com/domdavis/9988867
# Changed to handle podcast export OPML from Overcast. e.g.
# <outline type="rss" text="Road Work" title="Road Work" xmlUrl="http://feeds.5by5.tv/roadwork" htmlUrl="http://5by5.tv/roadwork"/>
# I wanted to grab the xmlUrl and htmlUrl and output a <ul> with links to page and feed.
# also strips usernames and passwords if set in the xmlUrl - add yours to the passwd var
# $ pip install opml
# $ python opml2md.py some_outline.opml
# -> some_outline.md
import codecs
@jamesstout
jamesstout / spotWrapper-secret.sh
Created Jan 24, 2018
Script to stop the sabnzbd queue while SpotWeb retrieve runs to avoid "Too many connections to server xxxxx.xxx" error
View spotWrapper-secret.sh
#!/usr/bin/env bash
# If sabnzbd is downloading at the time the spotweb retrieve script runs
# You can get the "Too many connections to server xxxxx.xxx" error.
# The script attempts to pause the sabnzbd queue and wait for all connections to disconnect
# before running the spotweb retrieve script.
# Once it completes, the queue is started again.
if ! hash jq &>/dev/null; then
echo "You need to install jq for this to work - jq is like sed for JSON data"
View gist:4aa17579459de6ceb9999a71a58a4d5d
Verifying my Blockstack ID is secured with the address 1LdgVKfMsawciphZgQamp4StEceLNpPoR9 https://explorer.blockstack.org/address/1LdgVKfMsawciphZgQamp4StEceLNpPoR9
View adobe_cc.txt
/Library/Application Support/Adobe/AdobeGCClient/AGSService
/Applications/Utilities/Adobe Sync/CoreSync/Core Sync.app/Contents/PlugIns/ACCFinderSync.appex/Contents/MacOS/ACCFinderSync
/Applications/Utilities/Adobe Application Manager/IPC/AdobeIPCBroker.app/Contents/MacOS/AdobeIPCBroker -launchedbyvulcan /Applications/Utilities/Adobe MacOS/Creative Cloud
/Library/Application Support/Adobe/Adobe Desktop Common/ADS/Adobe Desktop Service.app/Contents/MacOS/Adobe Desktop Service --onOSstartup=tru
/Library/Application Support/Adobe/Adobe Desktop Common/ADS/Adobe Desktop Service.app/Contents/Frameworks/AdobeCrashReporter.framework/Versions/A/1240 Adobe Desktop Service 4.3 /Library/Application Support/Adobe/Adobe Desktop Common/ADS/Adobe Desktop Service.app/Contents/Resources/upport/Adobe/Adobe Desktop Common/ADS/Adobe Desktop Service.app/Contents/Frameworks/AdobeCrashReporter.framework/Versions/A/Adobe Crash Rep
/Applications/Utilities/Adobe Sync/CoreSync/Core Sync.app/Contents/MacOS/Core Sync
/Applica
You can’t perform that action at this time.