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
# https://www.cloudflare.com/ips replace the ips-v4 with ips-v6 if needed | |
# https://blog.cloudflare.com/cloudflare-now-supporting-more-ports/ | |
for ip in `wget -qO- http://www.cloudflare.com/ips-v4`; do | |
iptables -I INPUT -p tcp -m multiport --dports 80,443,8080,8443,2052,2053,2082,2083,2086,2087,2095,2096,8880 -s $ip -j ACCEPT | |
done |
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" standalone="no"?><!--*-nxml-*--> | |
<service-group> | |
<name replace-wildcards="yes">%h</name> | |
<service> | |
<type>_device-info._tcp</type> | |
<port>0</port> | |
<txt-record>model=RackMac</txt-record> | |
</service> | |
</service-group> |
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
arrowParens: "always" | |
bracketSpacing: true | |
endOfLine: "lf" | |
htmlWhitespaceSensitivity: "css" | |
jsxBracketSameLine: false | |
jsxSingleQuote: false | |
printWidth: 80 | |
proseWrap: "preserve" | |
quoteProps: "as-needed" | |
requirePragma: false |
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
Upto what whole number would you like your times table? 10 | |
------------------------------------------------------------------------ | |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | | |
------------------------------------------------------------------------ | |
| 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | | |
------------------------------------------------------------------------ | |
| 3 | 6 | 9 | 12 | 15 | 18 | 21 | 24 | 27 | 30 | | |
------------------------------------------------------------------------ | |
| 4 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | |
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
sudo service mysql stop | |
sudo killall -vw mysqld | |
## write stdout and stderr to resetMySql file | |
sudo mysqld_safe --skip-grant-tables >resetMySql 2>&1 & | |
## updates the password for root to whatever you enter in place of **NEW_PASSWORD** | |
sudo mysql mysql -e "UPDATE user SET Password=PASSWORD('**NEW_PASSWORD**') WHERE User='root';FLUSH PRIVILEGES;" | |
sudo killall -v mysqld | |
## Restart MySql Service | |
sudo service mysql restart |
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
package Arrays; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
public class Append { | |
public static void main(String[] args) | |
{ | |
Scanner in = new Scanner(System.in); |
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 java.util.Scanner; | |
public class GuessTheNumber { | |
@SuppressWarnings("unused") | |
public static void main(String[] args) | |
{ | |
final int HIGHEST_NUMBER = 100; | |
final int MAX_GUESSES = 10; | |
int guessCount = 0; |
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"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:template name="write-path"> | |
<xsl:param name="path"/> | |
<xsl:param name="output"/> | |
<xsl:choose> | |
<xsl:when test="$path/parent::node()"> | |
<xsl:call-template name="write-path"> | |
<xsl:with-param name="output"> |
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 | |
/** | |
* | |
* @author "Will Nielsen" | |
* website: http://willnielsen.com | |
* Date: December 13, 2013 | |
*/ | |
class Shapes { |
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"?> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:date="http://exslt.org/dates-and-times" | |
extension-element-prefixes="date"> | |
<xsl:import href="get-schedule.xsl" /> | |
<!-- | |
Name: XSLT Calendar |
NewerOlder