Skip to content

Instantly share code, notes, and snippets.

@bekasov
bekasov / ohmyzsh.md
Created May 19, 2021 20:17 — forked from yovko/ohmyzsh.md
ZSH (using Oh My ZSH) on Manjaro Linux

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

sudo pacman -Syu zsh

You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.

@bekasov
bekasov / votethefirst.php
Created March 3, 2019 05:21
Vote the first simple game
<?php
$valid_password_hash = "-- Your password`s md5 hash here --";
$user = $_SERVER['PHP_AUTH_USER'];
$pass = $_SERVER['PHP_AUTH_PW'];
$validated = md5($pass) == $valid_password_hash;
if (!$validated) {
@bekasov
bekasov / NullableType.h
Last active August 29, 2015 14:09
C++ Nullable Type Template
#ifndef NULLABLETYPE_H
#define NULLABLETYPE_H
template <class T>
class NullableType
{
protected:
T* value;
public: