- You own a Git repository server and the developers do not have access to it
(i.e. they can only read & write to the repo, but not
gc
it). - You had a developer that wrote a project for you.
- He got angry for whatever reason and deleted all branches from the remote repo.
He also
push -f
ed themaster
branch leaving only one silly commit there. - He escaped from the country leaving you without any code at all (at least this is what he believe in).
- You have never cloned the repo to other machine. There were only two copies of it: the developer's one and the server's one.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 0x80 beginning | |
//___________________ | |
// 0x81 - 112 bytes / no refresh / C+3E | |
// 0x82 - refresh | |
// 0x83 - 28 bytes of data / refresh / 2C | |
// 0x84 - 28 bytes of data / no refresh / 2C | |
// 0x85 - 56 bytes of data / refresh / C+E | |
// 0x86 - 56 bytes of data / no refresh / C+E | |
// --------------------------------------- | |
// address or 0xFF for all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
mac_address=$1 | |
# Strip colons from the MAC address | |
mac_address=$(echo $mac_address | sed 's/://g') | |
broadcast=$2 | |
port=4343 | |
# Magic packets consist of 12*`f` followed by 16 repetitions of the MAC address |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name UTM param stripper | |
// @author Paul Irish, Sam Hasler, Lomanic | |
// @namespace http://github.com/paulirish | |
// @version 1.3 | |
// @description Drop the UTM params from a URL when the page loads. | |
// @extra Cuz you know they're all ugly n shit. | |
// @include /^http.*\?.*[?&]utm_.*$/ | |
// @run-at document-start | |
// @updateURL https://gist.github.com/Lomanic/cf1158a9bfb90d8b5dbbb4d05483e857/raw/utmstrip.user.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ---------------------------------------------------------- | |
# Define common colors and styles | |
# | |
readonly RED='\033[0;31m' | |
readonly GREEN='\033[0;32m' | |
readonly ORANGE='\033[0;33m' | |
readonly BLUE='\033[0;34m' | |
readonly PURPLE='\033[0;35m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31683AD77BFC47A1D1A4F30959FDDE26|0001 - Electroplankton (Japan).nds | |
4E24E5D333A91F948265A177B2FF9DB2|0001 - Electroplankton (Japan) (1).nds | |
283631768B2213227FBBEE91154C688F|0002 - Need for Speed - Underground 2 (USA) (En,Fr,De,Es,It).nds | |
C7B2F7A5861F7D4BC94FF050D0B4FBD0|0002 - Need for Speed - Underground 2 (USA) (En,Fr,De,Es,It) (1).nds | |
D57CB3335F228F3DB869003766D10970|0002 - Need for Speed - Underground 2 (USA) (En,Fr,De,Es,It) (2).nds | |
C8065C4B4A21337C2928A14973218D26|0003 - Yoshi Touch & Go (USA).nds | |
827CBAB11FB04D1C87389077CB5809BE|0003 - Yoshi Touch & Go (USA) (1).nds | |
90C6F561CAFB5EDE611398E2F5CA88BD|0003 - Yoshi Touch & Go (USA) (2).nds | |
6796156F49B5ED663EF986B379FFD4EA|0003 - Yoshi Touch & Go (USA) (3).nds | |
FD920DBC37C332D392B547B1D7D5839D|0004 - Feel the Magic - XY-XX (USA) (En,Ja).nds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"syscall" | |
"unsafe" | |
) | |
type Process uintptr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/AllenDang/w32" | |
"io" | |
"os" | |
"unsafe" | |
"errors" | |
"fmt" | |
"syscall" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
net session >nul 2>&1 | |
if %ERRORLEVEL% NEQ 0 ( echo Run this script with administrator privileges & exit /B 1 ) | |
:: https://gist.github.com/Albirew/613cbf63595647ff26b269d5271871a0 | |
echo +------------------------------------------------------------------+ | |
echo ^| SMBv1 patch against malwares like WannaCry ou notPetya / Petwrap ^| | |
echo +------------------------------------------------------------------+ | |
echo. | |
:: deactivate SMBv1 on SMB server | |
reg add "HKLM\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters" /v SMB1 /t REG_DWORD /d 0 /f |
NewerOlder