Skip to content

Instantly share code, notes, and snippets.

View JosefJezek's full-sized avatar

Josef Ježek JosefJezek

  • Heart of Europe
View GitHub Profile
@JosefJezek
JosefJezek / wp-installation.md
Created April 17, 2014 16:08
Automated Wordpress Installation on Ubuntu / Debian
@JosefJezek
JosefJezek / how-to-cisco.md
Last active September 19, 2023 10:25
How to Cisco

How to Cisco

Password Recovery Procedure

ROMmon

confreg 0x2142 (at the rommon 1> prompt)
reset
@JosefJezek
JosefJezek / playwright-tips.md
Last active February 2, 2023 11:45
Playwright Tips

Playwright Tips

Base Scripts

import {chromium, firefox, webkit} from 'playwright';

for (const browserType of [chromium, firefox, webkit]) {
  const browser = await browserType.launch();
  const page = await browser.newPage();
@JosefJezek
JosefJezek / setup-msmtp-for-gmail.sh
Last active August 14, 2022 11:44
Sending emails using Gmail and msmtp on Ubuntu / Debian
#!/bin/sh
# Sending emails using Gmail and msmtp
# Author: [Josef Jezek](http://about.me/josefjezek)
# Donate: [Gittip](https://www.gittip.com/josefjezek)
# Link: [Gist](https://gist.github.com/6194563)
# Usage: setup-msmtp-for-gmail.sh
sudo apt-get update -q
sudo apt-get install msmtp-mta ca-certificates heirloom-mailx -yq
@JosefJezek
JosefJezek / swap.md
Last active June 23, 2022 01:56
Swap on Linux
@JosefJezek
JosefJezek / ldap2csv.py
Last active April 23, 2022 07:49
Export Users from Active Directory / LDAP to CSV file with Python
#!/usr/bin/python
# http://www.packtpub.com/article/python-ldap-applications-ldap-opearations
# sudo apt-get install python-ldap
import ldap
host = 'ldap://example.com:389'
dn = 'ldap@example.com'
@JosefJezek
JosefJezek / bash_aliases.sh
Last active April 14, 2022 07:46
Bash Aliases for Ubuntu
# Bash Aliases for Ubuntu
# Install: curl https://gist.githubusercontent.com/josefjezek/9188977/raw -o ~/.bash_aliases
# Enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls -hF --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
@JosefJezek
JosefJezek / install-and-setup-wordpress.md
Last active February 16, 2022 16:10
Install & Setup WordPress

How to add custom search engines to Chrome

Chrome's address bar doubles as a way to do a quick Google search, but you're not limited to searching Google. In that same bar, you can search any site or app.

This is great if you search specific apps frequently - for example, Gmail, Google Drive, or Twitter. You can search any site without having to open it first, just like you don't have to go to google.com to search Google. Type a keyword, hit space or tab, and you're good to go.

Demo