Discover Gists

View WavSaver.cs
1 2 3 4 5 6 7 8 9 10
using UnityEngine;
using System.Collections;
using System.IO;
using System;
using System.Collections.Generic;
 
// Copyright (c) 2014 Hunter Thomas
// http://github.com/ScrapCupcake
//
// This software is provided 'as-is', without any express or implied warranty. In
View asm-mode.el
1 2 3 4 5 6 7 8 9 10
;;; asm-mode.el --- mode for editing assembler code
 
;; Copyright (C) 1991, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
;; Free Software Foundation, Inc.
 
;; All other changes in the public domain.
 
;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
;; Author: Robbie Harwood (frozencemetery) <rharwood@club.cc.cmu.edu>
;; Maintainer: FSF
View hshy_checkin
1 2 3 4 5 6 7 8 9 10
# -*- coding: utf-8 -*-
import requests
import hashlib
import re
 
username = '' ###账号###
password = ''###密码###
UA = "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) \
Chrome/27.0.1453.116 Safari/537.36"
headers = {
View DevAlias-PentestEnvironmentSetup.sh
1 2 3 4 5 6 7 8 9 10
# /dev/alias Pentest Environment Setup
# Version: 0.2 (20131211)
# Created By: Glenn 'devalias' Grant (http://devalias.net)
# License: The MIT License (MIT) - Copyright (c) 2013 Glenn 'devalias' Grant (see http://choosealicense.com/licenses/mit/ for full license text)
 
# TODO:
# * Option to check if tools (from this script and external) exist/are already installed and what versions
# * Eg nmap , metasploit, etc
# * Lair: https://github.com/fishnetsecurity/Lair
# * apt-get install python-pip
View strcpy.cpp
1 2 3 4 5 6 7 8 9 10
// implicitly copy the '\0' to 'to'
char* strcpy(char *to, const char *from) {
char *p = to;
while(*p++ = *from++) {}
return to;
}
 
// explicitly copy the '\0' to 'to'
char* strcpy(char *to, const char *from) {
char *p = to;
View Enum_Explorer.ahk
1 2 3 4 5 6 7 8 9 10
; v1.0.0
; http://www.autohotkey.com/board/topic/105112-enum-explorer-receive-all-explorer-in-z-order/
Enum_Explorer(hWnd=0, lParam=0) {
If hWnd
{
WinGetClass, class, ahk_id %hwnd%
If class in CabinetWClass,ExploreWClass
{
array := object(lParam)
If IsObject(array[hwnd])
View sublime-config.json
1 2 3 4 5 6 7 8 9 10
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"caret_style": "smooth",
"fade_fold_buttons": false,
"font_face": "Droid Sans Mono",
"font_size": 11,
"highlight_line": false,
"highlight_modified_tabs": true,
"indent_guide_options":
View stilomedia_crmmedia2014
1 2 3 4 5 6 7 8 9 10
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
 
p
{margin:0in;
margin-top:4pt;
View show.rs
1 2 3 4 5 6 7 8 9 10
pub struct Log {
pub file: File, // open File with Append/Write state
pub path: Path, // path to log
pub idx: u64, // idx of last entry in the logs, may be ahead of from commit_idx
pub term: u64, // term of last entry in the logs
pub logentries: Vec<LogEntry>, // cache of all entries logged to file (TODO: future keep only last 100? 1000?)
}
 
impl Show for Log {
fn fmt(&self, ft: &mut Formatter) -> Result {
Something went wrong with that request. Please try again.