Skip to content

Instantly share code, notes, and snippets.

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

Milan Thapa thapakazi

💭
🐧 🗡️ 💻
View GitHub Profile
@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 March 7, 2024 09:24
"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 July 21, 2023 09:35
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)
# gwillem@gmail.com
- 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
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active April 15, 2024 02:19
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@leommoore
leommoore / mongodb_3.2.x_security.md
Last active October 19, 2018 00:39
MongoDB 3.2.x Security

#MongoDB 3.2.x Security

##Network Ports The standard ports used by mongo are:

ProcessRoleDefault Port