To remove duplicate items in fzf prompt, add the following lines into ~/.zshrc:
setopt EXTENDED_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
#!/bin/sh | |
# | |
# @link https://gist.github.com/lavoiesl/11022667 | |
mysqldump $@ \ | |
--set-gtid-purged=OFF \ | |
--skip-comments \ | |
--hex-blob \ | |
--create-options \ | |
--disable-keys \ |
# install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/ | |
# install nano from homebrew | |
brew install nano | |
# update your nanorc file with the contents of the nanorc file below | |
nano ~/.nanorc | |
# close and re-open your terminal and you'll have syntax highlighting |
function logColor(color, args) { | |
console.log(`%c ${args.join(' ')}`, `color: ${color}`); | |
} | |
const log = { | |
aliceblue: (...args) => { logColor('aliceblue', args)}, | |
antiquewhite: (...args) => { logColor('antiquewhite', args)}, | |
aqua: (...args) => { logColor('aqua', args)}, | |
aquamarine: (...args) => { logColor('aquamarine', args)}, | |
azure: (...args) => { logColor('azure', args)}, |
#!/bin/bash | |
# This is an improved script of pngfix.sh (https://gist.github.com/404909) | |
# which can also crush/shrink/optimize/losslessly compress JPEGs and GIFs. | |
# It is recommended you backup your image files before executing this script. | |
# Operation will be skipped if output file is bigger in size. | |
# | |
# use chmod +x crushimg.sh to make it executable and then ./crushimg.sh to run, or | |
# bash ./crushimg.sh to run it directly | |
# | |
# ./crushimg.sh [FILE] - (default to current directory) |
#!/bin/bash | |
# Improved as per feedback from @pascal - https://gist.github.com/julianxhokaxhiu/c0a8e813eabf9d6d9873#gistcomment-3086462 | |
find . -type f -iname "*.png" -exec optipng -nb -nc {} \; | |
find . -type f -iname "*.png" -exec advpng -z4 {} \; | |
find . -type f -iname "*.png" -exec pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time -ow {} \; | |
find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) -exec jpegoptim -f --strip-all {} \; |
http://0-www.sciencedirect.com.www.consuls.org/science?_ob=QuickSearchURL&_method=submitForm&_acct=C000050221&md5=0c4b6db32507e4a332b2aa6dd47a65f4&qs_all={searchTerms}&qs_author=&qs_title=&qs_vol=&qs_issue=&qs_pages=&x=34&y=15 | |
http://0-dictionary.oed.com.library.utulsa.edu/cgi/findword?query_type=word&queryword={searchTerms} | |
http://100.daum.net/search/search.do?query={searchTerms} | |
http://1000corks.com/search?st={searchTerms}&src=myc | |
http://11870.com/konsulto/{searchTerms} | |
http://1000memories.com/search?q={searchTerms} | |
http://130.219.35.129/search?q={searchTerms}&btnG=Google+Search&entqr=0&output=xml_no_dtd&sort=date%3AD%3AL%3Ad1&client=default_frontend&ud=1&oe=UTF-8&ie=UTF-8&proxystylesheet=default_frontend&site=default_collection | |
http://1337x.org/search/{searchTerms}/0/ | |
http://11888.ote.gr/web/guest/white-pages/search?who={searchTerms}&where= | |
http://140.111.34.46/cgi-bin/newDict/dict.sh?idx=dict.idx&cond={searchTerms}&pieceLen=50&fld=1&cat=&imgFont=1 |
0815.ru | |
0wnd.net | |
0wnd.org | |
10minutemail.co.za | |
10minutemail.com | |
123-m.com | |
1fsdfdsfsdf.tk | |
1pad.de | |
20minutemail.com | |
21cn.com |
import {DiskService, SnapshotService} from "yandex-cloud/api/compute/v1"; | |
const FOLDER_ID = process.env.FOLDER_ID; | |
export async function handler(event, context) { | |
const snapshotService = new SnapshotService(); | |
const diskService = new DiskService(); | |
const diskList = await diskService.list({ | |
folderId: FOLDER_ID, |
// Конфгурируем Yandex.Cloud provider | |
provider "yandex" { | |
zone = "ru-central1-a" | |
} | |
// Объявляем переменную с названием Организации на гитхабе. | |
// К сожалению github provider не создает ресурсы `github_actions_secret` в личных репах | |
// https://github.com/terraform-providers/terraform-provider-github/issues/422 | |
// К счастью базовая функциональность организаций теперь бесплатна. | |
variable "github_organization" { |