Skip to content

Instantly share code, notes, and snippets.

@pedramamini
pedramamini / XProtect.yara
Created October 19, 2017 20:18
Apple OSX built in file defense is powered by YARA: /System/Library/CoreServices/XProtect.bundle/Contents/Resources
import "hash"
private rule Macho
{
meta:
description = "private rule to match Mach-O binaries"
condition:
uint32(0) == 0xfeedface or uint32(0) == 0xcefaedfe or uint32(0) == 0xfeedfacf or uint32(0) == 0xcffaedfe or uint32(0) == 0xcafebabe or uint32(0) == 0xbebafeca
}
@fbartho
fbartho / 0. Synology RAID Expansion-Resync Performance.md
Last active April 29, 2024 19:02
Walkthrough of what I did to increase performance on my Synology NAS box during an expansion, and afterwards.

Performance on Synology RAIDs

(especially while expanding)

Warning: The exact commands may not match for your particular linux OS / Synology(NAS) device. I had to customize the commands after exploring my particular system's setup.

If you're new to linux, or this is a new piece of hardware / a new synology device, jump down to the section called "Inspecting a setup"

Contents

@ceejbot
ceejbot / README.md
Last active December 2, 2020 07:06
How I set up a mastodon instance on AWS with ansible on ubuntu trusty
@itod
itod / split_keyboards.md
Last active May 6, 2024 10:50
Every "split" mechanical keyboard currently being sold that I know of
@x-magic
x-magic / mmvmysql.sh
Created August 7, 2016 06:27
Install MySQL in OSX, originally from http://git.io/eUx7rg, fixed the link used in the script (since it point to wrong file and leads the script to fail)
#!/bin/bash
#############################################
# AUTHOR: JONATHAN SCHWENN @JONSCHWENN #
# MAC MINI VAULT - MAC MINI COLOCATION #
# MACMINIVAULT.COM - @MACMINIVAULT #
# VERSION 2.2 RELEASE DATE SEPT 28 2015 #
# DESC: THIS SCRIPT INSTALLS MySQL on OSX #
#############################################
#REQUIREMENTS:
# OS X 10.7 or newer
@x-magic
x-magic / Shadowsocks4Debian.sh
Created July 6, 2016 11:25
Automated installation script to install Shadowsocks on Debian Jessie server (perfect for DigitalOcean droplet)
#!/bin/bash
# A script that automates Shadowsocks on a Debian Jessie server
# Perfect for and tested on DigitalOcean 512MB ($5/month) Debian Jessie x64 droplet, as of July 2016
# Since this is modifying systemd servie script so it won't work on Debian Wheezy
# Disable nfs and rpcbind service (this is just for DigitalOcean Debian distros since these services are useless!)
systemctl stop nfs-common > /dev/null 2>&1
systemctl disable nfs-common > /dev/null 2>&1
systemctl stop nfs-common > /dev/null 2>&1
@lukas-h
lukas-h / license-badges.md
Last active May 1, 2024 10:20
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@rys
rys / he.net-tunnelbroker-setup-edgeos.txt
Last active March 31, 2024 00:22
HE.net Tunnelbroker IPv6 tunnel on EdgeOS
# this assumes WAN is eth0 and LAN is switch0. Please adjust for your own setup
configure
# Tunnel first
edit interfaces tunnel tun0
set encapsulation sit
set local-ip xxx.xxx.xxx.xxx # your WAN IP
set remote-ip xxx.xxx.xxx.xxx # HE.net Server IPv4 Address
set address xxxx:xxxx:xxxx:xxxx::2/64 # Client IPv6 Address
@tianyuf
tianyuf / fm-megaminimal.css
Last active November 19, 2021 18:00
FastMail Megaminimal
/* This theme works with Stylish and FastMail.com Web. Please first set your FastMail theme to "Minimal". */
body {
font-family: "Roboto", sans-serif;
}
a {
color: #003445;
}
.app-toolbar {
background: #fff;
@erichrobinson
erichrobinson / README.md
Last active February 24, 2024 08:32
SwitchResX Configuration

#SwitchResX Settings for LG 21:9 UltraWide

SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist http://www.madrau.com/ .

##Disabling System Integrity Protection (SIP)

If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:

  • Boot into the recovery partition by pressing CMD + R when starting up your Mac.
  • Once in recovery mode, open a terminal window.
  • Type the command csrutil disable