Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| #!/bin/sh | |
| # CONFIGURATION | |
| # 1. Go to @botfather and create a bot and use it's auth token as bot_token value | |
| # 2. Create test channel, believe me, you need it | |
| # 3. Set some url for your test channel | |
| # 4. Add your bot to both channels, set their names in variables | |
| # USAGE | |
| # 1. Copy your markdown-formatted message into OS clipboard (Cmd+C) |
| #!/usr/bin/env python | |
| # -*- mode: python, coding: utf-8 -*- | |
| # | |
| # This incredible piece of code makes git a bit Polish, a bit Western Ukrainian, | |
| # пше прошу пана | |
| # Joke is based on fact that 'git' is 'пше' in qwerty/йцукен layouts | |
| # | |
| # (c) 2013 Alexander Solovyov under terms of WTFPL | |
| import sys |
| RED='\033[00;31m' | |
| GREEN='\033[00;32m' | |
| YELLOW='\033[00;33m' | |
| BLUE='\033[00;34m' | |
| PURPLE='\033[00;35m' | |
| CYAN='\033[00;36m' | |
| LIGHTGRAY='\033[00;37m' | |
| LRED='\033[01;31m' | |
| LGREEN='\033[01;32m' |
| Index: src/compose.c | |
| =================================================================== | |
| RCS file: /home/claws-mail/claws/src/compose.c,v | |
| retrieving revision 1.382.2.560 | |
| diff -u -r1.382.2.560 compose.c | |
| --- src/compose.c 20 Sep 2010 14:05:40 -0000 1.382.2.560 | |
| +++ src/compose.c 19 Nov 2010 21:34:00 -0000 | |
| @@ -5034,6 +5034,16 @@ | |
| inc_unlock(); | |
| toolbar_main_set_sensitive(mainwin); |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| #!/bin/bash | |
| echo "determining branch" | |
| if ! [ -t 0 ]; then | |
| read -a ref | |
| fi | |
| IFS='/' read -ra REF <<< "${ref[2]}" | |
| branch="${REF[2]}" |
| # !/bin/bash | |
| # Copyright (c) 2011 Float Mobile Learning | |
| # http://www.floatlearning.com/ | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining | |
| # a copy of this software and associated documentation files (the "Software"), | |
| # to deal in the Software without restriction, including without limitation | |
| # the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
| # and/or sell copies of the Software, and to permit persons to whom the |