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)| #!/usr/bin/env python3 | |
| from http.server import BaseHTTPRequestHandler, HTTPServer | |
| class MyHandler(BaseHTTPRequestHandler): | |
| _data_to_send = None | |
| def _send_all(self): |
| # assuming current directory is Extensions | |
| find -name manifest.json -exec grep '"name"' {} + | awk -vFS='/|"' '!/__/{print $2, $7}' | |
| find -name manifest.json -exec grep '"name"' {} + | awk -vFS='/|"' '/__/{print $2, $7}' | sed 's/__MSG_//; s/__//' | sort -u -k1 | while read app var; do echo -n $app; sed -n "/$var/I, /}/ p" $app/*/_locales/en*/messages.json | grep -m1 message | cut -d ':' -f2; done |
| *.o | |
| *.swp |
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)| #if 0 | |
| /* o_tannenbaum takes a single integer as its argument */ | |
| main(int l,char **O){int(*l0)()=main;l<-1?putchar( | |
| l==- 10?(10<<1)+1<<1:l==- 11?0x10<<1:10):l==- 1 | |
| ?l=(**++O- ((10<<1<<1)+010))* (* (* O+1)==0?1:10) | |
| +(* (* O+1)==0?0:* (* O+1)- ((10<<1<<1)+010)): | |
| **++O>=(10<<1<<1)+010?**O=l0(- 1,O- 1)+1>>1, | |
| **-- O=**(O+1)- 1,l0(0,O):** --O<0?l==0?**++O | |
| >>=1,l0(++l,-- O):l>**++O?l0(- 10,0),l0(- 010,0): | |
| (l0(- 11,0),l0(++l,-- O)):(l>** O?l>**++O?l0(- 010,0), |
| #!/usr/bin/python3 | |
| import sys | |
| # basic list of actions and their AP rewards | |
| ACTIONS = { | |
| 'recharge': 10, | |
| 'upgrade': 65, | |
| 'destroy resonator': 75, | |
| 'hack enemy portal': 100, |
| String /org/freedesktop/systemd1/unit/spice_2dvdagentd_2eservice | |
| Got /org/freedesktop/systemd1/unit/spice_2dvdagentd_2eservice | |
| replacing 2d with - | |
| interim /org/freedesktop/systemd1/unit/spice-??vdagentd_2eservice | |
| crash??? |
| #!/usr/bin/python3 | |
| from eveapi.eveapi import EVEAPIConnection | |
| import pickle, zlib | |
| import os | |
| from os.path import join, exists | |
| import tempfile | |
| import time | |
| from itertools import chain |
| Getting data from EVE client | |
| Warning: skipping table fsdTypeOverrides as it doesn't have data rows | |
| Traceback (most recent call last): | |
| File "scripts/eve2sql.py", line 85, in <module> | |
| dataminer.run() | |
| File "/home/aragaer/Projects/pyfa/eos/scripts/eve2sql/processing/miner.py", line 53, in run | |
| self.__get_bulkdata() | |
| File "/home/aragaer/Projects/pyfa/eos/scripts/eve2sql/processing/miner.py", line 100, in __get_bulkdata | |
| self.__get_source_data(srcdata, table) | |
| File "/home/aragaer/Projects/pyfa/eos/scripts/eve2sql/processing/miner.py", line 130, in __get_source_data |