Obsolete command
ifconfig
=>ip addr
andip link
netstat
=>ss
,ip route
Set interface up on boot
/etc/sysconfig/network
NETWORKING=yes
import re | |
import csv | |
import sys | |
import requests | |
from requests.exceptions import RequestException | |
import threading | |
from subprocess import call | |
from bs4 import BeautifulSoup | |
from html.parser import HTMLParseError | |
from urllib.parse import urljoin |
import win32serviceutil | |
import win32service | |
import win32event | |
import servicemanager | |
# import signal | |
# import os | |
from multiprocessing import Process | |
from main import app | |
<?php | |
class Mcrypt | |
{ | |
/** | |
* @var string Encryption key | |
*/ | |
public $key; |
// Source: https://stackoverflow.com/a/8561604/1877620 | |
if (!function_exists('ldap_escape')) { | |
define('LDAP_ESCAPE_FILTER', 0x01); | |
define('LDAP_ESCAPE_DN', 0x02); | |
/** | |
* @param string $subject The subject string | |
* @param string $ignore Set of characters to leave untouched | |
* @param int $flags Any combination of LDAP_ESCAPE_* flags to indicate the |
# Wrap putty-serial.vbs to exe | |
Name "PuTTY Serial" | |
Icon "putty.ico" | |
OutFile "putty-serial.exe" | |
InstallDir "$TEMP" | |
RequestExecutionLevel user | |
SilentInstall silent | |
Section |
@echo off | |
set hosts_file=%WINDIR%\System32\drivers\etc\hosts | |
set host=127.0.0.1 fvc_stat.freemake.com | |
find /i "%host%" %hosts_file% > nul | |
if %ERRORLEVEL% == 0 ( | |
echo "%host%" already exist. | |
) else ( | |
(echo. & echo %host%) >> %hosts_file% |
//--VAR | |
$puts(brd,28-28-28) | |
$puts(brd2,70-70-70) | |
$puts(brd_g1,50-50-50) | |
$puts(brd_g2,35-35-35) | |
$puts(transparent, 0-0-0-0) | |
// Column padding | |
$puts(padding, 16) |