#README
#description ** do something evil as you want to **
- login with your account via any web brower
- use some tools to get your cookies
- pastie the cookies string into scripts
for user in $(cut -f1 -d: /etc/passwd); | |
do | |
crontab -u $user -l 2>/dev/null | |
if [ $? -eq 0 ]; then | |
echo $user | |
echo "-------------------------------" | |
fi | |
done |
"四个空格 | |
set tabstop=4 | |
"使用space代替tab | |
set expandtab | |
" #自动缩进的宽度 | |
set shiftwidth=4 | |
" 根据文件中其他地方的缩进空格个数来确定一个 tab 是多少个空格 | |
set smarttab | |
" :retab 将所有 tab 扩展成空格,这样就完美了 |
#!/bin/bash | |
######################################### | |
#Function: update yum source | |
#Usage: bash update_yum_source.sh | |
#Author: Customer service department | |
#Company: Alibaba Cloud Computing | |
#Version: 2.1 | |
######################################### | |
check_os_release() | |
{ |
#! /usr/bin/env ruby | |
def usage | |
puts "USAGE: binary file.json/yaml [json/yaml] " | |
true | |
end | |
require 'yaml' | |
require 'json' |
function cdxcode() | |
{ | |
path="`osascript ~/Codes/scripts/cdxcode.scpt 2>/dev/null`" | |
if [ -n "$path" ]; then | |
echo "cd to $path" | |
cd "$path" | |
else | |
echo "no Xcode Project finded" | |
fi | |
} |
#include <netinet/in.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
Boolean result; | |
CFHostRef hostRef; | |
CFArrayRef addresses; | |
NSString *hostname = @"m2.qiushibaike.com"; | |
hostRef = CFHostCreateWithName(kCFAllocatorDefault, (CFStringRef)hostname); |
// | |
// NSDropContainer.h | |
#import <Cocoa/Cocoa.h> | |
@protocol NSDropContainerDelegate; | |
@interface NSDropContainer : NSBox { | |
id<NSDropContainerDelegate> _delegate; |
tell application "Adium" | |
go available with message "test again" -- or away or invisible | |
end tell |
public enum TriggerState | |
{ | |
Init, | |
Running, | |
Finished | |
} | |
public class MixerTriggerScript : MonoBehaviour { | |
public PieJuiceTriggerScript anotherTrigger; | |
public TriggerState state = TriggerState.Init; |