Skip to content

Instantly share code, notes, and snippets.

Mayrun mayrund

Block or report user

Report or block mayrund

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mayrund
mayrund / openvpn_config.txt
Last active Aug 1, 2019
extra OpenVPN configuration
View openvpn_config.txt
# DNS
# add this to keep using the local DNS server
pull-filter ignore "dhcp-option DNS"
# or add this if you would like to use a specific DNS server when connecting with
dhcp-option DNS 10.11.12.13
@mayrund
mayrund / locale_fix.sh
Created Jul 29, 2017
Armbian fix locale problem
View locale_fix.sh
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
@mayrund
mayrund / Network Initialization Failed C:\PDOXUSERS.NET Permission Denied
Created Nov 21, 2016
Network Initialization Failed C:\PDOXUSERS.NET Permission Denied
View Network Initialization Failed C:\PDOXUSERS.NET Permission Denied
EDBEngineError-Network Initialization Failed
Permission Denied
File C:\PDOXUSERS.NET
Directory: c:\
1. Create a new directory such as C:\BDEShare or use an existing folder (like My Documents).
2. Start the BDE Administration utility, located in: C:\Program Files (x86)\Common Files\Borland Shared\BDE\BDEADMIN.EXE
3. Click Configuration -> Drivers -> Native -> Paradox
4. Cick on the path next to NET DIR
5. Click the browse button to the right of the path
@mayrund
mayrund / getPortByProcessName.bat
Last active Nov 19, 2016
Windows Get Port by Process Name
View getPortByProcessName.bat
for /f "tokens=2 delims=," %F in ('tasklist /nh /fi "imagename eq sqlservr.exe" /fo csv') do netstat -oan | findstr %~F
(Note: Please replace % with %% when running in Batch file instead of Command Line)
View C#_CaptureHTTP_request
private string GetRequest()
{
var headers = String.Empty;
StringBuilder sb = new StringBuilder();
sb.AppendLine("URL: " + Context.Request.Url);
sb.AppendLine("IP address:" + Context.Request.UserHostAddress);
sb.AppendLine("HttpMethod " + Request.HttpMethod);
sb.AppendLine("Header:");
foreach (var key in Request.Headers.AllKeys)
sb.AppendLine(key + "=" + Request.Headers[key]);
View firebird_sql_add_user.txt
1. gsec -user SYSDBA -password masterkey
2. add test -pw test -fname Test -lname Account
3. exit
4. login with user test & password test
@mayrund
mayrund / uninstall_windows_service.vbs
Created Jun 8, 2016
Uninstall Windows Service VBScript
View uninstall_windows_service.vbs
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colListOfServices = objWMIService.ExecQuery _
("Select * from Win32_Service Where Name = 'Name_Of_Service_You_Want_To_Uninstall_Here'")
For Each objService in colListOfServices
objService.StopService()
objService.Delete()
@mayrund
mayrund / check network speed
Last active Dec 26, 2015
Check network speed against cachefly without writing data to physical drive.
View check network speed
linux: wget http://cachefly.cachefly.net/100mb.test -O /dev/null
osx: curl -L -o /dev/null http://cachefly.cachefly.net/100mb.test $ dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
@mayrund
mayrund / KB2468871
Created Dec 8, 2015
Microsoft.Bcl.Async not being able to resolve System.Core version 2.0.5.0.
View KB2468871
Please install KB2468871, which solves the issue related to Microsoft.Bcl.Async not being able to resolve System.Core version 2.0.5.0.
See also Issue 8 in the async targeting pack knowledge base.
Here are the direct download links for the fixes, for the x86 and x64 environments:
http://download.microsoft.com/download/2/B/F/2BF4D7D1-E781-4EE0-9E4F-FDD44A2F8934/NDP40-KB2468871-v2-x86.exe
http://download.microsoft.com/download/2/B/F/2BF4D7D1-E781-4EE0-9E4F-FDD44A2F8934/NDP40-KB2468871-v2-x64.exe
You can’t perform that action at this time.