Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.
Here's an example of how to embed a Gist on GitHub Pages:
{% gist 5555251 %}
All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.
| #!/bin/sh | |
| # Called by "git push" after it has checked the remote status, | |
| # but before anything has been pushed. | |
| # | |
| # If this script exits with a non-zero status nothing will be pushed. | |
| # | |
| # Steps to install, from the root directory of your repo... | |
| # 1. Copy the file into your repo at `.git/hooks/pre-push` | |
| # 2. Set executable permissions, run `chmod +x .git/hooks/pre-push` |
| #!/bin/bash | |
| echo "Executing /etc/qemu-ifup" | |
| echo "Creating bridge" | |
| sysctl -w net.link.ether.inet.proxyall=1 | |
| sysctl -w net.inet.ip.forwarding=1 | |
| sysctl -w net.inet.ip.fw.enable=1 | |
| ifconfig bridge0 create | |
| echo "Bringing up $1 for bridged mode" | |
| ifconfig $1 0.0.0.0 up | |
| echo "Add $1 to bridge" |
| obj-m += rootkit.o | |
| all: | |
| make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
| clean: | |
| make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean |
| #/usr/bin/env bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # forked by Gianluca Guarini | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { | |
| echo "$changed_files" | grep -E --quiet "$1" && eval "$2" | |
| } |
| #!/bin/bash | |
| # -------------------------------------------------------------------------------------------- | |
| # Installs Ruby using rbenv/ruby-build on the Raspberry Pi (Raspbian) | |
| # | |
| # Run from the web: | |
| # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh) | |
| # -------------------------------------------------------------------------------------------- | |
| # Set the Ruby version you want to install |
| #!/bin/bash | |
| # author: Leon van Kammen / Coder of Salvation 2014 | |
| # | |
| # restconsole, a simple curl REST api wrapper for bash | |
| rooturl="http://api.yourcompany.com" | |
| apikey="e270f99745341a89e883c583a25b821c" | |
| cache=() | |
| # here you can define your preset calls |
| #!/bin/bash | |
| # Script for automatically update a DNS-A entry for domains hosted by http://hosteurope.de | |
| # The purpose of this script is to have a DNS update functionality similar to dyndns, no-ip, or afraid.org. | |
| DOMAIN="my.domain" # Domain name | |
| HOST="updatetest" # Host Name | |
| #NEW_IP="3.2.1.2" # Desired IP address (if not set, external IP will be used) | |
| HOSTEUROPE_kdnummer="123456" # Hosteurope "Kundennmmer" | |
| HOSTEUROPE_passwd="xgeheimx" # Hosteurope password (must be urlencoded) |
| #Source www.cze.cz | |
| #This script is tested with "Cisco AnyConnect Secure Mobility Client version 3.1.00495" | |
| # Usage: & '.\Cisco_Anyconnect.ps1' [-Server <server name or ip>] [-Group <group>] [-User <user>] [-Password <password>] | |
| #Please change following variables | |
| #IP address or host name of cisco vpn, Username, Group and Password as parameters | |
| param ( | |
| [string]$Server = $( Read-Host "Input server, please" ), |
| require_relative "test_helper" | |
| require "open-uri" | |
| require "net/http" | |
| class EmojiTest < Blog::Test | |
| def test_no_emoji | |
| posts.each do |post| | |
| content = File.read(post) | |
| refute_match /:[a-zA-Z0-9_]+:/, content, |