Skip to content

Instantly share code, notes, and snippets.

View chieft3ch's full-sized avatar
🤷‍♂️

t3ch chieft3ch

🤷‍♂️
View GitHub Profile
@chieft3ch
chieft3ch / comma-snippet.js
Created February 4, 2019 15:38
Convert Checkboxes or Similar into Comma Separated list
var checkedVals = $('input[type=checkbox]:checked').map(function() {
return this.value;
}).get();
$(*TARGET*).val(checkedVals.join(","));
@chieft3ch
chieft3ch / url-parameters.js
Created February 4, 2019 15:39
Add, Remove and Get URL Parameters in Javascript
// Insert URL parameter
function insertUrlParameter(key, value)
{
key = encodeURI(key); value = encodeURI(value);
var kvp = document.location.search.substr(1).split('&');
var i=kvp.length; var x; while(i--)
{
x = kvp[i].split('=');
if (x[0]==key)
{
@chieft3ch
chieft3ch / index.php
Created June 18, 2019 14:49
Google maps GeoCode with Searchbar
<form action="" id="pointLookup">
<input type="text" name="location" id="location" required maxlength="255" minlength="3">
<button type="submit">Submit</button>
</form>
<div id="map-canvas" style="width:100%; height:400px;"></div>
<script>
var geocoder;
var map;
var places;
@chieft3ch
chieft3ch / all.txt
Created October 10, 2019 13:59 — forked from jhaddix/all.txt
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
@chieft3ch
chieft3ch / Documentation.md
Created January 8, 2020 08:38 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs