This file contains 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
''' | |
The MIT License (MIT) | |
Copyright (C) 2014, 2015 Seven Watt <[email protected]> | |
<http://www.sevenwatt.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 Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
This file contains 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
import pathlib | |
for p in pathlib.Path(".").glob("*.properties"): | |
with open(p, "r", encoding="utf-8") as fd: | |
converted = fd.read().encode("raw-unicode-escape").decode("latin1") | |
with open(p, "w", newline="\n", encoding="latin1") as fd: | |
fd.write(converted) |
This file contains 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
<div style="width:120px;min-height:35px;margin-top:10px" class="cmd #history# tooltips cmd-widget" data-type="info" | |
data-subtype="numeric" data-cmd_id="#id#" title="Valeur du #valueDate#, collectée le #collectDate#"> | |
<center> | |
<span style="font-size: 1.2em;" class="label label-info" id="iconCmd#id#">N/A</span> | |
</center> | |
<script> | |
function updateText(cmdId, state) { | |
let iconId = "#iconCmd" + cmdId; | |
if (state < 11) { | |
$(iconId).text("Arrêt"); |
This file contains 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 | |
# -- Content-Encoding: UTF-8 -- | |
""" | |
Locks apt until closed | |
""" | |
from __future__ import print_function | |
import time | |
import signal | |
import sys |
This file contains 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 python3 | |
""" | |
Asyncio-based SOCKS5 Proxy | |
:author: Thomas Calmant | |
:copyright: Copyright 2017, Thomas Calmant | |
:license: Apache License 2.0 | |
:version: 0.0.1 | |
""" |
This file contains 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
package hello.impl; | |
import org.osgi.framework.BundleActivator; | |
import org.osgi.framework.BundleContext; | |
public class Activator implements BundleActivator { | |
public void start(BundleContext context) throws Exception { | |
// TODO Auto-generated method stub | |
System.out.println("start"); |
This file contains 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/python3 | |
# -- Content-Encoding: UTF-8 -- | |
""" | |
Sends e-mails with attachments | |
:author: Thomas Calmant | |
:copyright: Copyright 2014, isandlaTech | |
:license: Apache License 2.0 | |
:version: 0.0.1 | |
:status: Alpha |
This file contains 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/python3 | |
# -- Content-Encoding: UTF-8 -- | |
""" | |
Small script which is able to look for and install packages targeting another | |
platform, using pip. | |
This simplifies the creation of distribution files for different platform. | |
Only works for Python 3.4 downloads. |