Skip to content

Instantly share code, notes, and snippets.

View estevanjantsk's full-sized avatar
:shipit:

Estevan Jantsk estevanjantsk

:shipit:
View GitHub Profile
%{
configs: [
%{
name: "default",
files: %{
included: ~w{config lib test}
},
strict: true,
color: true,
checks: [
[
verbose: false,
private: false,
skip: false,
router: "",
exit: "false",
format: "txt",
out: "",
threshold: "high",
ignore: ["Config.CSP", "Config.HTTPS"],
`version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
container_name: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
@estevanjantsk
estevanjantsk / find-and-kill-processes.md
Created May 18, 2022 06:56 — forked from indianajone/find-and-kill-processes.md
Find (and kill) all processes listening on a port

To search for processes that listen on a specific port use the lsof or “List Open Files”. The -n argument makes the command run faster by preventing it from doing a ip to hostname conversion. Use grep to show only lines containing the word LISTEN.

lsof -n | grep LISTEN

To filter for a specific port use the following:

lsof -n -i4TCP:[PORT] | grep LISTEN

@estevanjantsk
estevanjantsk / update-golang.md
Created December 21, 2020 13:16 — forked from nikhita/update-golang.md
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@estevanjantsk
estevanjantsk / es6-element-ready.js
Created November 12, 2020 08:26 — forked from jwilson8767/es6-element-ready.js
Wait for an element to exist. ES6, Promise, MutationObserver
// MIT Licensed
// Author: jwilson8767
/**
* Waits for an element satisfying selector to exist, then resolves promise with the element.
* Useful for resolving race conditions.
*
* @param selector
* @returns {Promise}
*/
@estevanjantsk
estevanjantsk / insta_login_check.js
Created November 6, 2020 10:50 — forked from GarryOne/insta_login_check.js
Puppeteer Instagram Credentials/Login Verification
// start the node server by doing: `node insta_login_check.js`
const puppeteer = require('puppeteer');
const delay = require('delay');
const user = {
username: 'user@test.com',
password: 'passw0rd',
};
@estevanjantsk
estevanjantsk / upload.js
Created August 1, 2020 15:19 — forked from richwednesday/upload.js
Image Upload to S3 From Node.js
const http = require("http");
const https = require("https");
const AWS = require('aws-sdk');
const formidable = require("formidable");
const uuid = require("uuid");
let server = http.createServer(launch);
let s3 = new AWS.S3({
// s3 credentials
});
@estevanjantsk
estevanjantsk / node_cheerio_scraping.js
Created May 13, 2020 18:03 — forked from bradtraversy/node_cheerio_scraping.js
Simple example to scrape some posts and put into a CSV file using Node & Cheerio
const request = require('request');
const cheerio = require('cheerio');
const fs = require('fs');
const writeStream = fs.createWriteStream('post.csv');
// Write Headers
writeStream.write(`Title,Link,Date \n`);
request('http://codedemos.com/sampleblog', (error, response, html) => {
if (!error && response.statusCode == 200) {
@estevanjantsk
estevanjantsk / config.js
Created April 9, 2020 11:20 — forked from codediodeio/config.js
Snippets from the Firestore Data Modeling Course
import * as firebase from 'firebase/app';
import 'firebase/firestore';
var firebaseConfig = {
// your firebase credentials
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);