Skip to content

Instantly share code, notes, and snippets.

View comdotlinux's full-sized avatar
😉
Web Components, Quarkus and GraalVM

Guruprasad Kulkarni comdotlinux

😉
Web Components, Quarkus and GraalVM
View GitHub Profile
@comdotlinux
comdotlinux / download_linux_journal.py
Last active December 30, 2017 22:38
A Simple Python3 script to download all Linux Journal Archives! -- Only available till 31Dec :( -- (needs https://wiki.python.org/moin/beautiful%20soup)
#!/usr/bin/python3
import requests
import bs4
import re
import os
full_html_response = requests.get('https://secure2.linuxjournal.com/pdf/dljdownload.php')
full_html_response.raise_for_status()
@comdotlinux
comdotlinux / BuildMavenProjects.py
Last active August 30, 2019 10:36
A python 2 script to build maven projects using python and in provided order in config.
#! python2
import os, shlex, ConfigParser, logging, sys, subprocess, time, re, pprint
import os.path as path
import xml.etree.ElementTree as ET
from datetime import datetime
base_dir = "C:\\"
software_dir = "software"
jdk_dir_name = "jdk1.7"
@comdotlinux
comdotlinux / Application.kt
Created March 25, 2020 11:09 — forked from seratch/Application.kt
Building Slack apps with Ktor framework
package com.example
import com.slack.api.bolt.App
import com.slack.api.bolt.AppConfig
import com.slack.api.bolt.request.Request
import com.slack.api.bolt.request.RequestHeaders
import com.slack.api.bolt.response.Response
import com.slack.api.bolt.util.QueryStringParser
import com.slack.api.bolt.util.SlackRequestParser
import com.slack.api.model.block.Blocks.asBlocks
@comdotlinux
comdotlinux / system-tests.sh
Created September 15, 2020 07:08
System tests for a command line tool example. Copied Verbatim from : http://eradman.com/entrproject/
#!/bin/sh
#
# Copyright (c) 2012 Eric Radman <ericshane@eradman.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF

Keybase proof

I hereby claim:

  • I am comdotlinux on github.
  • I am comdotlinux (https://keybase.io/comdotlinux) on keybase.
  • I have a public key whose fingerprint is B8BB 8623 846B FF6B 50D7 9F7C EABE 254B 0C8D 8766

To claim this, I am signing this object:

@comdotlinux
comdotlinux / README.md
Last active February 28, 2021 22:13
Create Github Secrets when you are not the owner and dont have access from the UI

Create Github Secrets

  • Needs python >= 3.6 (uses f strings)
  1. Create a python virtual environment
  2. python3 -m venv .venv
  3. source .venv/bin/activate
  4. Create the two files, requirements.txt and github_create_secret.py in this directory (being in this directory is not necessary but eases documentation)
  5. Install required dependencies
  6. pip install -U pip
@comdotlinux
comdotlinux / index.html
Created March 13, 2021 16:09
Typing Effect Using Only CSS
<!DOCTYPE html>
<html>
<head>
<title>Typing Effect</title>
</head>
<!--https://codewithbishal.com/example/how-to-create-animated-typing-effect-using-css-->
<body>
<ul class="dynamic-text">
<li><span>Front End Dev</span></li>
<li><span>Back End Dev</span></li>
@comdotlinux
comdotlinux / check.sh
Last active April 22, 2022 08:09
Munich Drivers Licence Appointment availability Checker
#!/bin/bash
function getAppointmentInfoJson() {
PHP_SESSION_ID=$(curl -sSL -D - 'https://terminvereinbarung.muenchen.de/fs/termin/index.php?loc=FS' -o /dev/null | awk -F: '/Set-Cookie/{print $2}' | awk -F= '{print $2}' | awk -F\; '{print $1}')
curl -sSL 'https://terminvereinbarung.muenchen.de/fs/termin/index.php?loc=FS' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
-H 'Accept-Language: en-US,en;q=0.9,hi;q=0.8,mr;q=0.7,de;q=0.6' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/x-www-form-urlencoded' \
@comdotlinux
comdotlinux / github.yaml
Last active February 3, 2023 13:09
My (hopefully) Collection of afx (https://github.com/b4b4r07/afx) config for the tools I like to use
github:
- name: b4b4r07/enhancd
description: A next-generation cd command with your interactive filter
owner: b4b4r07
repo: enhancd
plugin:
env:
ENHANCD_FILTER: fzf --height 25% --reverse --ansi:fzy
sources:
- init.sh
@comdotlinux
comdotlinux / .tmux.conf
Last active October 10, 2022 00:15
tmux config file
# for ubuntu
#source /usr/share/powerline/bindings/tmux/powerline.conf
#for fedora
source "/usr/share/tmux/powerline.conf"
## Common, I hope
source /usr/share/byobu/keybindings/tmux-screen-keys.conf
set-option -g default-terminal "screen-256color"