Skip to content

Instantly share code, notes, and snippets.

View vikas027's full-sized avatar
🏠
Working from home

Vikas Kumar vikas027

🏠
Working from home
  • Sydney, Australia
View GitHub Profile
@vikas027
vikas027 / curl2httpie
Created July 24, 2026 05:27
curl2httpie: Convert curl commands to httpie — vibecoded locally on MacBook Pro M4 with oMLX + Qwen3.6-27B-4bit
#!/usr/bin/env python3
"""Convert curl commands to httpie commands.
This script was vibecoded on a MacBook Pro M4 using oMLX — 100% local,
zero internet, no cloud APIs. Powered by Qwen3.6-27B-4bit running entirely
offline. Proof that local LLMs can ship production-quality tools.
Disclaimer: This script is provided as-is with no security audit or warranty.
Use at your own risk. The generated httpie commands are syntactically equivalent
to the input curl commands, but behavioral edge cases may exist. Review output

Keybase proof

I hereby claim:

  • I am vikas027 on github.
  • I am vikas_27 (https://keybase.io/vikas_27) on keybase.
  • I have a public key ASChtPvJ4rQZ2aywI3K-iY2xSJe7YZ4LuFPYSS9TDgvH_Qo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am vikas027 on github.
  • I am vikas027 (https://keybase.io/vikas027) on keybase.
  • I have a public key ASAsYea-kQOkSRTZTaFb8AcGq5dnsrOSzmjsZ96hkERQKwo

To claim this, I am signing this object:

@vikas027
vikas027 / top_repeated_words.py
Created March 4, 2020 19:23
Find Most Repeated Words
#!/usr/bin/env python3
'''
Find N most repeated words
'''
import sys
DATA = "one two three one two four one two three four five one three three three"
ARR = DATA.split(' ')
@vikas027
vikas027 / ceph.yaml
Created August 30, 2019 09:15
Kubernetes - Dynamic PVC
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: rbd-provisioner
namespace: default
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
Sat Apr 28 06:44:09 UTC 2018
@vikas027
vikas027 / openssl_s_client_log.log
Last active September 25, 2017 11:58
Openssl s_client log for nginx forum
#### SHORT LOG
$ openssl 2>&1 s_client -quiet -connect server.test.com:443 -servername server.test.com -tls1 -key /root/ca/intermediate/private/client.key.pem -cert /root/ca/intermediate/certs/client.cert.pem -CAfile /root/certs/ca.cert.pem
depth=2 C = GB, ST = England, L = Melbourne, O = Alice Ltd, OU = IT Services, CN = rootca.test.com, emailAddress = root@rootca.test.com
verify return:1
depth=1 C = GB, ST = England, O = Alice Ltd, OU = Shared Services, CN = intermediateca.test.com, emailAddress = root@intermediateca.test.com
verify return:1
depth=0 C = US, ST = California, L = Mountain View, O = Alice Ltd, OU = Alice Ltd Web Services, CN = server.test.com, emailAddress = root@server.test.com
verify return:1
HTTP/1.1 400 Bad Request
@vikas027
vikas027 / linux_mint_wifi_et3290_fix.txt
Created August 13, 2017 13:41
Linux Mint 18 WiFi rt3290 fix
### Fix for linux-firmware
I had some warnings/errors while installing linux-firmware
# dpkg -i linux-firmware_1.158_all.deb
update-initramfs: Generating /boot/initrd.img-4.8.0-53-generic
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_01.bin for module i915
Warning: No support for locale: en_AU.utf8
#
To fix this
@vikas027
vikas027 / nginx_modsecurity.log
Created June 19, 2017 16:01
Nginx compiled with ModSecurity (with JSON Support)
## OS Ubuntu 17.10
## Pre-Requisites
# apt-get install -y git build-essential libpcre3 libpcre3-dev libssl-dev libtool autoconf apache2-dev libxml2-dev libcurl4-openssl-dev automake pkgconf dialog apt-utils
# apt-get install -y g++ flex bison curl doxygen libyajl-dev libgeoip-dev libtool dh-autoreconf libcurl4-gnutls-dev libxml2 libpcre++-dev libxml2-dev libyajl2 yajl-tools
# apt-get install -y libgd2-xpm-dev libgeoip-dev libpam-dev libpcre3 libpcre3-dev google-perftools libgoogle-perftools-dev libatomic-ops-dev libperl-dev
# export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig
## ModSecurity
# cd /usr/src
@vikas027
vikas027 / Terraform_Issue_12108_second run
Created February 20, 2017 12:17
Terraform_Issue_12108_second run
This file has been truncated, but you can view the full file.
2017/02/20 23:06:50 [INFO] Terraform version: 0.8.7
2017/02/20 23:06:50 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.8.7/bin/terraform", "apply", "-target=module.docker_repos"}
2017/02/20 23:06:50 [DEBUG] Detected home directory from env var: /Users/vikas
2017/02/20 23:06:50 [DEBUG] Detected home directory from env var: /Users/vikas
2017/02/20 23:06:50 [DEBUG] Attempting to open CLI config file: /Users/vikas/.terraformrc
2017/02/20 23:06:50 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/02/20 23:06:50 [DEBUG] Detected home directory from env var: /Users/vikas
2017/02/20 23:06:50 [DEBUG] vertex "module.docker_repos": static expanding
2017/02/20 23:06:50 [DEBUG] vertex "module.vpc": static expanding
phNodeConfigResource