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
# my ip | |
RewriteCond %{REMOTE_HOST} !^255\.255\.255\.255 | |
# this prevents looping | |
RewriteCond %{REQUEST_URI} !^/maintenance/? | |
RewriteCond %{REQUEST_URI} /(.*)$ | |
# the redirect | |
RewriteRule (.*) /maintenance [R=301,L] |
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
find . -name "*.php" -print0 | xargs -0 grep -i -n "eval(base64_decode(" > output.txt |
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
[localContext MR_saveToPersistentStoreWithCompletion:^(BOOL success, NSError *error) { | |
if (!success) | |
{ | |
NSLog(@"Error: %@", [error description]); | |
} | |
else | |
{ | |
NSLog(@"SAVED"); | |
} | |
}]; |
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
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender | |
{ | |
// Make sure your segue name in storyboard is the same as this line | |
if ([[segue identifier] isEqualToString:@"YOUR_SEGUE_NAME_HERE"]) | |
{ | |
// Get reference to the destination view controller | |
YourViewController *vc = [segue destinationViewController]; | |
// Pass any objects to the view controller here, like... | |
[vc setMyObjectHere:object]; |
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
/** | |
* Recent_Posts widget w/ category exclude class | |
* This allows specific Category IDs to be removed from the Sidebar Recent Posts list | |
* | |
*/ | |
class WP_Widget_Recent_Posts_Exclude extends WP_Widget { | |
function __construct() { | |
$widget_ops = array('classname' => 'widget_recent_entries', 'description' => __( "The most recent posts on your site") ); | |
parent::__construct('recent-posts', __('Recent Posts with Exclude'), $widget_ops); |
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/python | |
import httplib, urllib, sys | |
message = "Download of " + sys.argv[3] + " " | |
serverurl = "$sabserver" | |
print("Converting argument " + sys.argv[7] + " to status.") | |
if(int(sys.argv[7]) == 0): | |
message = "Download of " + sys.argv[3] + " has been completed." |
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
Sources | |
46&2 Beta Repository | |
http://repo.fortysixandtwo.com/ | |
Alex Zielenski | |
http://repo.alexzielenski.com/ | |
apt.dba-technologies.combeta | |
http://apt.dba-technologies.com/beta/ |
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
<?php foreach(new WP_Query_Columns($the_query, 10) as $column_count) : ?> | |
<ul> | |
<?php while ($column_count--) : $the_query->the_post(); ?> | |
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> | |
<?php endwhile; ?> | |
</ul> | |
<?php endforeach; ?> |
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
Download Cycript onto your Device. | |
If you have your computer handy, SSH into it by running "ssh [email protected]" or whatever your IP is and enter your password. | |
By default it is "alpine" without the quotations but you may have changed it. Once you've SSH'd in, run this | |
(Make sure to open the preferences app first) | |
cycript -p Preferences | |
Then |
OlderNewer