Skip to content

Instantly share code, notes, and snippets.

View jcrashkit's full-sized avatar

jcrashkit jcrashkit

View GitHub Profile
<script>
let submitBtn;
let newTarget;
submitBtn = addEventListener('click', () => {
let newTarget = document.getElementById("newTarget").elements["hostname"]
console.log(`target: ${newTarget.value}`);
addTarget(newTarget.value)
})
@anschaef
anschaef / bootstrap-4-sass-mixins-cheat-sheet.scss
Last active August 11, 2025 18:58
Bootstrap 4 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 4 Sass Mixins [Cheat sheet]
// Updated to Bootstrap v4.5.x
// @author https://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/master/scss/mixins
/* -------------------------------------------------------------------------- */
/*
// ########################################################################## */
// New cheat sheet for Bootstrap 5:

adb and fastboot must know

Install android SDK (bottom of the page) or full android studio if you need to develop on android.

fastboot looks like adb but it is used when device is in bootloader (or fastboot).

Check connected devices

adb:

@bethebiggreen
bethebiggreen / Two DPDKs and One Ubuntu Router - The Experiments Environments.md
Last active July 3, 2018 21:25
Two DPDKs and One Ubuntu Router - The Experiments Environments

Information of Nodes

1. DPDK 1

  • OS : Ubuntu 14.04
  • Interfaces
    • dpdk0 : 192.168.0.200, 70:85:c2:0f:63:d3
    • eth1 : 115.145.175.61, 70:85:c2:0f:63:d5
  • Role : Server $ sudo ./epserver -p $PWD/www/ -f epserver.conf -N 1
  • ARP table
@contolini
contolini / mobile-phone-tracking-website.md
Last active September 22, 2025 16:21
How to create a simple real-time location tracking website a la https://whereis.contolini.com

The steps below require a smartphone running Android. If you're an iPhone user you'll have to find an appropriate iOS app for step #4. Maybe this?

  1. Copy this HTML file to wherever you want your page to live.
  2. Create an account at MapBox and generate an API token on your account page.
  3. Replace my API token with yours in the HTML file.
  4. Install GPS Logger for Android on your phone.
  5. Create an account at ThingSpeak and get an API key. We'll use ThingSpeak to store your GPS coordinates.
  6. Create a new ThingSpeak channel. Enable all eight fields and make the channel public. It should look like this.
  7. R
@foxbunny
foxbunny / chip-flash.sh
Created May 16, 2016 13:53
Script to flash CHIP
#!/bin/bash
#
# This script programs the CHIP's NAND flash using sunxi-tools' `fel` utiltiy,
# and U-Boot itself. The following tools must be present on the system:
#
# - dd (coreutils)
# - lsusb (usbutils)
# - fel (sunxi-tools)
# - mkimage (android-tools)
#
@darth-veitcher
darth-veitcher / nat.sh
Created April 16, 2016 21:18
Ubuntu Router - Enable IP forwarding and Masquerading
echo -e "\n\nLoading simple rc.firewall-iptables version $FWVER..\n"
DEPMOD=/sbin/depmod
MODPROBE=/sbin/modprobe
EXTIF="eth0"
INTIF="eth1"
#INTIF2="eth0"
echo " External Interface: $EXTIF"
echo " Internal Interface: $INTIF"
@Adam--
Adam-- / back key.bat
Created April 8, 2016 14:08
Windows batch files for useful Android ADB commands. Replace [device] with your device as listed from "adb devices" or remove the -s [device] entirely.
adb -s [device] shell input keyevent 4
@garyconstable
garyconstable / deauth.py
Last active August 26, 2024 17:57
Python Networking Wifi Deauth Attack
import argparse
from multiprocessing import Process
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
import signal
import threading
from sys import platform