Skip to content

Instantly share code, notes, and snippets.

View TheFern2's full-sized avatar

Fernando B TheFern2

View GitHub Profile
@TheFern2
TheFern2 / fish_install.md
Created October 28, 2022 14:49 — forked from gagarine/fish_install.md
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS (Intel and M1) using brew

Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.

Note that you need the https://brew.sh/ package manager installed on your machine.

Install Fish

brew install fish

Windows compilation for pgmodeler

Install msys2

1: pacman -Suy
2: pacman -Suy
3: pacman -S base-devel mingw-w64-x86_64-make mingw-w64-x86_64-gcc mingw-w64-x86_64-postgresql mingw-w64-x86_64-qt5
@TheFern2
TheFern2 / main.cpp
Last active April 4, 2022 12:18
libpqxx pqxx windows install guide
#include <iostream>
#include <pqxx/pqxx>
int main()
{
std::string conn_str = "host=localhost port=5432 dbname=test01 user=postgres password=sdfsdfsdf";
try
{
pqxx::connection conn(conn_str.c_str());
@TheFern2
TheFern2 / plugin.md
Created March 12, 2022 18:02
vim plugin stuff

Some useful links for vim plugins

@TheFern2
TheFern2 / tmux.conf
Created March 10, 2022 14:45
tmux config
unbind C-b
set-option -g prefix C-f
bind-key C-f send-prefix
set -g mouse on
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
@TheFern2
TheFern2 / guide.md
Last active March 9, 2022 13:35
How to use go sfml with windows mingw64 powershell
@TheFern2
TheFern2 / opene.sh
Created December 7, 2021 23:39 — forked from beakr/opene.sh
Open Windows file explorer on a directory with Cygwin.
#!/bin/bash.exe
# This script opens a given directory up in the Windows file explorer. I did
# this to make it easy when opening directories in the Cygwin system using
# the explorer.
#
# To install:
#
# $ touch /usr/bin/opene
# $ vim /usr/bin/opene
@TheFern2
TheFern2 / pyinstaller-venv.md
Last active September 29, 2021 22:30
pyinstaller-notes
@TheFern2
TheFern2 / package.md
Last active September 7, 2021 14:33
ROS Project Setup
  • create package with needed deps
catkin_create_pkg some_package std_msgs rospy roscpp
  • add msg folder
  • add scripts folder
  • add srv folder if any services will be running
  • on package.xml uncomment message_generation, and message_runtime
  • find_package rospy std_msgs message_generation
  • add_message_files
@TheFern2
TheFern2 / monitor_folder_sizes.py
Created August 12, 2021 14:49
Monitor Folder Sizes
from dataclasses import dataclass
import os
import socket
import argparse
import time
mega_bytes = 25
size_filter = 1024 * 1024 * mega_bytes
test_only_local = False
root_path = 'C:/'