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
#!/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
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 2
Comment=Edit text files
Exec=sublime
Icon=sublime_text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"