Skip to content

Instantly share code, notes, and snippets.

@apzentral
apzentral / starting-script.py
Last active March 4, 2024 15:45
Python: starting script
# -*- coding: utf-8 -*-
"""
Summary:
"""
import inspect
import logging
import os
import pathlib
@apzentral
apzentral / starting-script-jupyter.py
Last active February 2, 2024 16:41
Python: starting script for Jupyter
# -*- coding: utf-8 -*-
"""
Summary:
"""
from IPython.display import display, HTML
import inspect
import logging
import os
@apzentral
apzentral / .bash_aliases
Last active February 2, 2024 16:33
aliases file
###################################
# Utilities
###################################
alias b="brew"
alias c="clear && reset"
alias re="reset"
alias e="exit"
alias s="sudo su"
alias m="make"
alias n="node"
@apzentral
apzentral / .tmux.conf
Last active September 29, 2023 19:18
TMUX basic config using A instead of B
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
@apzentral
apzentral / utilities.css
Last active June 9, 2023 16:11
CSS: Utility Styles
/**
* Width
*/
.width-100-percent {
width: 100%;
}
/**
* divider
@apzentral
apzentral / build.xml
Last active April 19, 2023 19:18
ANT: scp template
<!-- Build Script for ANT -->
<project basedir="." default="" name="Build Script">
<property name="username" value="username"/>
<property name="passwd" value="passwd"/>
<property name="keyfile-path" value="/path-to-private-key"/>
<property name="applicationFolder" value="/var/www/html/"/>
<property name="sandboxRoot" value="${basedir}"/>
@apzentral
apzentral / ant-sshexec-build.xml
Last active April 11, 2023 18:00
ANT: sshexec template
<!-- Build Script for ANT -->
<project basedir="." default="" name="Build Script">
<property name="username" value="username"/>
<property name="passwd" value="passwd"/>
<property name="keyfile-path" value="/path-to-private-key"/>
<property name="applicationFolder" value="/var/www/html/"/>
<property name="sandboxRoot" value="${basedir}"/>
@apzentral
apzentral / .gitconfig
Last active April 8, 2023 00:50
gitconfig
# INCLUDES
# --------
# Local/Private config goes in the include
[include]
path = ~/.gitconfig.local
[core]
editor = /usr/bin/vim
excludesFile = ~/.gitignore
longpaths = true
@apzentral
apzentral / .vimrc
Last active December 8, 2022 21:22
This is a basic vimrc file
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
@apzentral
apzentral / git-installer.sh
Last active November 29, 2022 09:19
Git installer
#!/usr/bin/env bash
VERSION=2.37.3
curl -o git.tar.gz "https://mirrors.edge.kernel.org/pub/software/scm/git/git-$VERSION.tar.gz"
tar -zxf git.tar.gz
cd "git-$VERSION"
make prefix=/usr/local all
sudo make prefix=/usr/local install