Skip to content

Instantly share code, notes, and snippets.

View thapakazi's full-sized avatar
💭
🐧 🗡️ 💻

Milan Thapa thapakazi

💭
🐧 🗡️ 💻
View GitHub Profile
@BretFisher
BretFisher / present.zsh-theme
Last active December 27, 2024 18:01
oh-my-zsh theme for presentations (hides prompt features based on path)
# problem: when presenting, I want to obscure
# my prompt to act like it's at root of file system
# and be very basic with no git info, etc.
# solution: this theme lets you set a ENV to the path
# of your presentation, which will help remove unneeded prompt
# features while in that path
# oh-my-zsh theme for presenting demos
# based off the default rubbyrussell theme
@so0k
so0k / kubectl.md
Last active February 4, 2025 17:16
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@arsham
arsham / cgroups.sh
Last active January 18, 2017 11:13
Wroking with cgroups
# Taken from here: https://wiki.archlinux.org/index.php/cgroups
# You need: libcgroup and cgmanager apps.
# Then start the daemon:
sudo systemctl start cgmanager.service
# Creating the group
sudo cgcreate -a arsham:users -t arsham:users -g memory,cpu:GROUP_NAME
@Arinerron
Arinerron / root.sh
Last active June 10, 2024 17:35
"Root" via dirtyc0w privilege escalation exploit (automation script) / Android (32 bit)
#!/bin/bash
# Give the usual warning.
clear;
echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds...";
sleep 10;
clear;
# Download and extract exploit files.
echo "[INFO] Downloading exploit files from GitHub...";
@vfdev-5
vfdev-5 / Create_a_hotspot.md
Last active January 15, 2021 15:52
Raspberry Pi - Ubuntu 16.04 Mate - Wifi automatic connection and static IP in terminal
sudo nmcli dev wifi hotspot ifname wlan0 con-name "my-hotspot" ssid "my-hotspot" password "My HotsPoT Strong Password"

More info here

@groob
groob / Caddyfile
Created August 30, 2016 20:58
I have a bunch of projects running on localhost(different ports). Here's a few, and a simple Caddyfile(caddy means automatic free https) proxies requests to those backends. Easy, cheap.
https://elmvids.groob.io:443 {
log stdout
prometheus
proxy / localhost:4001
tls {
max_certs 10
}
}
https://groob.io:443 {

Pragmatism

We focus on work that drives business value and gets us closer to accomplishing our mission. We don't solve problems that we don’t have, and we don’t build technology for technology's sake.

Simplicity

We are always thinking “is there less I can do to solve this problem?”. We excel at delivering tools and products that hide complex problems behind simple abstractions.

Relentlessness

We work intensely and creatively to deliver solutions on time with high quality. We are unwilling to let ourselves be blocked or stuck, because our mission is important, and we care strongly.

Collaboration

@eferro
eferro / _aws_golang_examples.md
Last active August 21, 2024 05:20
golang aws: examples

AWS Golang SDK examples

@gwillem
gwillem / ansible-bootstrap-ubuntu-16.04.yml
Created June 16, 2016 21:59
Get Ansible to work on bare Ubuntu 16.04 without python 2.7
# Add this snippet to the top of your playbook.
# It will install python2 if missing (but checks first so no expensive repeated apt updates)
# [email protected]
- hosts: all
gather_facts: False
tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
@andrius
andrius / Procfile
Last active July 22, 2022 22:00
How to dockerize #rails app with #puma. Edit config/application.rb and config/puma.rb #docker #ruby
api: bundle exec puma -C config/puma.rb