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
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/"> | |
<os:ShortName>WordPress Plugins Directory</os:ShortName> | |
<os:Description>WordPress Plugins Directory</os:Description> | |
<os:InputEncoding>UTF-8</os:InputEncoding> | |
<os:Image width="16" height="16">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAC3ElEQVQ4jXVTz0sbaxT9Vl30D+if8AoPusmmf1E3gWyyziIyMvcbS2RMnDBmxoAbwYBxJpmagGhDggpRW2h9T32JYWaycSA/TAbKRON3utFCte/AhQv33AuHew5jzyBJ0lvOeYaITjnnc875/LHPSJL09jn/N8iynFQUZVQulxu9Xu+L53ljz/PGvV7vS7lcbiiKMpJlOfliMZ1OvyKimqZpV0EQdA4PD1EsFsE5hyRJMAwD7XYbg8HgP03Troiolk6nX/06QERqoVD4Oh6Pp4ZhQJblP9bu7i4A/CgUCl855xnGGGOc83eKooyiKLqo1+twHAfLy8uoVCpwHAeO42BrawuKouDu7g4AEEWR/yjnb0ZEqm3b+0/DTqeDbDaLSqUCIQQAoFQqIZPJwPM9AMDk9ha2be9zzjOMc37p+/5pvV4HAPi+j5WVFaiqim63CwCoVqtQVRXl8g4A4Pu37/B9/5SI/mFENJvP50Nd1zEcDnF/fw/TNLG6uoparQYhBK6vr/GRcxTXiwCAnZ0dRFE04pzfMiKaRVE0Wl9fx9HREYQQaLVayOVyaLfbEEJgPp9D0zSUSiUMBgOsra1hNpuNiChkRNTxff/Utm1sbm7i4eEBNzc3+Mg5Li4u0Gg0IISAZ |
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
/* disable and redirect feed links snippet | |
by Cristovao Verstraeten - apleasantview.com 2013*/ | |
function simple_nofeed() { | |
remove_action( 'wp_head', 'feed_links', 2 ); | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); | |
if ( is_feed() ) | |
{ | |
status_header( '404' ); |
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 | |
/* | |
Plugin Name: file name sanitizer | |
Description: Removes accents at file upload from WP Trac. Patch at http://core.trac.wordpress.org/attachment/ticket/22363/22363.8.patch | |
Version: 26 10 2013 | |
*/ | |
remove_filter('sanitize_file_name', $filename, $filename_raw); | |
/** |
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 | |
/** | |
* The loop that displays an attachment | |
* | |
*/ | |
?> | |
<?php if ( ! empty( $post->post_parent ) ) : ?> | |
<p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php echo esc_attr( sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) ) ); ?>" rel="gallery"><?php | |
/* translators: %s - title of parent post */ |
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
@ECHO off | |
net use z: "%1" /user:vagrant vagrant |
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
#!/bin/bash - | |
#title :git-it.sh | |
#description :Self destructing Git initialisation script. Self-destruction now optional! | |
#author :Cristovao Verstraeten - https://gist.github.com/cristovaov/d9c397016f7d345b157d | |
#date :20150823 | |
#version :2022.11.10 | |
#usage :./git-it.sh | |
#notes :Commented the self-destructing bits! Added capitalization to commit messages. | |
#bash_version :4.3.39(3)-release | |
#============================================================================ |
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
import os | |
import sys | |
def main(): | |
print "\n" | |
fn = raw_input("Enter name of file: ") | |
print "Opening file: %s\n" % fn | |
if not os.path.exists(fn): | |
print("File does not exist!\n") |
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
import tweepy | |
# Keys, tokens and secrets | |
consumer_key = "" | |
consumer_secret = "" | |
access_token = "" | |
access_token_secret = "" | |
# Tweepy OAuthHandler | |
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) |
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
# Usage like activating venv on Linux: source /path/to/env/Scripts/activate | |
# Use 'deactivate_venv' on CL or pass argument '--deactivate' on the source command to deactivate env. | |
deactivate_venv() { | |
if [[ -z ${_OLD_VIRTUAL_PATH} ]]; then | |
printf "No virtual environment found!\n" | |
else | |
export PATH=$_OLD_VIRTUAL_PATH | |
export PS1=$_OLD_VIRTUAL_PS1 | |
unset _OLD_VIRTUAL_PATH |
OlderNewer