This file contains hidden or 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 bash | |
sudo rabbitmqctl eval 'supervisor2:terminate_child(rabbit_mgmt_sup_sup, rabbit_mgmt_sup), rabbit_mgmt_sup_sup:start_child().' |
This file contains hidden or 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 bash | |
echo Unused routes | |
bin/console router:debug | awk '{ print $1 }' | sort | uniq | grep -vE '(_profiler|_wdt|_configurator|Name|router)' | xargs -I {} sh -c "echo {} \`git grep \'{}\' | wc -l\`" | awk '{ if ($2 == "0") print $1 }' | |
# If Symfony 2 use below (app/console instead of bin/console | |
#app/console router:debug | awk '{ print $1 }' | sort | uniq | grep -vE '(_profiler|_wdt|_configurator|Name|router)' | xargs -I {} sh -c "echo {} \`git grep \'{}\' | wc -l\`" | awk '{ if ($2 == "0") print $1 }' | |
echo Unused controller actions | |
grep -rE 'public function.*Action\(' src/ | grep Controller | awk '{ gsub(/src\/(Platformd|Velocity42)\//, ""); print }' | awk '{ gsub(/\/Controller\//, ":"); print }' | awk '{ gsub(/Controller\.php: public function /, ":"); print }' | awk -F 'Action' '{ print $1 }' | sort | uniq | xargs -I {} sh -c "echo {} \`git grep -i {} | wc -l\`" | awk '{ if ($2 == "0") print $1 }' |
This file contains hidden or 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
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
let g:airline_powerline_fonts = 1 | |
if !exists('g:airline_symbols') | |
let g:airline_symbols = {} | |
endif | |
let g:airline_symbols.space = "\ua0" | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#tabline#show_buffers = 1 |
This file contains hidden or 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
{ | |
"openapi" : "3.0.0", | |
"info" : { | |
"description" : "Test API for retrieving information", | |
"version" : "1.0.0", | |
"title" : "Test API" | |
}, | |
"paths" : { | |
"/articles" : { | |
"get" : { |
This file contains hidden or 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
openapi: 3.0.0 | |
info: | |
description: Test API for retrieving information | |
version: "1.0.0" | |
title: Test API | |
paths: | |
/articles: | |
get: | |
tags: | |
- Articles |
This file contains hidden or 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 | |
if [ "$#" -lt 2 ] | |
then | |
echo "Scan keys in Redis matching a pattern using SCAN (safe version of KEYS)" | |
echo "Usage: $0 <host> [port] [database] [pattern] [count]" | |
exit 1 | |
fi | |
host=${1:-} | |
port=${2:-6379} |
This file contains hidden or 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/python | |
import sys, subprocess, getopt, os, json | |
def main(argv): | |
script_name = os.path.basename(argv[0]) | |
try: | |
opts, args = getopt.getopt(argv[1:], "sw:h:q:", ["help", "solid-color", "width=", "height=", "samples="]) | |
except getopt.GetoptError as err: |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Console] | |
"ColorTable00"=dword:00000000 | |
"ColorTable01"=dword:00800000 | |
"ColorTable02"=dword:00008000 | |
"ColorTable03"=dword:00808000 | |
"ColorTable04"=dword:00000080 | |
"ColorTable05"=dword:00800080 | |
"ColorTable06"=dword:00008080 |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
; Registry file that maps the solarized palette to the 16 avaliable colors | |
; in a Windows command prompt. Note, hex values in the table are RGB but byte | |
; ordering of a DWORD is BGR, e.g. "ColorTable<##>"=dword:00<B><G><R> | |
; | |
; Solarized color table from http://ethanschoonover.com/solarized. | |
; | |
; NR cmd.exe PowerShell SOLARIZED HEX DWORD | |
; -- ------- ----------- --------- ------- -------- |
This file contains hidden or 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
Show hidden characters
[ | |
{ | |
"args": { | |
"set_translate_tabs": true | |
}, | |
"command": "unexpand_tabs" | |
}, | |
{ | |
"args": { | |
"setting": "tab_size", |
NewerOlder