Skip to content

Instantly share code, notes, and snippets.

View Ruzzz's full-sized avatar

Ruslan Zaporojets Ruzzz

View GitHub Profile
#!/bin/bash
# Step 1:
# Enable UPnP in Linksys E900
# Step 2:
# sudo nano /usr/sbin/wanip_linksys_e900_upnp.sh
# sudo chmod +x /usr/sbin/wanip_linksys_e900_upnp.sh
curl -H "SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#GetExternalIPAddress" -d "<?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetExternalIPAddress xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1"></u:GetExternalIPAddress></s:Body></s:Envelope>" http://192.168.1.1:1780/control?WANIPConnection
# /etc/ddclient/ddclient.conf
daemon=1h
syslog=yes
use=web, web=dnspark
ssl=yes
protocol=cloudflare
server=api.cloudflare.com/client/v4
zone=MYDOMEN.TLD
login=CLOUDFLARE_ACCOUNT_MAIL
# See API-KEY https://www.cloudflare.com/a/account/my-account
# If needed install: JSON::Any, Data::Validate::IP, IO::Socket::SSL
sudo apt-get install libjson-any-perl libdata-validate-ip-perl libio-socket-ssl-perl
cd ~
wget https://raw.githubusercontent.com/wimpunk/ddclient/master/ddclient
sudo cp ddclient /usr/sbin/ddclient
sudo chmod +x /usr/sbin/ddclient
sudo mkdir /var/cache/ddclient
sudo mkdir /etc/ddclient
sudo nano /etc/ddclient/ddclient.conf
IDE Date IDE MSVC++ cl.exe _MSC_VER .NET
VS 97 1997-02 5.0 5.0 1100
VS 6.0 1998-06 6.0 6.0 12.00 1200
VS .NET 2002 2002-02-13 7.0 7.0 13.00 1300 1.0
VS .NET 2003 2003-04-24 7.1 7.1 13.10 1310 1.1
VS 2005 2005-11-07 8.0 8.0 14.00 1400 2.0
VS 2008 2007-11-19 9.0 9.0 15.00 1500 2.0 – 3.5
VS 2010 2010-04-12 10.0 10.0 16.00 1600 2.0 – 4.0
VS 2012 2012-08-15 11.0 11.0 17.00 1700 2.0 – 4.5
@Ruzzz
Ruzzz / deploy.cmd
Created January 1, 2017 12:26
Create actual distr archive my_app.7z and source code archive from repository my_app_src.zip
set PROJECT=MY_APP
set ARCH_NAME=%PROJECT%_by_ruzzz.7z
set ROOT=%~dp0
del "%ROOT%\%ARCH_NAME%"
rd /s /q "%ROOT%\%PROJECT%"
md "%ROOT%\%PROJECT%"
copy "%ROOT%\bin\MY_APP.exe" "%ROOT%\%PROJECT%"
copy "%ROOT%\bin\MY_APP64.exe" "%ROOT%\%PROJECT%"
Категория Оператор Объявление Эквивалент
Conversion Implicit Implicit(a: Type): TResult; implicit Typecast
. Explicit Explicit(a: Type): TResult; explicit Typecast
Unary Negative Negative(a: Type): TResult; -
. Positive Positive(a: Type): TResult; +
. Inc Inc(a: Type): TResult; Inc
. Dec Dec(a: Type): TResult Dec
. LogicalNot LogicalNot(a: Type): TResult; not
. Trunc Trunc(a: Type): TResult; Trunc
Свойство Class Object Record Interface
Является указателем
Наследование
Наследование от Interface
Visibility
Методы (Methods)
Свойства (Properties)
Поля (Fields)
Consts
Type Signed/Unsigned x86 (bit) x64 (bit)
BYTE, BOOLEAN U 8 8
SHORT S 16 16
USHORT, WORD U 16 16
INT, LONG S 32 32
UINT, ULONG, DWORD U 32 32
INT_PTR, LONG_PTR, LPARAM S 32 64
UINT_PTR, ULONG_PTR, WPARAM U 32 64
LONGLONG S 64 64
AIR Version SWF Version Flash Player Version
N/A 9 9.0.115.0
1.5, 2.0 10 10.0, 10.1
2.6 11 10.2
2.7 12 10.3
3 13 11.0
3.1 14 11.1
3.2 15 11.2
3.3 16 11.3
@Ruzzz
Ruzzz / diff_big.cpp
Last active January 2, 2017 14:39
Show differense of big files with same size (use WinAPI)
// The MIT License (MIT)
// Copyright (c) 2016 Ruslan Zaporojets
//
// 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:
//