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/sh | |
# Taken from https://dev.mysql.com/doc/refman/5.7/en/memory-use.html | |
mysql -e "show variables; show status" | awk ' | |
{ | |
VAR[$1]=$2 | |
} | |
END { | |
MAX_CONN = VAR["max_connections"] |
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
[mysqld] | |
## After edit config you have to remove log files and restart mysql server | |
## because after changing innodb-log-file-size you should recreate ib_logfiles | |
## Stop MySQL server | |
## rm /data/dir/ib_logfile* | |
## Run MySQL server | |
##Table open cache under MacOS and MySQL 5.6 should be 250. | |
##Otherwise you will get error MySQL server has gone away | |
##table-open-cache = 250 |
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 | |
# | |
# Use the following script using sudo to install multiple golang installations on your debian | |
# update-alternatives creates, removes, maintains and displays information about the symbolic links comprising the alternatives system | |
# Usage : sudo ./full_golang_install.sh | |
# | |
if [[ $(id -u) -ne 0 ]] ; then echo "This script should be run using sudo or as the root user" ; exit 1 ; fi | |
## Configuration and init |
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
#EXTINF:-1,Nickelodeon | |
http://B29273.cdn.telefonica.com/29273/NICK_SUB.m3u8 | |
#EXTINF:-1,Disney Junior | |
http://B29285.cdn.telefonica.com/29285/DSNJR_SUB.m3u8 | |
#EXTINF:-1,40TV | |
http://B31312.cdn.telefonica.com/31312/40TV_SUB.m3u8 | |
#EXTINF:-1,Disney XD | |
http://B31309.cdn.telefonica.com/31309/DSNYXD_SUB.m3u8 | |
#EXTINF:-1,Canal Cocina | |
http://B31305.cdn.telefonica.com/31305/COCINA_SUB.m3u8 |
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
######################### | |
# .gitignore file for Xcode4 and Xcode5 Source projects | |
# | |
# Apple bugs, waiting for Apple to fix/respond: | |
# | |
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
# | |
# Version 2.6 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# |
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 main | |
import ( | |
"fmt" | |
"os" | |
"math" | |
"strconv" | |
) | |
func main(){ | |
// figures out which number is the bound |
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
/* | |
* Google Code Jam 2012 Qualification Round | |
* Problem C. Recycled Numbers | |
*/ | |
package main | |
import ( | |
"bufio" | |
"bytes" | |
"flag" |
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
rm -rf dart snapshots && | |
mkdir snapshots && | |
cd snapshots && | |
wget http://gsdview.appspot.com/dart-editor-archive-continuous/latest/dart-editor-macosx.cocoa.x86_64.zip | |
cd ../ && | |
tar -zxvf snapshots/dart-editor-macosx.cocoa.x86_64.zip && | |
cd dart && | |
echo "./DartEditor.app/Contents/MacOS/DartEditor" > runDartEditor.sh && | |
chmod +x runDartEditor.sh && | |
cd dart-sdk && |
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 redstone.xmlrpc.XmlRpcClient; | |
import redstone.xmlrpc.XmlRpcException; | |
import redstone.xmlrpc.XmlRpcFault; | |
import java.net.MalformedURLException; | |
import java.util.HashMap; | |
import redstone.xmlrpc.XmlRpcArray; | |
import redstone.xmlrpc.XmlRpcStruct; | |
public class MagentoClient { |
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 main | |
import ( | |
"log" | |
"io/ioutil" | |
"http" | |
) | |
func main() { | |
res, _, err := http.Get("http://bbs.golang-china.org/") |
NewerOlder