This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Converted from https://github.com/linuxserver/docker-kodi-headless/blob/master/Dockerfile | |
#FROM lsiobase/xenial | |
# | |
## set version label | |
#ARG BUILD_DATE | |
#ARG VERSION | |
#LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: howdoi # you probably want to 'snapcraft register <name>' | |
version: '20170207' # just for humans, typically '1.2+git' or '1.3.2' | |
summary: instant coding answers via the command line # 79 char long summary | |
description: | | |
Are you a hack programmer? Do you find yourself constantly Googling | |
for how to do basic programing tasks? | |
Suppose you want to know how to format a date in bash. Why open your browser | |
and read through blogs (risking major distraction) when you can simply | |
stay in the console and ask howdoi. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: httpstat # you probably want to 'snapcraft register <name>' | |
version: '1.1.3' # just for humans, typically '1.2+git' or '1.3.2' | |
summary: Curl statistics made simple # 79 char long summary | |
description: | | |
httpstat is a utility that analyses show fast a website is | |
when you try to connect to it. | |
This utility is particularly useful to Web administrators. | |
grade: stable # must be 'stable' to release into candidate/stable channels | |
confinement: strict # use 'strict' once you have the right plugs and slots |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: how2 # you probably want to 'snapcraft register <name>' | |
version: '20170206' # just for humans, typically '1.2+git' or '1.3.2' | |
summary: how2, stackoverflow from the terminal | |
description: | | |
how2 finds the simplest way to do something in a unix shell. | |
It is like the man command, but you can query it in natural language. | |
grade: stable # must be 'stable' to release into candidate/stable channels | |
confinement: strict # use 'strict' once you have the right plugs and slots |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: httpstat # you probably want to 'snapcraft register <name>' | |
version: '1.1.3' # just for humans, typically '1.2+git' or '1.3.2' | |
summary: Curl statistics made simple # 79 char long summary | |
description: | | |
httpstat is a utility that analyses show fast is a website | |
when you are trying to connect to it. | |
This utility is particularly useful to Web administrators | |
grade: stable # must be 'stable' to release into candidate/stable channels | |
confinement: strict # use 'strict' once you have the right plugs and slots |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
touch /tmp/Recent.xyz | |
while true | |
do | |
echo "Checking again..." | |
wget -q https://apt.dockerproject.org/repo/dists/ubuntu-xenial/main/binary-amd64/Release -O /tmp/Release.xyz | |
if test /tmp/Release.xyz -nt Recent.xyz; then | |
mplayer /usr/share/sounds/ubuntu/stereo/phone-incoming-call.ogg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
FILENAME="Lesvos Birdings map of birding sites-Steve Dudley.gpx" | |
from lxml import etree | |
tree = etree.parse(FILENAME) | |
root = tree.getroot() | |
for wpt in tree.xpath('//wpt'): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import subprocess | |
# We want to reach back to a commit where the following file is identical in the tarball. | |
FILENAME="page_alloc.c" | |
# We created this file with: git log | grep '^commit' | awk '{ print $2}' > /tmp/commit-list.txt | |
commit_file = open("/tmp/commit-list.txt", "r") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <signal.h> /* For SIGKILL */ | |
int main() | |
{ | |
/* Sends the SIGKILL signal to the Parent Process ID (ppid) */ | |
kill(getppid(), SIGKILL); | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# We open the file and create the handle 'f' to access the content. | |
f = open("parameterlist.htm", 'r') | |
# The variable 'lines' now has all the lines of the file. 'lines' is an array. | |
lines = f.readlines() | |
# We initialise a hash table (dictionary) that we will put the parsed parameters in. |