Skip to content

Instantly share code, notes, and snippets.

View stnc's full-sized avatar
🎯
Focusing

TUNÇ Selman stnc

🎯
Focusing
View GitHub Profile
@stnc
stnc / wordpress hestiacp and vestacp permission.sh
Last active July 3, 2023 04:34
wordpress hestiacp and vestacp permission
find /home/admin/web/mysite.com/public_html/ -type f -exec chmod 664 {} \;
find /home/admin/web/mysite.com/public_html/ -type f -exec chmod 755 {} \;
chgrp -R admin /home/admin/web/mysite.com/public_html/
chown -R admin:admin /home/admin/web
@stnc
stnc / visa.py
Created March 9, 2022 07:11 — forked from yaojialyu/visa.py
ais usvisa reschedule
# -*- coding: utf8 -*-
import time
import json
import random
import platform
from datetime import datetime
import requests
from selenium import webdriver
@stnc
stnc / vesta.sh
Last active February 10, 2022 10:33
#!/bin/bash
# Vesta installation wrapper
# http://vestacp.com
#
# Currently Supported Operating Systems:
#
# RHEL 5, 6, 7
# CentOS 5, 6, 7
# Debian 7, 8
@stnc
stnc / HandleBar_mini.html
Last active April 14, 2025 06:59
HandleBar.js example demo page https://stnc.github.io/handleBar/
<div id="singleItems" class="d-lfex justify-content-center flex-column">
<script id="singleItemsTpl" type="text/x-handlebars-template">
<div class="name_container">
<div class="name-">{{data.first_name}} {{data.last_name}} </div>
</div>
<div class="address"><strong>Mail:</strong> {{data.email}} </div>
web site
<hr>
<div class="address">{{support.url}} </div>
@stnc
stnc / time.go
Last active October 7, 2020 22:15
timer go
package main
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"runtime"
@stnc
stnc / golang_reduce_map.go
Created October 2, 2020 12:08 — forked from wuriyanto48/golang_reduce_map.go
How to Join Map In Golang (Map Union)
package main
import (
"fmt"
)
type Item struct{
Id int
Name string
Qty int
@stnc
stnc / log.php
Created July 23, 2020 07:06
error_log_blog_example
<?php
private function creditcard_callback($postParams, $action = "")
{
$strMDStatus = isset($this->mdStatuses[$postParams["mdstatus"]]) ? $postParams["mdstatus"] : 7; // 7=Sistem hatası
if ($action == "success" && in_array($strMDStatus, array(1, 2, 3, 4))) {
// Tam Doğrulama, Kart Sahibi veya bankası sisteme kayıtlı değil, Kartın bankası sisteme kayıtlı değil, Kart sahibi sisteme daha sonra kayıt olmayı seçmiş cevaplarını alan işlemler için provizyon almaya çalışıyoruz
$strNumber = ""; // Kart bilgilerinin boş gitmesi gerekiyor
$strExpireDate = ""; // Kart bilgilerinin boş gitmesi gerekiyor
$strCVV2 = ""; // Kart bilgilerinin boş gitmesi gerekiyor
@stnc
stnc / custom_form.php
Last active September 12, 2024 12:54
Creating Custom Front End Registration and Login Forms for WordPress
<?php
/*
Plugin Name: Front End Registration and Login
Plugin URI: https://pippinsplugins.com/creating-custom-front-end-registration-and-login-forms
Description: Provides simple front end registration and login forms
Version: 1.0
Author: Pippin Williamson
Author URI: https://pippinsplugins.com
*/
@stnc
stnc / table.php
Created May 24, 2020 13:31
wordpress Custom List Table Example plugin backup
<?php
/*
Plugin Name: Custom List Table Example
Plugin URI: http://www.mattvanandel.com/
Description: A highly documented plugin that demonstrates how to create custom List Tables using official WordPress APIs.
Version: 1.4.1
Author: Matt van Andel
Author URI: http://www.mattvanandel.com
License: GPL2
*/
@stnc
stnc / web.config
Created May 23, 2020 00:33
Azure Functions does not work if length of the request URL?
<!--
Rewrites requires Microsoft URL Rewrite Module for IIS
Download: https://www.microsoft.com/en-us/download/details.aspx?id=47337
Debug Help: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-failed-request-tracing-to-trace-rewrite-rules
-->
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">