Skip to content

Instantly share code, notes, and snippets.

View devoto13's full-sized avatar

Yaroslav Admin devoto13

View GitHub Profile
@devoto13
devoto13 / index.es.js
Last active May 26, 2018 15:43
Example of `index.es.js` from `@fortawesome/pro-regular-svg-icons` using re-exports.
/*!
* Font Awesome Pro 5.1.0-11 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Commercial License)
*/
import { faAddressBook } from './faAddressBook';
import { faAddressCard } from './faAddressCard';
import { faAdjust } from './faAdjust';
import { faAlarmClock } from './faAlarmClock';
import { faAlignCenter } from './faAlignCenter';
import { faAlignJustify } from './faAlignJustify';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
$ make test
make lint && \
(. .venv/bin/activate; DEBUG= PYTHONPATH=`pwd` nosetests --with-coverage --logging-level=WARNING --nocapture --no-skip --exe --cover-erase --cover-tests --cover-inclusive --cover-package=localstack --with-xunit --exclude='.venv.*' --ignore-files='lambda_python3.py' .)
(. .venv/bin/activate; flake8 --inline-quotes=single --show-source --max-line-length=120 --ignore=E128,W504 --exclude=node_modules,.venv*,dist .)
Starting mock SES (http port 4579)...
Starting mock CloudWatch Logs (http port 4586)...
Starting mock Redshift (http port 4577)...
Starting mock CloudFormation (http port 4581)...
Starting mock Firehose service (http port 4573)...
* Serving Flask app "firehose_api" (lazy loading)
@devoto13
devoto13 / cleanup.js
Created September 14, 2020 13:48
Cleanup all job artifacts from GitLab
const fetch = require("node-fetch");
const domain = "YOUR-GITLAB-DOMAIN";
const token = "YOUR-TOKEN";
const forEachPage = async (url, callback) => {
const res = await fetch(url, { headers: { "PRIVATE-TOKEN": token } });
const data = await res.json();
const total = res.headers.get("x-total");
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT='${ret_status} %{$fg[cyan]%}%~%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@devoto13
devoto13 / .zshrc
Last active October 6, 2025 17:04
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
[
{
"key": "alt+cmd+left",
"command": "workbench.action.navigateBack"
},
{
"key": "ctrl+-",
"command": "-workbench.action.navigateBack"
},
{
[core]
excludesfile = ~/.gitignore_global
ignorecase = false
commentchar = ";"
[push]
default = current
followTags = true
[rebase]
autostash = true
autosquash = true