Skip to content

Instantly share code, notes, and snippets.

View ailourophile's full-sized avatar

Ælurophile ailourophile

View GitHub Profile
@ailourophile
ailourophile / mastodon-notes.md
Last active January 4, 2023 14:53 — forked from AndrewKvalheim/mastodon-notes.md
Notes on running a personal Mastodon instance

Personal Mastodon instance

Effective total cost: $3–5/mo

Setup

Decide on an EC2 instance type:

  1. At AWS Console → EC2 → Instance Types, filter for ≥1 GB RAM and sort by price.
  • t4g.micro is lowest.
@ailourophile
ailourophile / cloudscan.py
Created August 11, 2016 07:56 — forked from jgamblin/cloudscan.py
A python script to run Nessus cloud scans by @jgamblin but mostly stolen from @averagesecguy.
#!/usr/bin/env python
# Name: cloudscan.py
# Purpose: Run Nessus Cloud Scans Easily.
# By: Jerry Gamblin
# Date: 11.05.15
# Modified 11.05.15
# Rev Level 0.5
# -----------------------------------------------
import requests
@ailourophile
ailourophile / ip-regex
Created July 21, 2014 11:33
regex for IP address
((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)
@ailourophile
ailourophile / mkdncp.sh
Created May 22, 2014 10:13
mkdir and copy site files
ls | grep -oP '(?<=^disc\-).*(?=\.lst)' | awk '{system("mkdir "$1)}';ls | grep -oP '(?<=^disc\-).*(?=\.lst)' | awk '{system("cp *"$1".* " $1)}'
@ailourophile
ailourophile / chbind.sh
Created May 22, 2014 09:20
check BIND version
dig -t txt -c chaos VERSION.BIND @<IP>
@ailourophile
ailourophile / cpnd.sh
Created May 21, 2014 02:33
copy site nmap files to its dir
ls | grep -oP '(?<=^disc\-).*(?=\.lst)' | awk '{system("cp *"$1".* " $1)}'
@ailourophile
ailourophile / mnd.sh
Created May 21, 2014 02:25
mkdir in nmap directory
ls | grep -oP '(?<=^disc\-).*(?=\.lst)' | awk '{system("mkdir "$1)}'
@ailourophile
ailourophile / gist:9758519
Last active August 29, 2015 13:57
Set the UITableView row height (UITableViewDelegate Protocol)
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if (indexPath.section == 2) {
return 44.0;
} else {
return 60;
}
@ailourophile
ailourophile / .gitignore
Last active October 14, 2019 11:00
`.gitignore` for AppCode IDE
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
#...
module MyProject
class Application < Rails::Application
config.assets.precompile += %w( ie6.css ie6_portion2.css ie7.css ie7_portion2.css ie8.css ie8_portion2.css ie9.css ie9_portion2.css)
#...