#Setup services It's best to run these commands in a folder you can later delete, since some of them generate temporary files. ##Samba Firts, you have to open the following ports:
- netbios-ns - 137/tcp
- netbios-dgm - 138/tcp
- netbios-ssn - 139/tcp
| //Get UTC/GMT Offset | |
| new Date().getTimezoneOffset() / -60; /* Type: integer */ | |
| //Get timezone offset string: GMT, GMT+01:00, GMT-01:30 | |
| function getTimeZoneString() { | |
| var num = new Date().getTimezoneOffset(); | |
| if (num === 0) { | |
| return "GMT"; | |
| } else { | |
| var hours = Math.floor(num / 60); |
| # Get interface's MAC address | |
| # $INTERFACE : Interface name (e.g. wlan0) | |
| $(cat /sys/class/net/$INTERFACE/address) |
I hereby claim:
To claim this, I am signing this object:
| package com.franga2000.capturetheflag.config; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import org.bukkit.configuration.InvalidConfigurationException; | |
| import org.bukkit.configuration.file.YamlConfiguration; | |
| import com.franga2000.capturetheflag.Main; | |
| import com.franga2000.capturetheflag.Util; |
| #!/bin/bash | |
| # Set up .bashrc | |
| cat >> ~/.bashrc <<EOL | |
| # BEGIN franga2000's .bashrc stuff & things | |
| # Aliases | |
| alias ll='ls -alh' | |
| alias l='ls -CF' | |
| alias du='du -h' |
| @echo off | |
| rem Uses SpaceDesk (http://spacedesk.ph/download/) | |
| rem Put in the same folder as: spacedeskPersonalView.exe, XML wifi profile file (Wi-Fi-FrangezM.xml) | |
| rem Run script, plug in wifi card (ONLY IF there isn't one), start hotspot on laptop (same settings as XML) | |
| rem When Spacedesk opens, CTRL+SHIFT+C for connect menu, ALT+Enter for fullscreen | |
| rem When done, close Spacedesk, the script will clean up the rest | |
| rem Switch to Unicode | |
| @chcp 65001 | |
| rem CD to script folder |
| """ | |
| Generates iterations of string from lines in a file | |
| Usage: permutations.py <filename:str> <number:int> | |
| Example: permutations.py wordlist.txt 2 | |
| """ | |
| import sys | |
| from itertools import permutations | |
| f = sys.argv[1] |
| // ==UserScript== | |
| // @name WiGLE MAC address manufacturer lookup | |
| // @namespace com.franga2000 | |
| // @downloadUrl https://gist.githubusercontent.com/franga2000/e9fe898fb2f0efeaf284598dff6e216c/raw/GM_WiGLE_OUI.js | |
| // @match https://wigle.net/mapsearch* | |
| // @run-at document-idle | |
| // @grant none | |
| // ==/UserScript== | |
| function loadTitle(el) { |