Skip to content

Instantly share code, notes, and snippets.

View c1982's full-sized avatar
🍄
yeah!

Oğuzhan Yılmaz c1982

🍄
yeah!
View GitHub Profile
@c1982
c1982 / yaziya_bad_test.go
Created November 28, 2017 13:21
Old golang test
package yaziya
import (
"testing"
)
func Test_Yaziya_Cevir_Birler(t *testing.T) {
var price float64
price = 5
@c1982
c1982 / iis.8.handlers.xml
Created November 1, 2016 12:44
default handlers for IIS 8
<handlers accessPolicy="Read, Script">
<add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" />
<add name="SecurityCertificate" path="*.cer" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" />
<add name="PHP53" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files\MaestroPanel\php\v5.3\php-cgi.exe" resourceType="Either" />
<add name="PHP54" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files\MaestroPanel\php\v5.4\php-cgi.exe" resourceType="Either" />
<add name="PHP55" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\Program Files\MaestroPanel\php\v5.5\php-cgi.exe" resourceType="Either" />
<add name="xamlx-ISAPI-4.0_64bit" path="*.xamlx" verb="GET,HEAD,PO
@c1982
c1982 / handlers.xml
Last active October 25, 2016 22:21
Sample Handlers for IIS Web Site
<handlers>
<add name="PageHandlerFactory-Integrated-4.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="PageHandlerFactory-Integrated" path="*.aspx" verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory" preCondition="integratedMode,runtimeVersionv2.0" />
<add name="ScriptResourceIntegrated-4.0" path="*ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="AssemblyResourceLoader-Integrated-4.0" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="AssemblyResourceLoader-Integrated" path="WebResource.axd" verb="GET,DEBUG" type="System.Web.Handlers.AssemblyResourceLoader" preCondition="integratedM
@c1982
c1982 / MethodResult.cs
Created August 27, 2015 16:03
MethodResult
public class MethodResult
{
public bool Status { get; set; }
public string Msg { get; set; }
public string HowToResolve { get; set; }
}
@c1982
c1982 / tyyp.reg
Created February 6, 2014 02:08
Bilgisayarınızda tyyp:// protokolünü aktifleştirmek için aşağıdaki dosyayı .reg uzantısı ile kaydedip çalıştırdıktan sonra istediğiniz herhangi bir siteyi tyyp://www.google.com şeklinde çalıştırıp internetin keyfini yaşayabilirsiniz.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\tyyp]
@="URL:HyperText Transfer Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\tyyp\DefaultIcon]
@="C:\\Windows\\System32\\url.dll,0"
[HKEY_CLASSES_ROOT\tyyp\shell]
@c1982
c1982 / gist:5662805
Created May 28, 2013 13:36
GetPleskPassword(); Tested for Plesk 8.6
public string GetPanelPassword()
{
var plesksrvclient_exe = Path.Combine(Environment.GetEnvironmentVariable("plesk_bin", EnvironmentVariableTarget.Machine),"plesksrvclient.exe");
CoreHelper.Exec(plesksrvclient_exe, "-get -nogui");
return System.Windows.Forms.Clipboard.GetText();
}
@c1982
c1982 / plesk_access_ssl_ip_domain.sql
Created April 28, 2013 23:09
Get SSL certificates IP and Domain names
SELECT domains.name, ip_addresses.ip_address, certificates.name AS cert_name, certificates.ca_file
FROM ((domains INNER JOIN
hosting ON domains.id = hosting.dom_id) INNER JOIN
(ip_addresses INNER JOIN
certificates ON ip_addresses.ssl_certificate_id = certificates.id) ON hosting.ip_address_id = ip_addresses.id)
ORDER BY ip_addresses.ip_address
SELECT domains.name,data_bases.name,data_bases.type,db_users.login,db_users.passwd
FROM data_bases
LEFT JOIN domains ON domains.id = data_bases.dom_id
LEFT JOIN db_users ON db_users.db_id = data_bases.id
SELECT domains.name,forwarding.redirect FROM forwarding LEFT JOIN domains ON forwarding.dom_id = domains.id
SELECT domains.name, hosting.fp_adm, accounts.password, clients.login,
clients.passwd, dom_level_usrs.passwd As DomainPass, domains.status As Status
FROM domains
LEFT JOIN hosting ON hosting.dom_id = domains.id
LEFT JOIN sys_users ON hosting.sys_user_id = sys_users.id
LEFT JOIN accounts ON accounts.id = sys_users.account_id
LEFT JOIN clients ON clients.id = domains.cl_id
LEFT JOIN dom_level_usrs ON dom_level_usrs.dom_id = domains.id