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
command to find recursively files {can be modified for folders too, change -type f}, and renamed them by specfying regex pattern | |
find . -type f -maxdepth [depth] -name "[filepattern]" | while read FNAME; do mv "$FNAME" "${FNAME//search/replace}"; done | |
example: | |
find . -type f -maxdepth 1 -name "domain*.php" | while read FNAME; do mv "$FNAME" "${FNAME//domain/lead}"; done | |
before: after: |
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
<template> | |
<div> | |
<b-container> | |
<b-row align-h="center"> | |
<div v-if="!signedIn"> | |
<b-button variant="success" @click="signIn">Sign in with Cognito</b-button> | |
</div> | |
<div v-if="signedIn"> | |
<h4>Welcome, {{ username }}!</h4> | |
<b-button variant="danger" @click="signOut">Sign out</b-button> |
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 | |
# Shell script to backup MySql database | |
# To backup Nysql databases file to /backup dir and later pick up by your | |
# script. You can skip few databases from backup too. | |
# For more info please see (Installation info): | |
# http://www.cyberciti.biz/nixcraft/vivek/blogger/2005/01/mysql-backup-script.html | |
# Last updated: Aug - 2005 | |
# -------------------------------------------------------------------- | |
# This is a free shell script under GNU GPL version 2.0 or above | |
# Copyright (C) 2004, 2005 nixCraft project |
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
Show hidden characters
{ | |
// The command to execute for the terminal, leave blank for the OS default | |
// On OS X the terminal can be set to iTerm.sh to execute iTerm | |
"terminal": "C:\\Windows\\System32\\cmd.exe", | |
// A list of default parameters to pass to the terminal, this can be | |
// overridden by passing the "parameters" key with a list value to the args | |
// dict when calling the "open_terminal" or "open_terminal_project_folder" | |
// commands | |
"parameters": ["/c sh --login -i"] |
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
<template> | |
<div> | |
<div | |
v-if="loadedFilters && Object.keys(loadedFilters).length > 0 && filtersType" | |
class="active-filters"> | |
<h4 class="applied-filters-text">{{ $tc('filters.applied_filters') }}:</h4> | |
<div | |
v-for="(loadedFilter, key) in loadedFilters" | |
:key="key" | |
class="filter-btn-group btn-group mr-2" |
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
[[snippets]] | |
description = "ping" | |
command = "ping 8.8.8.8" | |
tag = ["network", "google"] | |
output = "" | |
[[snippets]] | |
description = "Connect to mysql via mycli" | |
command = "mycli mysql://root@localhost:3306/ -p root" | |
tag = ["mycli", "mysql", "tool"] |
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
orderedStatuses() { | |
return this.statuses.all.reduce((status, acc) => { | |
acc.push("...") | |
return acc | |
}, []) | |
}, |
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
agency-structure-active.svg | |
biling-finance-active.svg | |
candidates-active.svg | |
clients-locations-active.svg | |
dashboard-active.svg | |
documents-compliance-active.svg | |
files | |
internal-users-active.svg | |
job-schedule-active.svg | |
rate-edit.svg |
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
import Navigo from "navigo" | |
const router = new Navigo(null, true, "#!") | |
import Page1 from "./pages/page-one" | |
import Page2 from "./pages/page-two" | |
router | |
.on("/mixins", function() { | |
Page1.run() | |
}) |
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
get sub-agencies | jq '[.data[] | paths(strings) | add] | unique[]' |
NewerOlder