Skip to content

Instantly share code, notes, and snippets.

@levmichael3
levmichael3 / .p10k.zsh
Created June 27, 2024 10:18
.p10k.zsh black, lean and nice
# Generated by Powerlevel10k configuration wizard on 2021-04-22 at 22:48 PDT.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 40036.
# Wizard options: nerdfont-complete + powerline, large icons, classic, unicode, darkest,
# 12h time, angled separators, sharp heads, blurred tails, 2 lines, dotted, full frame,
# sparse, many icons, fluent, transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
@levmichael3
levmichael3 / community.lua
Created June 27, 2024 09:40
Community (recommended) setup for AstroVim plugins
-- AstroCommunity: import any community modules here
-- We import this file in `lazy_setup.lua` before the `plugins/` folder.
-- This guarantees that the specs are processed before any user plugins.
---@type LazySpec
return {
"AstroNvim/astrocommunity",
{ import = "astrocommunity.pack.lua" },
{ import = "astrocommunity.pack.markdown" },
{ import = "astrocommunity.pack.yaml" },
@levmichael3
levmichael3 / bufferline-nvim.lua
Created June 27, 2024 09:37
bufferline setup
return {
{ import = "astrocommunity.recipes.disable-tabline" },
{
"akinsho/bufferline.nvim",
dependencies = {
{
"AstroNvim/astrocore",
opts = {
mappings = {
n = {
@levmichael3
levmichael3 / .p10k.zsh
Created August 23, 2022 10:36
.p10k.zsh
# p10k.zsh configuration file
#
# Author: Thomas Bendler <code@thbe.org>
# Date: Sun Jan 12 17:54:00 CET 2020
#
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 551.
# For more information see https://github.com/romkatv/powerlevel10k
#
# Apply configiguration changes without restarting zsh.
# Edit ~/.p10k.zsh and type `source ~/.p10k.zsh`.
'builtin' 'local' '-a' 'p10k_config_opts'
[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
() {
emulate -L zsh -o extended_glob
@levmichael3
levmichael3 / .p10k.zsh
Created June 14, 2022 12:59
.p10k.zsh PROD
'builtin' 'local' '-a' 'p10k_config_opts'
[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
() {
emulate -L zsh
setopt no_unset extended_glob
unset -m 'POWERLEVEL9K_*'
#!/usr/bin/env groovy
pipeline {
options {
timestamps()
skipDefaultCheckout()
}
environment {
REPO_PATH = "***/***"
new-alias() {
local last_command=$(echo `history |tail -n2 |head -n1` | sed 's/[0-9]* //')
echo alias $1="'""$last_command""'" >> ~/.bash_profile
. ~/.bash_profile
}
#!/bin/bash
debug=''
debug=''
is_dead_ping()
{
# echo "is_dead_ping $1 ?"
ping -c 1 $1 > /dev/null
if [ $? -ne 0 ]; then
# echo $1 is down
return 0
sudo cat /var/chef/cache/chef-stacktrace.out
Generated at 2015-02-16 11:34:28 +0200
Chef::Exceptions::RecipeNotFound: could not find recipe default for cookbook ssh_authorized_keys
/opt/chef/embedded/apps/chef/lib/chef/cookbook_version.rb:234:in `load_recipe'
/opt/chef/embedded/apps/chef/lib/chef/run_context.rb:169:in `load_recipe'
/opt/chef/embedded/apps/chef/lib/chef/run_context.rb:138:in `block in include_recipe'
/opt/chef/embedded/apps/chef/lib/chef/run_context.rb:137:in `each'