Skip to content

Instantly share code, notes, and snippets.

View shoman4eg's full-sized avatar
🏠
Working from home

Artem Dubinin shoman4eg

🏠
Working from home
View GitHub Profile
@shoman4eg
shoman4eg / browser_chooser.desktop
Created March 24, 2024 22:04 — forked from cold-logic/browser_chooser.desktop
Browser Chooser for GNOME
[Desktop Entry]
Categories=GNOME;GTK;Network;WebBrowser;
Comment=Browser picker
Exec=$HOME/.bin/browser_chooser %U
GenericName=Web Browser
Icon=firefox
Keywords=Internet;WWW;Browser;Web;Explorer
Name=Browser Chooser
Type=Application
Version=1.0
@shoman4eg
shoman4eg / README.md
Created October 3, 2023 15:38 — forked from crypticmind/README.md
Setup lambda + API Gateway using localstack

Keybase proof

I hereby claim:

  • I am shoman4eg on github.
  • I am shoman4eg (https://keybase.io/shoman4eg) on keybase.
  • I have a public key ASBjG45c9jG86-wHHVJuD-ElV14P4S-pWk6Ey3c5gtRwzwo

To claim this, I am signing this object:

#!/bin/bash
# Recommended steps:
#
# bootstrap before entering chroot
# copy this script into INSTALL_DIR
# rootinit after entering chroot
# x (if installing graphics)
# pkgs
# xpkgs (if installing graphics)
@shoman4eg
shoman4eg / strong-passwords.php
Last active September 2, 2021 01:32 — forked from tylerhall/strong-passwords.php
A user friendly, strong password generator PHP function.
<?PHP
// Generates a strong password of N length containing at least one lower case letter,
// one uppercase letter, one digit, and one special character. The remaining characters
// in the password are chosen at random from those four sets.
//
// The available characters in each set are user friendly - there are no ambiguous
// characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option,
// makes it much easier for users to manually type or speak their passwords.
//
function generateStrongPassword($length = 9, $availableSets = 'luds'): string
@shoman4eg
shoman4eg / rk.php
Created November 22, 2017 10:38
rk.php
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Переход по внешней ссылке <?= $request->get("goto") ?></title>
<meta name="referrer" content="origin">
<noscript>
<META http-equiv="refresh" content="0;URL=<?= $request->get("goto") ?>">
</noscript>
</head>
#!/bin/sh
#----------------------------------------------------------
# a simple mysql database backup script.
# version 2, updated March 26, 2011.
# copyright 2011 alvin alexander, http://alvinalexander.com
#----------------------------------------------------------
# This work is licensed under a Creative Commons
# Attribution-ShareAlike 3.0 Unported License;
# see http://creativecommons.org/licenses/by-sa/3.0/
@shoman4eg
shoman4eg / output.css
Last active July 9, 2018 16:22
Less space utilities
.mt-5 {
margin-top: 5px;
}
.mr-5 {
margin-right: 5px;
}
.mb-5 {
margin-bottom: 5px;
}
.ml-5 {
@shoman4eg
shoman4eg / footerasset.php
Created March 22, 2017 11:36
Bitrix js in footer
<?php
use Bitrix\Main\Page\Asset;
class FooterAsset
{
const LOCATION = 'FOOTER_LOCATION';
public static function addJs($src, $options = [])
{
@shoman4eg
shoman4eg / rc.lua
Created March 5, 2017 21:33
awesomewm
--[[
Awesome WM configuration template
--]]
-- {{{ Required libraries
local awesome, client, screen, tag = awesome, client, screen, tag
local ipairs, string, os, table, tostring, tonumber, type = ipairs, string, os, table, tostring, tonumber, type
local gears = require("gears")
local gdebug = require("gears.debug")