Skip to content

Instantly share code, notes, and snippets.

View markstachowski's full-sized avatar

Mark Stachowski markstachowski

View GitHub Profile
@VadimBrodsky
VadimBrodsky / arch.txt
Last active August 11, 2020 12:10
arch
pacstrap /mnt base base-devel
pacman -S
openssh
grub
os-prober
linux-headers
linux-lts
linux-lts-headers
wpa_supplicant
wireless_tools
@mikroskeem
mikroskeem / get_shell.c
Last active August 30, 2018 16:03
A script to get Arch Linux ARM rootfs running in proot on Android (Termux)
/*
* clang -static -O2 get_shell.c get_shell
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pwd.h>
int main(int argc, char *argv[]) {
@Madh93
Madh93 / Fail2ban_configuration.md
Last active August 17, 2019 10:38
Fail2ban configuration

Fail2ban configuration

  • Jail.local
  • Nextcloud filter
  • Jellyfin filter
@cristianorsolin
cristianorsolin / README.md
Created February 22, 2018 14:05 — forked from sysadmiral/README.md
Obtaining Amazon SES SMTP Credentials by Converting AWS Credentials

If you have an IAM user that you set up using the IAM interface, you need to do the following two steps to enable the user to send email using the Amazon SES SMTP interface:

  • Derive the user's SMTP credentials from their AWS credentials using the algorithm provided in this section. A user's SMTP username is the same as their AWS Access Key ID, so you just need to generate the SMTP password.

  • Apply the following policy to the IAM user:

{
  "Version": "2012-10-17",
 "Statement": [
@bijij
bijij / viewimage.user.js
Last active June 30, 2025 03:27
Userscript version of the View Image chrome extension
// ==UserScript==
// @name View Image
// @namespace https://github.com/bijij/ViewImage
// @version 4.1.1
// @description This userscript re-implements the "View Image" and "Search by image" buttons into google images.
// @author Joshua B
// @run-at document-end
// @include http*://*.google.tld/search*tbm=isch*
// @include http*://*.google.tld/imgres*
// @updateURL https://gist.githubusercontent.com/bijij/58cc8cfc859331e4cf80210528a7b255/raw/viewimage.user.js
@VadimBrodsky
VadimBrodsky / solarized-light.json
Created February 10, 2018 17:54
Secure Shell Profiles
{
"magic":"nassh-prefs",
"version":1,
"nassh":{
"profile-ids":[
{
"id":"9f63",
"json":{
"description":"freenas",
"username":"Vadim",
@patrickcurl
patrickcurl / firefox-delay.json
Created February 3, 2018 22:21
Firefox delay on loading pages. Here's my about:support. Arch Linux/Angergos Distro.
{
"application": {
"name": "Firefox",
"osVersion": "Linux 4.14.15-1-ARCH",
"version": "59.0b6",
"buildID": "20180201171410",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0",
"safeMode": false,
"updateChannel": "beta",
"supportURL": "https://support.mozilla.org/1/firefox/59.0/Linux/en-US/",
@nrollr
nrollr / Python.md
Last active June 6, 2023 23:16
Python environments in macOS

Python environments in macOS

The latest version of macOS 10.13.3 has Python 2.7.10 installed by default, yet Python has been available on macOS and previously OS X for quite a while now.

Consult the Apple's Open Source Reference Library, and browse through the various releases of the OS to find out which Python version was included). But what if you have a project which requires Python 3 ?

The following instructions will guide you through the process of:

  • installing Python 3 using Homebrew
  • running multiple Python verions as sandboxed environments

Rails naming conventions

General Ruby conventions

  • Class names are CamelCase.
  • Methods and variables are snake_case.
  • Methods with a ? suffix will return a boolean, and are called predicates.
  • Methods with a ! suffix mean one of two things: either the method changes the state of the object instance in some fashion, or it will raise and exception instead of failing (such as Rails models' #save! vs. #save).
  • In documentation, ::method_name denotes a class method, while #method_name denotes a instance method.
@VadimBrodsky
VadimBrodsky / prefs.js
Created January 25, 2018 03:24 — forked from jonchurch/prefs.js
Dracula theme for Chrome Secure Shell, for all of us using crouton!
// Paste this whole file into your Chrome Secure Shell window's inspect console, and run it!
term_.prefs_.set('enable-bold', false)
term_.prefs_.set('background-color', "#282a36");
term_.prefs_.set('foreground-color', "#f8f8f2");
term_.prefs_.set('color-palette-overrides', [
"#000000",
"#ff5555",
"#50fa7b",