Tutorial and tips for GitHub Actions workflows
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
# install_certifi.py | |
# | |
# sample script to install or update a set of default Root Certificates | |
# for the ssl module. Uses the certificates provided by the certifi package: | |
# https://pypi.python.org/pypi/certifi | |
import os | |
import os.path | |
import ssl | |
import stat |
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
{ | |
"Microsoft.DataFactory/factories/pipelines": { | |
}, | |
"Microsoft.DataFactory/factories/integrationRuntimes":{ | |
"properties": { | |
"typeProperties": { | |
"ssisProperties": { | |
"catalogInfo": { | |
"catalogServerEndpoint": "=", | |
"catalogAdminUserName": "=", |
As configured in my dotfiles.
start new:
tmux
start new with session name:
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
#!/usr/bin/env python | |
# usages: python delete_the_versioned_s3_bucket.py -b <YOUR BUCKET NAME> | |
import boto3, argparse, sys | |
def delete_the_versioned_s3_bucket(): | |
# setup commond line arguments | |
parser = argparse.ArgumentParser() |
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 | |
# | |
# Initial script to create users when launching an Ubuntu server EC2 instance | |
# | |
declare -A USERKEY | |
# | |
# Create one entry for every user who needs access. Be sure to change the key to their |
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
1. Install rmate in your remote server (https://github.com/aurora/rmate) | |
sudo wget -O /usr/local/bin/rmate https://raw.github.com/aurora/rmate/master/rmate | |
sudo chmod a+x /usr/local/bin/rmate | |
2. Run "rmate <filename_to_edit>" command in your remote terminal, | |
and it will open the file locally in Sublime (make sure Sublime is already open on | |
your laptop before issuing the above command). | |
3. In order for this to work you must first do the following on your laptop: | |
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 | |
# default group size (no grouping) | |
group_size=-1 | |
# required to deal with file names containing blanks | |
OIFS="$IFS" | |
IFS=$'\n' | |
# parsing the -g command line argument |
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 <UIKit/UIKit.h> | |
@interface TestTwoController : UIViewController <UITextFieldDelegate,UIPickerViewDataSource,UIPickerViewDelegate> | |
@end |
NewerOlder