Skip to content

Instantly share code, notes, and snippets.

View wipermail's full-sized avatar
🎯
Focusing

wipermail

🎯
Focusing
View GitHub Profile
@wipermail
wipermail / searchform.php
Created August 9, 2023 07:57
wp default search fowm
<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ) ?>" >
<label class="screen-reader-text" for="s">Поиск: </label>
<input type="text" value="<?php echo get_search_query() ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" value="найти" />
</form>
@wipermail
wipermail / MouseLook.cs
Last active August 13, 2023 21:51
Framework sensitivity mouse X,Y - Unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Serialization;
[RequireComponent(typeof(Rigidbody))]
[AddComponentMenu("Custom/Control Script/Mouse Look")]
public class MouseLook : MonoBehaviour
{
public enum RotationAxes
@wipermail
wipermail / FPSInput.cs
Last active August 13, 2023 21:51
Framework movement Horizontal/Vertical - Unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(CharacterController))]
[AddComponentMenu("Custom/Control Script/FPS Input")]
public class FPSInput : MonoBehaviour
{
private CharacterController _characterController;
@wipermail
wipermail / generate_random_secret_string.txt
Last active September 14, 2023 09:21
Generate random secret string *nix
openssl rand -base64 64
gpg --gen-random 1 10 | base64
gpg --gen-random 2 20 | base64
gpg --gen-random 1 40 | base64
gpg --gen-random 2 70 | base64
head -c 35 /dev/random | base64
head -c 60 /dev/random | base64
date | sha256sum | base64 | head -c 45; echo
date | sha256sum | base64 | head -c 50; echo
date | sha256sum | base64 | head -c 60; echo
@wipermail
wipermail / Set Permanent Environment Variable.txt
Created September 14, 2023 09:22
*nix Set Permanent Environment Variable
~/.bash-profile | ~/.zprofile
export [variable_name]=[variable_value]
source ~/.bash-profile | ~/.zprofile
@wipermail
wipermail / docker-compose.yml
Created February 22, 2024 20:42
GitLab Docker Compose Nginx SSL Proxy
version: '3.7'
services:
gitlab:
container_name: gitlab
image: 'gitlab/gitlab-ce:16.9.1-ce.0'
restart: always
hostname: 'hostname'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://hostname'