Skip to content

Instantly share code, notes, and snippets.

View xpology's full-sized avatar

Kenan Savaş xpology

View GitHub Profile
Rem run as administrator
@echo on & @setlocal enableextensions
@echo =========================
@echo Turn off the time service
net stop w32time
@echo ======================================================================
@echo Set the SNTP (Simple Network Time Protocol) source for the time server
w32tm /config /syncfromflags:manual /manualpeerlist:"0.it.pool.ntp.org 1.it.pool.ntp.org 2.it.pool.ntp.org 3.it.pool.ntp.org"
@echo =============================================
@echo ... and then turn on the time service back on
<?php
/*
Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch)
---------
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
@xpology
xpology / JsonTexter.php
Created March 18, 2021 09:10 — forked from sarfraznawaz2005/JsonTexter.php
read and write php array to json file
<?php
/*
Class for reading and writing array data in json format
Author: Sarfraz Ahmed (sarfraznawaz2005@gmail.com)
*/
class JsonTexter
{
protected $file = null;
public function __construct($file)