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
/* Use WP-CLI instead https://developer.wordpress.org/cli/commands/search-replace/ */ | |
SET @oldsite='http://oldsite.com'; | |
SET @newsite='http://newsite.com'; | |
UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite); | |
UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value, @oldsite, @newsite); | |
/* only uncomment next line if you want all your current posts to post to RSS again as new */ |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="Theme.AppCompat.Light.NoActionBar" parent="@style/Theme.AppCompat.Light"> | |
<item name="android:windowNoTitle">true</item> | |
<item name="windowActionBar">false</item> <!-- For 2.x version --> | |
</style> | |
</resources> |
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
Select the whole column | |
Data > Filter > Standard Filter | |
Change 'Field Name' to -none- , click on 'More options' and check on 'No duplication' box | |
Source: http://superuser.com/questions/238656/openoffice-get-distinct-values-from-column |
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
require 'net/http' | |
require 'json' | |
require 'uri' | |
@token = '' | |
def list_files | |
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
params = { | |
token: @token, |
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
rem http://www.shrew.net/ | |
"C:\Program Files\ShrewSoft\VPN Client\ipsecc.exe" -r "VPN Profile Name" -u "Username" -p "Password" -a |
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/env bash | |
# | |
# Update letsencrypt on a lighttp installation | |
# | |
# if you installed letsencrypt in a non-standard location you | |
# can set the LEDIR env var before you run this script | |
# | |
# setup letsencrypt install directory | |
STDLEDIR=/opt/letsencrypt |
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
# Boot from Windows 10 Installation ISO https://www.microsoft.com/en-au/software-download/windows10 | |
Shift+F10 # open a DOS command prompt window | |
# Create a Secondary (Local) Administrator User | |
# Note: it may fail if system disk is not D:, then type "Dir E:", "Dir F:" etc until you find which drive is system | |
Move D:\Windows\System32\utilman.exe D:\Windows\System32\utilman.bak | |
Copy D:\Windows\System32\cmd.exe D:\Windows\System32\utilman.exe | |
wpeutil reboot | |
# allow Windows to boot up normally, not from ISO | |
# bring up a command prompt at the login screen by clicking the "Ease of Access" option on the Windows 10 login screen. |