Skip to content

Instantly share code, notes, and snippets.

View vcgato29's full-sized avatar

GitIan-Champion vcgato29

  • Spaceforce LLC
View GitHub Profile
@vcgato29
vcgato29 / dtcc.py
Created October 23, 2019 16:58 — forked from akshaykarnawat/dtcc.py
Getting SDR data from DTCC public repository
# the structure of the code needs to change and the script needs to be parameterized with func...
# but gets the job done for the data needed
from urllib.parse import urljoin
from bs4 import BeautifulSoup
from datetime import datetime
import pandas as pd
import requests
import zipfile
// working.cpp by Bill Weinman <http://bw.org/>
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,m,check[27]={0},res=0;
char c,a[150][150];
cin>>n>>m>>c;
for(int i=0;i<n;i++)
for(int j=0;j<m;j++)
@vcgato29
vcgato29 / Ssh2Converter.java
Created January 16, 2019 10:42 — forked from kaushikthedeveloper/Ssh2Converter.java
Convert OpenSSH public key to RFC 4716 (SSH2) format
/**
* Convert OpenSSH to RFC 4716 (SSH2) format [https://tools.ietf.org/html/rfc4716]
*
* @author KaushikTheDeveloper
* Created on Mar 08, 2018
*/
public class Ssh2Converter {
private static final int MAX_LINE_LENGTH = 70;
private static final String BEGIN_MARKER = "---- BEGIN SSH2 PUBLIC KEY ----\n";
@vcgato29
vcgato29 / haproxy.cfg
Created July 11, 2018 21:44 — forked from gplv2/haproxy.cfg
haproxy check: postgresql is master
# haproxy postgresql master check
#
# haproxy listen: 5432
# pg, instance #1 listen: 5432 (master node)
# pg, instance #2 listen: 5432 (replica node)
# external failover, promoting replica to master in case of failure
# passwordless auth for user web
# template1 database is accessible by user web
#
# haproxy will pass connection to postgresql master node:
@vcgato29
vcgato29 / TM.md
Created July 11, 2018 21:41 — forked from antirez/TM.md
TripMode TCP out of order bytes reproducing steps

Generate a payload.txt file using this Ruby script:

(1..1000000).each{|i| print "#{i} "}

The file will trivially contain "1 2 3 4 5 ..." so that out of order violations are trivial to spot.

  1. In one terminal open netcat in listen mode: nc -l 6379
  2. In another terminal execute netcat like this: cat payload.txt | nc 127.0.0.1 6379
  3. In the first terminal you should see like 20796 20797 20798 20799 20800... instead of 1 2 3 ...
  4. Does not happen always, so kill the netcat instances, and GOTO 10 to retry until it happens.
@vcgato29
vcgato29 / resp3.md
Created July 11, 2018 21:40 — forked from antirez/resp3.md
RESP3 protocol draft

RESP3 specification

Versions history:

  • 1.0, 2 May 2018, Initial draft to get community feedbacks.

Background

The Redis protocol has served us well in the past years, showing that, if carefully designed, a simple human readable protocol is not the bottleneck in the client server communication, and that the simplicity of the design is a major advantage in creating a healthy client libraries ecosystem.

Yet the Redis experience has shown that after about six years from its introduction (when it replaced the initial Redis protocol), the current RESP protocol could be improved, especially in order to make client implementations simpler and to support new features.

@vcgato29
vcgato29 / SAP_CLA
Last active May 13, 2018 23:59 — forked from CLAassistant/SAP_CLA
SAP Individual Contributor License Agreement
###SAP Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by SAP SE or its affiliates (“SAP”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SAP in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@sap.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to SAP a non-exclusive, perpetual, irrevocable, worldwid
ROAS(AdoptScript) {
AdoptScript(trinket) {
Driver = USBtinyISP ;
DriverUnder = libusb-/*Your Computer's Operating System*/ ;
CodingLang = .ino or arduino ;
}
AdoptDone();
}