This file contains hidden or 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 sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
This file contains hidden or 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
| # XVal.py By Redline99 | |
| # Decrpyts the "X:" Value from the Xbox 360 dashboard | |
| # This can indicate if the console has been flagged | |
| # for some types of security violations | |
| # Originally posted at XboxHacker: http://www.xboxhacker.org/index.php?topic=16401.0 | |
| import sha, hmac, struct, sys | |
| FLAG_SSB_NONE = 0x0000 | |
| FLAG_SSB_AUTH_EX_FAILURE = 0x0001 | |
| FLAG_SSB_AUTH_EX_NO_TABLE = 0x0002 |
This file contains hidden or 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
| # xval.rb - Ruby implementation of Redline99's "X" value decryption code for the Xbox 360 by CLK | |
| # See https://gist.github.com/2669789 for Python code | |
| require 'optparse' | |
| require 'openssl' | |
| # Define our constants | |
| FLAG_SSB_NONE = 0x0000 | |
| FLAG_SSB_AUTH_EX_FAILURE = 0x0001 | |
| FLAG_SSB_AUTH_EX_NO_TABLE = 0x0002 | |
| FLAG_SSB_AUTH_EX_RESERVED = 0x0004 |
This file contains hidden or 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
| extern "C" char* ExLoadedImageName; // not sure if this actually works or not. If it doesn't do: | |
| // XexGetProcedureAddress(KernelHandle, 431, &LoadedImageName); // ExLoadedImageName | |
| typedef struct _AnsiString { | |
| USHORT Length; | |
| USHORT MaximumLength; | |
| PCHAR Buffer; | |
| } AnsiString; |
This file contains hidden or 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
| require 'fileutils' | |
| DOWNLOADS_PATH = '/Users/lander/Downloads' | |
| while true | |
| Dir.foreach(DOWNLOADS_PATH) do |entry| | |
| next if !(entry =~ /.mp3$/i) | |
| begin | |
| FileUtils.mv(File.join(DOWNLOADS_PATH, entry), '/Users/lander/ext_music') | |
| puts "Moved: #{File.join(DOWNLOADS_PATH, entry)}}" |
This file contains hidden or 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
| void ProcessBootSector() | |
| { | |
| Exception InvalidSectorsPerCluster = new Exception("FATX: found invalid sectors per cluster"); | |
| Exception InvalidBytesPerSector = new Exception("FATX: invalid bytes per cluster for growable file partition"); | |
| Exception TooSmallClusterSize = new Exception("FATX: found too small of cluster size"); | |
| Exception VolumeTooSmall = new Exception("FATX: volume too small to hold the FAT"); | |
| Exception TooManyClusters = new Exception("FATX: too many clusters"); | |
| // r31 = r3 + 0xa8 |
This file contains hidden or 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 controllers | |
| import ( | |
| "encoding/base64" | |
| "errors" | |
| "github.com/robfig/revel" | |
| "net/http" | |
| "strings" | |
| ) |
This file contains hidden or 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 controllers | |
| import ( | |
| "bitbucket.org/kardianos/osext" | |
| "bluefish/app/models" | |
| "bytes" | |
| "crypto/sha1" | |
| "errors" | |
| "fmt" | |
| "github.com/kr/binarydist" |
This file contains hidden or 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 xval | |
| import ( | |
| "bytes" | |
| "crypto/des" | |
| "crypto/hmac" | |
| "crypto/sha1" | |
| "encoding/binary" | |
| "encoding/hex" | |
| "errors" |
This file contains hidden or 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
| int ledSpeed = 1, buttonVal = 0, ledState = 0; | |
| const int buttonPin = 7, buttonPressAcknowledgedPin = 11;//, allOnPin = 11, blinkingPin = 4; | |
| const int ledPins[] = | |
| { | |
| 2, // red | |
| 8, // yellow | |
| 12 // blue | |
| }; |
OlderNewer