Skip to content

Instantly share code, notes, and snippets.

@akademic
akademic / drone.log
Created April 21, 2017 08:47
drone io log
+ git init
Initialized empty Git repository in /drone/src/try.gogs.io/sjrt/test_merge_webhook2/compare/48d241aaf9d1cc43809a58d7f3eafaae350cded8...c02096e44d3538d8b4b12da12217225d90e969f4/.git/
+ git remote add origin https://try.gogs.io/sjrt/test_merge_webhook2
+ git fetch --no-tags origin +refs/heads/seconf:
From https://git.bober.sknt.ru/SkyNet/ai.sknt.ru
* branch master -> FETCH_HEAD
* [new branch] master -> origin/seconf
+ git reset --hard -q c02096e44d3538d8b4b12da12217225d90e969f4
+ git submodule update --init --recursive
@akademic
akademic / webhook_payload.json
Created April 21, 2017 08:37
webhook payload for merge pull request Raw
{
"ref": "refs/heads/seconf",
"before": "48d241aaf9d1cc43809a58d7f3eafaae350cded8",
"after": "c02096e44d3538d8b4b12da12217225d90e969f4",
"compare_url": "https://try.gogs.io/sjrt/test_merge_webhook2/compare/48d241aaf9d1cc43809a58d7f3eafaae350cded8...c02096e44d3538d8b4b12da12217225d90e969f4",
"commits": [
{
"id": "df35735412f9603256fffa04537c22231e9a1bc9",
"message": "Merge branch 'master' of sjrt/test_merge_webhook2 into seconf\n",
"url": "https://try.gogs.io/sjrt/test_merge_webhook2/commit/df35735412f9603256fffa04537c22231e9a1bc9",
[Macaron] 2016-07-20 11:26:13: Started POST /akademic/basic/compare/master...user1:master for [::1]
2016/07/20 11:26:13 [D] Session ID: 49df09f82891eecc
2016/07/20 11:26:13 [D] CSRF Token: IFcwReuEy2Z7iVr6HWPYpwTLxBg6MTQ2OTAwMDM4NTYzMjMwMjY2NA==
[git-module] /home/akademic/gogs-repositories/akademic/basic.git: git tag -l --sort=-v:refname
[git-module] /home/akademic/gogs-repositories/akademic/basic.git: git show-ref --heads
[git-module] stdout:
394713cf23796758a1359cfea16b41ea61989f48 refs/heads/master
[git-module] /home/akademic/gogs-repositories/akademic/basic.git: git show-ref --verify refs/heads/master
[git-module] stdout:
#!/usr/bin/perl
# randmal.pl - random MAC address generator
# Copyright (C) 2013 Ian Campbell
#
my $agpl = <<EOL;
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
@akademic
akademic / kde_incoming_events_notifier.py
Last active December 17, 2015 11:19
Show popup when recieve http POST JSON message
import os
import BaseHTTPServer
import urlparse
import json
class IncomingHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def do_POST(s):
s.send_response(200)
s.send_header("Content-type", "text/html")
#!/bin/sh
if [ -z $1 ] || [ -z $2 ] || [ -z $3 ] ; then
echo 'Usage: ./btsync_create_deb.sh <btsync_version> <debian_arch> <deb_packet_version>'
exit 1
fi
BT_VERSION=$1
DEB_ARCH=$2
DEB_PACKET_VERSION=$3