Skip to content

Instantly share code, notes, and snippets.

View tmamedbekov's full-sized avatar
🤠
alert( 'Howdy, world!' );

Tony Mamedbekov tmamedbekov

🤠
alert( 'Howdy, world!' );
View GitHub Profile
@tmamedbekov
tmamedbekov / index.js
Last active February 5, 2021 22:17
Example of NextJS data fetching Scenarios with BoredAPI || https://ourdemo.netlify.app/
import React from "react";
import { useState, useEffect } from "react";
import axios from "axios";
import Head from "next/head";
import Footer from "../components/Footer";
import styles from "../styles/Home.module.css";
const Index = (props) => {
const [bored, getBored] = useState("");
@tmamedbekov
tmamedbekov / gist:c85d13a6978ea0a8ec0638d78c9d0906
Created November 7, 2020 22:44
Windows Server 2016/2019 Evaluation: How to extend the Trial Period
slmgr -dlv
slmgr -rearm
#restart
slmgr -dli

Keybase proof

I hereby claim:

  • I am tmamedbekov on github.
  • I am tmamedbekov (https://keybase.io/tmamedbekov) on keybase.
  • I have a public key ASC5sYd_NdW5OjKxt-gYIcJuOBSLByqQdey9CTzl16qlrwo

To claim this, I am signing this object:

@tmamedbekov
tmamedbekov / docker_wordpress.md
Created December 5, 2019 20:04 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
import { CommonFieldTypes, SitecoreIcon, Manifest } from '@sitecore-jss/sitecore-jss-manifest';
export default function(manifest) {
manifest.addComponent({
name: 'Profile',
icon: SitecoreIcon.DocumentTag,
fields: [
{ name: 'avatar', type: CommonFieldTypes.Image },
{ name: 'name', type: CommonFieldTypes.SingleLineText },
{ name: 'title', type: CommonFieldTypes.SingleLineText },
import React from 'react';
import { Text, Image } from '@sitecore-jss/sitecore-jss-react';
const Profile = (props) => (
<div className="col-md-8">
<Image
field={props.fields.avatar}
className="avatar"
/>
<h1><Text field={props.fields.name} /></h1>
yourApplicationName/data/routes/en.yml
@tmamedbekov
tmamedbekov / app.get
Created January 13, 2017 21:55
Simple readdir with express server. NODE.JS
var express = require('express');
var fs = require('fs');
var app = express();
app.get('/logJson', function (req, res) {
const logsFolder = '/folder/path/';
fs.readdir(logsFolder, (err, files) => {
if (err) {
@tmamedbekov
tmamedbekov / phantomjs_patch.config
Created October 31, 2018 13:46
Disable PhantomJS
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
<sitecore role:require="ContentDelivery or Reporting or Processing">
<settings>
<setting name="ContentTesting.AutomaticContentTesting.Enabled" value="false" />
<setting name="ContentTesting.AlwaysShowTestCandidateNotification" value="false" />
</settings>
<pipelines>
<renderingRuleEvaluated>
<processor type="Sitecore.ContentTesting.Pipelines.RenderingRuleEvaluated.TestingRule, Sitecore.ContentTesting">
<section class="row page-header sampleComponent spaced-row" ng-show="data">
<div class="col-xs-12">
<h1 class="header" ng-bind-html="data.Title | asTrusted"></h1>
</div>
<article class="col-xs-7 col-md-8">
<p ng-bind-html="data.Text | asTrusted"></p>
</article>
<figure class="col-xs-5 col-md-4">
<span ng-bind-html="data.Image | asTrusted"></span>
</figure>