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
#include "qtimespan.h" | |
unsigned long QTimeSpan::hours() const { return _hours; } | |
unsigned char QTimeSpan::minutes() const { return _minutes; } | |
unsigned char QTimeSpan::seconds() const { return _seconds; } | |
unsigned short QTimeSpan::milliseconds() const { return _milliseconds; } | |
void QTimeSpan::Init() | |
{ |
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
#include <QCoreApplication> | |
#include <QDateTime> | |
#include <QDebug> | |
const QDateTime beginning(QDate(1, 1, 1), QTime(0, 0, 0)); | |
void print_date(const QDateTime& qdt) | |
{ | |
qint64 hours = beginning.daysTo(qdt)*24 + qdt.time().hour(); | |
qDebug() << QString("%1").arg(hours, 2, 'g', -1, '0') + qdt.time().toString(":mm:ss.zzz"); |
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 QtQuick 2.9 | |
import QtQuick.Window 2.2 | |
import QtQuick.Layouts 1.3 | |
Window { | |
visible: true | |
width: 640 | |
height: 480 | |
title: qsTr("Hello World") |
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
#!/bin/bash | |
sudo apt install vsftpd # will add user ftp with home folder /srv/ftp | |
sudo mkdir /srv/ftp/pub | |
sudo chmod 777 /srv/ftp/pub |
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
sudo apt install proftpd | |
sudo mkdir /var/ftp | |
sudo chmod 777 /var/ftp |
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
#!/bin/bash | |
# INSTALL&SETUP ANONYMOUS FTP | |
# TESTED ON UBUNTU 18.04 SERVER | |
sudo -s | |
#------------------------------------------------------- | |
apt install proftpd |
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
[Default Applications] | |
application/csv=desktopeditors.desktop | |
application/excel=desktopeditors.desktop | |
application/msexcel=desktopeditors.desktop | |
application/msword=desktopeditors.desktop | |
application/ogg=vlc.desktop | |
application/oxps=org.kde.okular.desktop | |
application/pdf=org.kde.okular.desktop | |
application/postscript=org.kde.okular.desktop | |
application/rtf=desktopeditors.desktop |
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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Laptop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz | |
CPU Family: 0x6 |
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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Laptop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz | |
CPU Family: 0x6 |
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
#!/bin/bash | |
# Set TTL | |
echo 'net.ipv4.ip_default_ttl=65' | sudo tee /etc/sysctl.d/99_default_ttl.conf | |
sudo sysctl --system | |
# Set User-Agent | |
sed -i 's/general\.useragent\.override*//g' "$HOME/.mozilla/firefox/"*".default/prefs.js" |
OlderNewer