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
| autoload -U colors && colors | |
| export VIRTUAL_ENV_DISABLE_PROMPT=1 | |
| function _is_git_repo() { | |
| git rev-parse --is-inside-work-tree &>/dev/null | |
| } | |
| function _git_branch() { | |
| git symbolic-ref --short HEAD 2>/dev/null |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
| cd ~/.password-store | |
| PASS="$(find -path ./.git -prune -o -type f -printf "%P\n" | grep -v '/\.' | grep -v '^\.' | rofi -dmenu -p 'Choice' | cut -d . -f 1)" | |
| if [[ "$1" == "otp" ]]; then | |
| pass otp show --clip "$PASS" | |
| else | |
| pass show --clip=1 "$PASS" |
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 python3 | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Script for importing KeeWeb (Keepass XML) data to pass. | |
| # This file is licensed under the GPLv2+. Please see COPYING for more information. | |
| import getopt | |
| import sys | |
| from subprocess import Popen, PIPE | |
| from xml.etree import ElementTree |
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 python | |
| from argparse import ArgumentParser | |
| from base64 import b64encode | |
| import mimetypes | |
| parser = ArgumentParser() | |
| parser.add_argument('file', type=str) | |
| parser.add_argument('-t', '--type', type=str) |
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
| CREATE TABLE calls ( | |
| customer_id INTEGER, | |
| called_at TIMESTAMP, | |
| SUCCESS_RESULT VARCHAR(2) NULL, | |
| ERROR_RESULT INTEGER NULL | |
| ); |
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
| from time import time | |
| class Timer(object): | |
| def __init__(self, label=None, logger=None, verbose=False): | |
| self.start = None | |
| self.end = None | |
| self.verbose = verbose | |
| self.label = label | |
| self.logger = logger |
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
| from itertools import product | |
| class Caveman(object): | |
| def __init__(self, name): | |
| super(Caveman, self).__init__() | |
| self.name = name | |
| self.actions = [] | |
| self.opponent_actions = [] | |
| self._sharpness = 0 |
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
| [ | |
| { | |
| "bankCode": 206, | |
| "bankName": "Türkiye Finans Katılım Bankası", | |
| "binNumber": "528293", | |
| "cardAssociation": "MASTER_CARD", | |
| "cardFamily": "Bonus", | |
| "cardType": "CREDIT_CARD", | |
| "conversationId": "123456789", | |
| "locale": "tr", |
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 python | |
| from argparse import ArgumentParser, FileType | |
| parser = ArgumentParser() | |
| parser.add_argument('string', type=str, help='String to find') | |
| parser.add_argument('file', type=FileType(), | |
| help='File to look in') | |
| parser.add_argument('--neighbourhoodsize', '-ns', type=int, default=0, | |
| help='Neighbourhood size') | |
| parser.add_argument('--nolinenumbers', action='store_true', | |
| help='Line numbers') |
NewerOlder