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
Sub findCell2RowCopy() | |
Dim findString As Variant | |
Dim firstAddress As String | |
Dim findResultCell As Range | |
Dim oldSheet As Worksheet | |
Dim destinationSheet As Worksheet | |
Dim destinationRowNumber As Long | |
Set oldSheet = activeSheet | |
destinationRowNumber = 1 |
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
# make many directories | |
cd ~\test | |
for ($i=0; $i -lt 100; $i++) { | |
New-Item $i\00 -type directory | Out-Null | |
New-Item $i\99 -type directory | Out-Null | |
} | |
# create files and tweak modify-date if file number is even. | |
function CreateNewFiles($path) | |
{ |
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
REGEDIT4 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 |
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
// Contributor: Thanks wakinchan's work to compatible for GoogleTranslate v2.0 | |
// https://github.com/wakinchan/GoogleTranslateScheme | |
#define kNewURLScheme "googletranslate://tweak?q=" | |
@interface TextTranslator : NSObject <UIApplicationDelegate> | |
- (id)initWithDelegate:(id)delegate userInfo:(id)info translateText:(id)text fromLanguage:(id)language toLanguage:(id)language5 localeLanguage:(id)language6 inputMethod:(int)method; | |
- (void)start; | |
@end |
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 python | |
# | |
# Require python 2.5 or higher | |
# | |
# Usage: | |
# script.py <maillog> [maillog]... | |
import re | |
from os import mkdir | |
from sys import argv |
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
diff --git a/makefiles/master/tweak.mk b/makefiles/master/tweak.mk | |
index 9b0025a..eaf67c0 100644 | |
--- a/makefiles/master/tweak.mk | |
+++ b/makefiles/master/tweak.mk | |
@@ -4,6 +4,10 @@ ifeq ($(_THEOS_RULES_LOADED),) | |
include $(THEOS_MAKE_PATH)/rules.mk | |
endif | |
+ifeq ($(THEOS_INSTALL_KILL),) | |
+ THEOS_INSTALL_KILL:=SpringBoard |
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
debugfs -R 'stat /root/test' /dev/mapper/vg01-lv02 |
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
#import <UIKit/UIKit.h> | |
static BOOL isActivatingFromLongPress; | |
%hook BrowserToolbar | |
- (void)_installGestureRecognizers | |
{ | |
%orig; | |
id bookmarkButton = MSHookIvar<id>(self, "_bookmarksItem"); | |
UILongPressGestureRecognizer *longGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPressBookmarkButton:)]; |
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
#!/bin/sh | |
FILES=$(find $(pwd) -name "*.gz" -and ! -name "*.tar.gz") | |
for FILE in $FILES; do | |
(gunzip -c $FILE | xz > ${FILE%.*}.xz; [ $? -eq 0 ] && rm -f $FILE) & | |
done | |
wait |