Skip to content

Instantly share code, notes, and snippets.

View petersonfs's full-sized avatar

Peterson F. dos Santos petersonfs

View GitHub Profile
@petersonfs
petersonfs / main.workflow
Created September 9, 2021 22:18 — forked from supersaiyane/main.workflow
Github Actions with Amazon EKS CI/CD
workflow "Demo workflow" {
on = "push"
resolves = ["SNS Notification"]
}
action "Build Image" {
uses = "actions/docker/cli@c08a5fc9e0286844156fefff2c141072048141f6"
runs = ["/bin/sh", "-c", "docker build -t $IMAGE_URI ."]
env = {
IMAGE_URI = "xxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/github-action-demo:latest"

Keybase proof

I hereby claim:

  • I am petersonfs on github.
  • I am petersonfs (https://keybase.io/petersonfs) on keybase.
  • I have a public key whose fingerprint is 06BF FC55 DC93 08F3 9819 51B6 BADB 01A0 F04D 7007

To claim this, I am signing this object:

@petersonfs
petersonfs / osx-10.10-setup.md
Created September 30, 2015 10:44 — forked from kevinelliott/osx-10.10-setup.md
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@petersonfs
petersonfs / loopTableFields.cs
Created May 27, 2015 01:50
Loop table fields
static void loopTableFields(Args _args)
{
SysDictTable dictTable = new SysDictTable(tableNum(PurchLine));
SysDictField dictField;
TreeNode treeNode;
FieldId fieldId = dictTable.fieldNext(0);
while (fieldId)
{
dictField = dictTable.fieldObject(fieldId);
@petersonfs
petersonfs / recalcInventSum.cs
Last active August 29, 2015 14:21
Recalculating invent summary in Dynamics AX
static void recalcInventSum(Args _args)
{
InventSumRecalcItem inventSumRecalcItem;
InventTable inventTable;
while select inventTable
where (inventTable.ItemType == ItemType::Item)
|| inventTable.ItemType == ItemType::BOM)
{
inventSumRecalcItem = new InventSumRecalcItem(inventTable.ItemId, true, CheckFix::Fix);
@petersonfs
petersonfs / ledgerBalanceTrialDebug.cs
Created May 15, 2015 17:40
Debugging SSRS data providers
static void ledgerBalanceTrialDebug(Args _args)
{
LedgerTrialBalanceDP_BR ledgerTrialBalanceDP;
LedgerTrialBalanceContract_BR ledgerTrialBalanceContract;
;
ledgerTrialBalanceContract = new LedgerTrialBalanceContract_BR();
ledgerTrialBalanceContract.parmFromDate(mkdate(01, 01, 2011));
ledgerTrialBalanceContract.parmToDate(mkdate(31, 12, 2011));
ledgerTrialBalanceContract.parmPrimaryDimensionFocus("Conta");
@petersonfs
petersonfs / preRunModifyContract.cs
Last active August 29, 2015 14:21
Send SSRS report by email
protected void preRunModifyContract()
{
SrsReportDataContract contract;
SrsReportEMailDataContract emailContract;
SRSPrintDestinationSettings printSettings;
emailContract = new SrsReportEMailDataContract();
emailContract.parmAttachmentFileFormat(SRSReportFileFormat::Excel);
emailContract.parmTo(this.getEmail());
emailContract.parmCc(this.getCC());
@petersonfs
petersonfs / parserLit.cs
Created November 8, 2013 13:12
parserLit.cs
WebClient c = new WebClient();
var data = c.DownloadString("https://www.mercadobitcoin.com.br/api/trades_litecoin/");
var jaison = JsonConvert.DeserializeObject<List<Trades>>(data);
textBox1.Text = jaison.First().amount.ToString();
textBox2.Text = jaison.First().date.ToString();
textBox3.Text = jaison.First().price.ToString();
textBox4.Text = jaison.First().tid.ToString();
# Nginx+Unicorn best-practices congifuration guide. Now with SPDY!
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies.
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module
#
# Deployment structure
#
# SERVER:
# /etc/init.d/nginx (1. nginx)
# /home/app/public_html/app_production/current (Capistrano directory)
#
@petersonfs
petersonfs / whatahell.xpp
Created July 12, 2013 14:36
Whatahell?????????
void run()
{
//Void method with a variable called ret
str ret;
Args args;
;
if (this.validate())
{
ttsbegin;