Skip to content

Instantly share code, notes, and snippets.

View arajkumar's full-sized avatar
🏡

Arunprasad Rajkumar arajkumar

🏡
View GitHub Profile
diff --git a/integration-tests/Dockerfile b/integration-tests/Dockerfile
index fea9955..a4af049 100644
--- a/integration-tests/Dockerfile
+++ b/integration-tests/Dockerfile
@@ -5,12 +5,12 @@ ENV LANG=en_US.UTF-8 \
NOVENV=1
RUN yum install -y epel-release &&\
- yum install -y gcc which python34-pip python34-devel centos-release-openshift-origin36 &&\
+ yum install -y gcc which python36-pip python36-devel centos-release-openshift-origin36 &&\
@arajkumar
arajkumar / app.py
Created May 22, 2020 12:04
Blueprint and Flask_restful
from flask import Flask
from example_blueprint import example_blueprint
app = Flask(__name__)
app.register_blueprint(example_blueprint)
app.run(host='127.0.0.1', port=5000, debug=True)
@arajkumar
arajkumar / hello.py
Created May 19, 2020 05:46
Pydantic and Flask formdata validation
from flask import Flask
from flask import request
from werkzeug.datastructures import FileStorage
from pydantic import BaseModel
app = Flask(__name__)
class FormData(BaseModel):
file_path: str
@arajkumar
arajkumar / docker-push-proxy.sh
Created April 29, 2020 08:23
Alpine Linux on AWS for docker push
sudo apk add vim git docker docker-cli
sudo service docker start
git clone https://github.com/arajkumar/f8a-server-backbone.git
cd f8a-server-backbone
git checkout v2_changes
sudo docker build . -t ararunprasad/backbone_v2
sudo docker login
sudo docker push ararunprasad/backbone_v2
@arajkumar
arajkumar / dummy-pr.sh
Last active December 2, 2022 13:29
Create dummy PR
set -e
BRANCH="dummy-$(date +%Y.%m.%d-%s)"
git fetch origin master && git checkout -b $BRANCH FETCH_HEAD
touch ${BRANCH}
git add ${BRANCH} && git commit -m "chore: Dummy PR to retrigger CI"
git rm ${BRANCH} && git commit -m "chore: Dummy PR to retrigger CI"
git push fork $BRANCH --force
apiVersion: v2
publisher: redhat
name: hello-tasks
version: 0.0.1
type: VS Code extension
displayName: Hello Tasks
title: Hello Tasks
description: Hello Tasks
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
repository: https://github.com/arajkumar/hello
@arajkumar
arajkumar / 0.3.1-meta.yaml
Last active February 3, 2021 06:23
0.3.1-meta.yaml
apiVersion: v2
publisher: redhat
name: dependency-analytics
version: 0.3.1
type: VS Code extension
displayName: Dependency Analytics
title: Insights about your application dependencies
description: Insights about your application dependencies, Security, License compatibility and AI based guidance to choose appropriate dependencies for your application.
icon: https://www.eclipse.org/che/images/logo-eclipseche.svg
repository: https://github.com/fabric8-analytics/fabric8-analytics-vscode-extension
@arajkumar
arajkumar / CHANGELOG.md
Created September 12, 2019 08:12
0.0.13

0.0.13 (September 12th, 2019)

  • enhancement - Add python support. See #308
  • enhancement - Enable transitive(indirect) dependency report by default. See #330
  • enhancement - Show welcome message after upgrading to latest version. See #334
  • enhancement - Resolved dependencies are stored in target in workspace root. See #302
  • fixes - Significant reduction in network traffic as each API call now cover analysis of 5 dependencies
  • fixes - Dependency Analytics Report not generated if triggered via file explorer. See #299
  • fixes - Stop polling for stack-report if it takes any longer tha
@arajkumar
arajkumar / test.js
Created September 10, 2019 09:24
Windows exec fail on nodejs
const cp = require('child_process');
const testCmd = `python -c 'exec("""\nprint(2)""")'`;
cp.exec(
testCmd,
{ maxBuffer: 1024 * 1200 },
(error, _stdout, _stderr) => {
if (error) {
console.log(_stderr);
console.log(error.message);
} else {
@arajkumar
arajkumar / res.json
Created August 8, 2019 10:00
Response for stack id 68209bcc5b2d4047acd0d2481bf1c3da
{
"version": "v1",
"release": "None:None:None",
"started_at": "2019-08-08T07:01:02.319460",
"finished_at": "2019-08-08T07:01:04.645724",
"request_id": "68209bcc5b2d4047acd0d2481bf1c3da",
"result": [
{
"manifest_name": "dependencies.txt",
"user_stack_info": {