Bevor wir den Hostnamen ändern, schauen wir, was der alte Name ist.
hostnameDann setzen wir einen neuen Hostname.
sudo nano /etc/hostname| import signal | |
| import time | |
| class GracefulKiller: | |
| kill_now = False | |
| def __init__(self): | |
| signal.signal(signal.SIGINT, self.exit_gracefully) |
| <?php | |
| // Prüfung, ob der Parameter gesetzt wurde. | |
| // Wenn nicht, Weiterleitung zum Host | |
| if (is_null($_GET['c'])){ | |
| header("Location: https://$_SERVER[HTTP_HOST]"); | |
| exit(); | |
| } | |
| else{ | |
| $vcard = strtolower($_GET['c']).".vcf"; |
| <?php | |
| // Prüfung, ob der Parameter gesetzt wurde. | |
| // Wenn nicht, Weiterleitung zum Host | |
| if (is_null($_GET['c'])){ | |
| header("Location: https://$_SERVER[HTTP_HOST]"); | |
| exit(); | |
| } | |
| else{ | |
| <?php | |
| // Prüfung, ob der Parameter gesetzt wurde. | |
| // Wenn nicht, Weiterleitung zum Host | |
| if (is_null($_GET['c'])){ | |
| header("Location: https://$_SERVER[HTTP_HOST]"); | |
| exit(); | |
| } | |
| else{ | |
| Public Function WorkSheetExists(ByVal strName2 As String) As Boolean | |
| On Error Resume Next | |
| WorkSheetExists = Not Worksheets(strName2) Is Nothing | |
| End Function |
| Sub AddSheet() | |
| Application.ScreenUpdating = False | |
| Dim bottomA As Integer | |
| bottomA = Range("A" & Rows.Count).End(xlUp).Row | |
| Dim c As Range | |
| Dim ws As Worksheet | |
| For Each c In Range("A2:A" & bottomA) | |
| Set ws = Nothing | |
| On Error Resume Next | |
| Set ws = Worksheets(c.Value) |
| Sub TabellenblattnamenAuflisten() | |
| Dim shWorksheet As Worksheet | |
| Dim shNewWorksheet As Worksheet | |
| Set shNewWorksheet = ActiveWorkbook.Worksheets.Add | |
| shNewWorksheet.Cells(1, 1).Value = "Liste der Tabellenblattnamen" | |
| For Each shWorksheet In ActiveWorkbook.Worksheets | |
| shNewWorksheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Value = shWorksheet.Name | |
| Next |
| Anzeige des Tabellenblattnamens in einer Zelle. | |
| =RECHTS(ZELLE("dateiname");LÄNGE(ZELLE("dateiname"))-FINDEN("]";ZELLE("dateiname"))) |
Install dep, and start tracker
sudo apt-get install bittornado ctorrent
bttrack --port 6969 --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed fullNow, create a torrent file
ctorrent -t -u "YOUR_SERVER_IP:6969/announce" -s new_file_name.torrent file_or_folder_for_torrent