Skip to content

Instantly share code, notes, and snippets.

View wipermail's full-sized avatar
🎯
Focusing

wipermail

🎯
Focusing
View GitHub Profile
@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'
@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 / 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 / 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 / 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 / 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 / gist:df12c915e36fe1d6fdbb29fb2643db04
Created July 10, 2023 10:29
MacOs Apple Silicon JetBrains Product Flickering when doing something
Help | Edit Custom VM options
-Dsun.java2d.metal=false
@wipermail
wipermail / Who is listening on a port in Linux.txt
Created May 13, 2023 16:36
Who is listening on a port in Linux
sudo lsof -i :номер_порта
sudo netstat -lntup
Опишем все ключи, которые используются в команде
-l показать только прослушиваемые "LISTEN" порты.
-n показывать адреса как ip, а не пытаться определять домены.
-t показывать TCP порты.
-u показывать UDP порты.
-p показать название программы, которая слушает порт.
@wipermail
wipermail / chng_pass_user_mysql.sql
Created April 3, 2023 13:37
change password mysql user
ALTER USER 'userName'@'localhost' IDENTIFIED BY 'New-Password-Here';
@wipermail
wipermail / gen_pass.txt
Created April 3, 2023 13:30
Password Generation Examples
openssl rand -base64 32