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
print "Αυτή είναι μια δοκιμή" |
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
def explain! | |
puts 'Want to embed this Gist?' | |
puts 'Use this: <script src="http://gist.github.com/2059.js"></script>' | |
end | |
/* This is a second test /* |
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
def explain! | |
puts 'Want to embed this Gist?' | |
puts 'Use this: <script src="http://gist.github.com/2059.js"></script>' | |
end | |
explain! |
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
# Default language for installer images built with this defaults package. | |
# Note that the defaults package itself does not configure the locale, this | |
# only gets effective for image builds. | |
# | |
# Format: single line with language code (or ll_CC for the languages like zh | |
# which have two major codes like zh_CN or zh_TW). See /isolinux/langlist on a | |
# Ubuntu live CD for the complete list. | |
# | |
# Example: | |
# de |
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. |
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 | |
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
#!/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
#!/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
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 |
OlderNewer