Skip to content

Instantly share code, notes, and snippets.

View toabr's full-sized avatar
🦍
༼つಠ益ಠ༽つ ─=≡⌨)

toabr

🦍
༼つಠ益ಠ༽つ ─=≡⌨)
View GitHub Profile
@toabr
toabr / init.lua
Last active February 26, 2023 19:53
Basic Nvim Lsp Config
----------------------------------------------------------------
-- Basic Nvim Lsp Config
----------------------------------------------------------------
--[[
Requirements:
• git
• g++
• node
@toabr
toabr / #webdev_bookmarks.md
Last active January 23, 2024 13:52
Web Development Bookmark List
@toabr
toabr / css-cube-study.markdown
Created November 12, 2021 11:27
CSS Cube Study
@toabr
toabr / .gitconfig
Created October 22, 2021 08:11
Git aliases
[alias]
st = status
cm = commit -m
cam = commit -a -m
acm = !git add -A && git commit -m
co = checkout
cob = checkout -b
del = branch -D
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
save = !git add -A && git commit -m 'chore: savepoint'
@toabr
toabr / drupal8_deploy.sh
Last active August 11, 2021 10:17
Drupal 8 deployment script via git (bare repository)
#!/bin/bash
# @file
# deploy Production the Environment
SOURCE="@self"
TARGET="@live"
FORMAT='\e[1;33m#'
RESET='\033[0m' # No Color
# prompt user for commit message
@toabr
toabr / drupal-deploy-dev.sh
Last active April 12, 2018 12:16
deploy a drupal installation via drush
#!/bin/bash
# @file
# deploy a drupal site for development
SOURCE="@mysite.live"
TARGET="@mysite.dev"
### rsync files
drush rsync $SOURCE $TARGET
<?php
/**
* @file
* Drush alias file
* Place as ~/.drush/mysite.aliases.drushrc.php
* @see http://api.drush.org/api/drush/examples%21example.aliases.drushrc.php/master
*/
$aliases['mysite.dev'] = array(
'uri' => 'mysite.de',