Skip to content

Instantly share code, notes, and snippets.

@jasonadsit
jasonadsit / Get-FileShareAudit.ps1
Created November 22, 2017 23:38
Audit who has access to a file share.
function Get-FileShareAudit {
[CmdletBinding()]
param (
[parameter(Mandatory=$true,Position=0,HelpMessage="Enter the DFS path of the share you want to audit permissions for.")]
[string]
$SharePath
) #param
process {
Add-Type -AssemblyName System.DirectoryServices.AccountManagement
$Context = [System.DirectoryServices.AccountManagement.ContextType]::Domain
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active November 1, 2025 05:06 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@keithga
keithga / Get-LatestUpdate.ps1
Last active September 26, 2024 21:54
script to get latest build.
<#
.SYNOPSIS
Get the latest Cumulative update for Windows
.DESCRIPTION
This script will return the list of Cumulative updates for Windows 10 and Windows Server 2016 from the Microsoft Update Catalog.
.NOTES
Copyright Keith Garner (KeithGa@DeploymentLive.com), All rights reserved.
@yunusga
yunusga / gist:33cf0ba9e311e12df4046722e93d4123
Created April 5, 2017 11:55
Debug WordPress 404 issues (permalinks, rewrite rules, etc.)
/* Produces a dump on the state of WordPress when a not found error occurs */
/* useful when debugging permalink issues, rewrite rule trouble, place inside functions.php */
ini_set( 'error_reporting', -1 );
ini_set( 'display_errors', 'On' );
echo '<pre>';
add_action( 'parse_request', 'debug_404_rewrite_dump' );
function debug_404_rewrite_dump( &$wp ) {
@Opiprog
Opiprog / gist:8bb6f491578d4f23540ccd98e85288c3
Created December 6, 2016 12:45
Convert xls to xlsx using Windows cmd
# Open a command prompt in windows and type the following
# This open the excelcnv.exe from the Office15 folder and converts MyFile.xls (from the in folder) to MyFile.xlsx (to the out folder)
"C:\Program Files (x86)\Microsoft Office\Office15\excelcnv.exe" -oice "C:\in\MyFile.xls" "C:\out\MyFile.xlsx”
@LalitPatil
LalitPatil / links.md
Created June 14, 2016 06:55 — forked from MarkVillacampa/links.md
All the Apple Developer links you need from WWDC16
@alirobe
alirobe / reclaimWindows10.ps1
Last active October 22, 2025 05:28
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security
@joepie91
joepie91 / 1_changelog.md
Last active March 27, 2018 00:20
Remove Wired / V3 "ad-blocker veil"

Supported sites:

  • Wired
  • V3.co.uk

Requests for other sites are welcome (admin@cryto.net).

Changelog

  • July 25, 2016: Added support for V3.co.uk.
@vielhuber
vielhuber / index.php
Last active July 17, 2023 14:20
load wpdb outside in external php file #php #wordpress
<?php
// minimal version
define( 'SHORTINIT', true );
require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php' );
// medium version (With lots of overhead)
require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php' );
// full version (including functions and 200 header)
define( 'SHORTINIT', true );
@cogwirrel
cogwirrel / tugo_backup.js
Created June 1, 2015 00:14
TuGo SMS Backup
var backup = function(options) {
$.ajax({
url: "https://api-gb.tugoapp.com/users/me/history?from_version=0&page_size=" + options.numTexts + "&page_number=1&with_source=" + options.theirNumber + "," + options.myNumber + "&with_destination=" + options.theirNumber + "," + options.myNumber,
headers: {
"X-External-Transaction-Id": "blahblah123",
"Authorization": "Bearer " + options.token,
"X-User-Version": "1.2.0",
"X-Country-Code": "GB",
"X-User-Msisdn": options.myNumber,
"Accept-Language": "en-GB,en-US;q=0.8,en;q=0.6",