1
Fork 0

Add gist shortcode

This commit is contained in:
Jake Howard 2017-07-04 09:42:44 +01:00
parent 4465ef3af5
commit 00e8406ea4
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 7 additions and 3 deletions

View file

@ -7,7 +7,7 @@ Astrill, my VPN of choice, allows you to export OpenVPN config files for all it'
The export step is really simple, you just login to the web portal, create an entry for your machine, and export the config files. Their tutorial for this can be found [here](http://wiki.astrill.com/index.php/Astrill_Setup_Manual:How_to_configure_OpenVPN_with_Network_Manager_on_Linux). The only problem is that some applications won't accept the certificates embedded into the file like astrill provide. (Gnome does, but I only realised that whilst writing this).
<script src="https://gist.github.com/RealOrangeOne/050da86871fb952ba7bfe97eece8555c.js"></script>
{{% gist 050da86871fb952ba7bfe97eece8555c %}}
The above script will split out the files and save them into separate directories for each config file. These files can then be imported and used in an openvpn-compatable application.

View file

@ -14,4 +14,4 @@ In order to make it accessible for as many people in as many different languages
The source of the library is on GitHub as a gist. I recommend downloading the file to use yourself, however for testing you can use GitHub's raw file as a hotlink.
<script src="https://gist.github.com/RealOrangeOne/6dc94875c93b787e5834.js"></script>
{{% gist 6dc94875c93b787e5834 %}}

View file

@ -28,7 +28,7 @@ With this, I started to write something that would change the location of the if
### Source
The source for this was written in pure JS, and relies heavily on the fact that the wiki game uses jQuery so I can plug into components and events really easily. The code can be found in the GitHub gists below. Both the standard and compact versions are available.
<script src="{{ article.repo }}.js"></script>
{{% gist 7da9a3dd1bf90ecdf7be %}}
### Disclaimer
As I experienced whilst developing this, the people that play Wiki Game don't tend to like people cheating. There were a lot of people getting very annoyed whilst I was developing and testing. So please use this at your own risk! At the moment I don't think there is any kind of banning system, but be warned!

View file

@ -2,6 +2,7 @@
<div id="page-wrapper">
<section id="main" class="container">
{{ partial "content.html" . }}
<div class="box">
<ul class="actions fir">
{{ if .Params.download_url }}

View file

@ -0,0 +1,3 @@
{{ $id := .Get 0 }}
{{ $data := getJSON "https://api.github.com/gists/" $id }}
<script src='{{ $data.html_url }}.js'></script>