Skip to content

Instantly share code, notes, and snippets.

@gilby125
gilby125 / install-displaylink-ubuntu-based
Last active January 25, 2024 13:47
Displaylink-Ubuntu
# Install workaround for Displaylink driver on Fedora 39
# December 7th, 2023
# Download Displaylink rpm for Fedora 38
https://github.com/displaylink-rpm/displaylink-rpm/releases/download/v5.8.0/fedora-38-displaylink-1.14.1-1.x86_64.rpm
#If the driver was already installed but quit working, after kernel update, remove it.
sudo dnf remove displaylink
# Built and install the edvi modules.
git clone https://github.com/DisplayLink/evdi
cd evdi
export CPLUS_INCLUDE_PATH="/usr/include/python3.12:$CPLUS_INCLUDE_PATH"
@gilby125
gilby125 / 01-generate-ed25519-ssh-key.sh
Created January 19, 2024 02:19 — forked from grenade/01-generate-ed25519-ssh-key.sh
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
# generate new personal ed25519 ssh key
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>"
# generate new host cert authority (host_ca) ed25519 ssh key
# used for signing host keys and creating host certs
ssh-keygen -t ed25519 -f manta_host_ca -C manta.network
eval "$(ssh-agent -s)"
@gilby125
gilby125 / generate-ssh-key.sh
Last active January 19, 2024 02:18 — forked from denisgolius/generate-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "gilby1@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "gilby1@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "gilby1@gmail.com" -f ~/.ssh/mozilla_rsa

Starting Postgresql in Windows without Install

Problem

This is a question that comes up quite often by windows users, so thought we would share how we normally do it. The question is

Can you run a PostgreSQL server on your windows desktop/server box without having to install anything?

The answer is

@gilby125
gilby125 / pyrfc-win10-64.md
Created September 15, 2020 22:02 — forked from auriza/pyrfc-win10-64.md
SAP PyRFC
@gilby125
gilby125 / businesses.json
Created September 29, 2016 01:51 — forked from zross/businesses.json
Leaflet.js Tips, Step 7 (filter buttons)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gilby125
gilby125 / database.yml.example mysql2
Created September 11, 2016 14:39 — forked from erichurst/database.yml.example mysql2
Rails 3 database.yml examples
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
# gem install mysql2
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql2
encoding: utf8
@gilby125
gilby125 / capybara cheat sheet
Created January 16, 2016 21:58 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')