Skip to content

Instantly share code, notes, and snippets.

timeout 120
taskkill /F /IM "robocopy.exe"
robocopy "C:\abc" "D:\xyz" /S /R:0 /W:0 /XJD /XJF /LOG:"C:\TEMP\robocopy.log" /xf *.type~ *.robot~ .gitignore .history .project /xd .git
cmd.exe
@ishideo
ishideo / empty.bat
Last active September 26, 2018 08:15
empty.bat
@echo off
empty.exe *
cd C:\XXX
7z a %date:~0,4%%date:~5,2%%date:~8,2%.zip AAA BBB
pushd "\\XXX\abc"
move /y "C:\backup\%date:~0,4%%date:~5,2%%date:~8,2%.zip" .
cmd.exe
@ishideo
ishideo / unixtime.js
Last active November 22, 2018 14:59
unix time generator bookmarklet
javascript: (function() {
var date = new Date();
prompt("unix time:", date.getTime());
})();
@echo off
set HTTP_CLIENT=wget --no-check-certificate -O
set HTTP_CLIENT=curl -f -L -k -o
set HTTP_PROXY=yourserver:8080
set HTTPS_PROXY=yourserver:8080
set JAVA_HOME=%~dp0
set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=yourserver -Dhttp.proxyPort=8080 -Dhttp.proxyUser=username -Dhttp.proxyPassword=password"
set PATH=%PATH%;%JAVA_HOME%bin;%~dp0kotlinc\bin;%~dp0
@echo off
set HTTP_CLIENT=wget --no-check-certificate -O
set HTTP_CLIENT=curl -f -L -k -o
set HTTP_PROXY=yourserver:8080
set HTTPS_PROXY=yourserver:8080
set JAVA_HOME=%~dp0
set "JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=yourserver -Dhttp.proxyPort=8080 -Dhttp.proxyUser=username -Dhttp.proxyPassword=password"
set PATH=%PATH%;%JAVA_HOME%bin;%~dp0kotlinc\bin;%~dp0
#!/usr/bin/env python
import sys
import re
import codecs
import time
import msmt
from BeautifulSoup import BeautifulStoneSoup
#sys.stdout = codecs.getwriter('utf-8')(sys.stdout)
#!/usr/bin/env gosh
(use file.util)
(define (main args)
(let1 lines (file->list read-line "temp.tmpl")
(let loop ((r "")
(lis lines))
(if (null? lis)
(print r)
(source gnu)
(source melpa)
(depends-on "bind-key")
(depends-on "cask")
(depends-on "dash")
(depends-on "drag-stuff")
(depends-on "exec-path-from-shell")
(depends-on "expand-region")
(depends-on "f")
;;; myfile.el --- sample
;; This program is free software
;;; Version: 0.1
;;; Code:
(defun myfile:addition (a b)
(+ a b))
(provide 'myfile)