This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
lvim is the global options object | |
Linters should be | |
filled in as strings with either | |
a global executable or a path to | |
an executable | |
]] | |
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import boto3 | |
from pprint import pprint | |
import os | |
# load the environment variables | |
AWS_ACCESS_KEY_ID = "ACCESSKEY" | |
AWS_SECRET_ACCESS_KEY = "SECRETKEY" | |
AWS_REGION = "REGION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import boto3 | |
s3_client = boto3.client('s3') | |
s3 = boto3.resource('s3') | |
buckets_response = s3_client.list_buckets() | |
KEY = 'KEY_NAME' | |
for bucket_response in buckets_response['Buckets']: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set so=999 | |
imap jj <Esc> | |
set number | |
set relativenumber | |
set nohlsearch | |
" FZF | |
set rtp+=/usr/local/opt/fzf | |
" Clipboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
# from jira import JIRA | |
from pprint import pprint | |
import secrets | |
import subprocess | |
import json | |
import os | |
import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
from ns1 import NS1 | |
import pprint | |
import subprocess | |
import keyboard | |
NS1_API_KEY = "<INSERT API KEY>" | |
ZONE_NAME = '<INSERT ZONE NAME>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fbr() { | |
git fetch | |
local branches branch | |
branches=$(git branch -a) && | |
branch=$(echo "$branches" | fzf +s +m -e) && | |
git checkout $(echo "$branch" | sed "s:.* remotes/origin/::" | sed "s:.* ::") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CHANGED="`git diff --name-only`" | |
for f in $CHANGED; do | |
echo -n "$f... " | |
DIFF="`git diff -U0 $f | grep -E '^[+-]' | grep -v -E '^(---|\+\+\+) [ab]/' | grep -v -e '* @copyright Copyright (c)' -e '* @copyright Copyright (c)'`" | |
if [ "$DIFF" == "" ]; then | |
git add "$f" | |
echo "copyright." | |
else | |
echo "other." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Use this script to copy shared (libs) files to Apache/Lighttpd chrooted | |
# jail server. | |
# Set CHROOT directory name | |
BASE="/webroot" | |
if [ $# -eq 0 ]; then | |
echo "Syntax : $0 /path/to/executable" | |
echo "Example: $0 /usr/bin/php5-cgi" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'abstract.php'; | |
class Mage_Shell_Customer extends Mage_Shell_Abstract | |
{ | |
/** | |
* Run script | |
* |
NewerOlder