- VSCode version 1.23.1
- Create launch.json for python attach
- Make sure ptvsd version is 3.0.0
pip install ptvsd==3.0.0
{
"name": "Python: Attach",
"type": "python",
import abc | |
import importlib | |
class Plugins(abc.ABCMeta): | |
plugins = dict() | |
def __new__(metaclass, name, bases, namespace): | |
cls = abc.ABCMeta.__new__( | |
metaclass, name, bases, namespace) | |
if isinstance(cls.name, str): | |
metaclass.plugins[cls.name] = cls |
#! /bin/bash | |
# An overly obvious reference for most commonly requested bash timestamps | |
# Now all you Mac fags can stop pestering me. | |
cat << EOD | |
Format/result | Command | Output | |
--------------------------------+----------------------------+------------------------------ | |
YYYY-MM-DD_hh:mm:ss | date +%F_%T | $(date +%F_%T) | |
YYYYMMDD_hhmmss | date +%Y%m%d_%H%M%S | $(date +%Y%m%d_%H%M%S) |
import re | |
import boto3 | |
import csv | |
from botocore.exceptions import ClientError | |
ec2 = boto3.client('ec2') | |
def get_snapshots(): | |
return ec2.describe_snapshots(OwnerIds=['self'])['Snapshots'] |
#!/usr/bin/env bash | |
set -e | |
KEY="contents_of_public_key_here" | |
LABEL=some_custom_label | |
AUTH=username:password | |
curl -X POST --user $AUTH \ | |
https://api.bitbucket.org/1.0/repositories/username/repo_name/deploy-keys \ |
zend_extension=xdebug.so | |
;xdebug.idekey = "PHPSTORM" | |
;xdebug.default_enable = 1 | |
;xdebug.remote_enable = 1 | |
;xdebug.remote_autostart = 0 | |
;xdebug.remote_port = 9000 | |
;xdebug.remote_handler=dbgp | |
;xdebug.remote_connect_back = 1 | |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: phantomjs | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: PhantomJS headless browser | |
### END INIT INFO |
# (C) 2016, Deepak Kothandan | |
# This file is part of Ansible | |
# | |
# Ansible is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# Ansible is distributed in the hope that it will be useful, |
INSERT INTO `core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ('websites', '0', 'dev/debug/template_hints', '1'); | |
Disable-BingSearch | |
Set-WindowsExplorerOptions -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder | |
cinst googlechrome | |
cinst flashplayerplugin | |
cinst jre8 | |
cinst adobereader | |
cinst winrar | |
cinst skype | |
cinst cyberduck | |
cinst openvpn |