This file contains hidden or 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
cat php.ini.org | grep -v ";" | grep -v '^\s*$' > php.ini |
This file contains hidden or 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
export IFS=$'\n';for file in `find . -iname "*.avif"`;do echo "${file} -> ${file%%.avif}.jpg";convert "${file}" "${file%%.avif}.jpg" && /bin/rm -vf "${file}";done |
This file contains hidden or 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
String.prototype.toZenkaku = function () { | |
return String(this).replace(/[!-~]/g, function (all) { | |
return String.fromCharCode(all.charCodeAt(0) + 0xFEE0); | |
}); | |
} | |
String.prototype.chunk = function (length) { | |
return this.match(new RegExp('.{1,' + length + '}', 'g')); | |
} |
This file contains hidden or 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 | |
## https://www.ringosan.net/?p=258 | |
export IFS=$'\n' | |
for uuid in `vboxmanage list hdds | grep ^UUID | sed 's/ //g'| cut -d ':' -f 2` | |
do | |
echo ${uuid} | |
vboxmanage modifyhd ${uuid} --compact | |
done |
This file contains hidden or 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
<# | |
.SYNOPSIS | |
exports installed packages. | |
.DESCRIPTION | |
exports installed packages: | |
exportChocolatey.ps1 > packages.config | |
You can install the packages using : | |
choco install packages.config -y | |
.LINK | |
https://gist.github.com/alimbada/449ddf65b4ef9752eff3 |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=windows-31j"> | |
<title> | |
dommune | |
</title> | |
<style type="text/css"> | |
<!-- | |
#body{ margin: 0px; } #video { margin:0px; padding:0px; } #timeline { margin:0px; padding:0px; } |
This file contains hidden or 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
## http://d-goo.hatenablog.com/entry/2013/07/30/124148 | |
for db in `find ~/ -name *.db`;do echo ${db};sqlite3 ${db} vacuum; sqlite3 ${db} reindex;done | |
This file contains hidden or 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 -x | |
echo "this command must be executed in root user." | |
if [ ${EUID:-${UID}} != 0 ]; then | |
echo 'do this with being root . for example : sudo su - ' | |
exit 1; | |
fi | |
## install maildev | |
yum -y install nodejs npm postfix |
This file contains hidden or 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 | |
### BEGIN INIT INFO | |
# Provides: maildev | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Maildev | |
# Description: This file starts and stops Maildev server | |
# |
NewerOlder