Skip to content

Instantly share code, notes, and snippets.

@AshDevFr
AshDevFr / InstallSheepitAsAService.sh
Created April 2, 2022 21:41 — forked from styxadmin/InstallSheepitAsAService.sh
Run Sheepit-Client as a Linux Service
#!/bin/bash
###############################################################
# This Script creates a service and a dedicated user #
# for running sheepit-client (www.sheepit.com) on a headless #
# Linux-Server #
# #
# Author of this script is: jerome.poenisch@gmail.com #
###############################################################
###############################################################
@AshDevFr
AshDevFr / readme.md
Created January 25, 2021 17:25 — forked from nickcernis/readme.md
Exclude node_modules and .git from Backblaze backups on Mac

Exclude node_modules and .git from Backblaze backups on Mac

  1. Edit the file at /Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml.
  2. Add these rules inside the bzexclusions tag:
<!-- Exclude node_modules. -->
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
@AshDevFr
AshDevFr / XSS tests
Last active October 9, 2018 20:27
XSS hacks to test your forms
<div>
<svg onload="console.log(1)" onmouseover="console.log(2)"></svg>
<svg autofocus onfocus="console.log(3)"></svg>
<div contenteditable onblur="console.log(4)">lose focus!</div>
<div onclick="console.log(5)">click this!</div>
<div oncopy="console.log(6)">copy this!</div>
<div oncontextmenu="console.log(7)">right click this!</div>
<div oncut="console.log(8)">copy this!</div>
<div ondblclick="console.log(9)">double click this!</div>
<div ondrag="console.log(10)">drag this!</div>
@AshDevFr
AshDevFr / frp.md
Created December 16, 2017 07:26 — forked from ohanhi/frp.md
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

This file has been truncated, but you can view the full file.
{
"companies": [
{
"id": "5a2f29c53e2bed1d1fe031e0",
"name": "Songbird"
},
{
"id": "5a2f29c5302863e437643775",
"name": "Musanpoly"
},
@AshDevFr
AshDevFr / ufw.md
Created April 13, 2017 20:56 — forked from kimus/ufw.md
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.