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/sh | |
#place it to /etc/hotplug.d/block/ | |
#opkg update ; opkg install blkid block-mount | |
#block detect > /etc/config/fstab ; uci set fstab.@global[0].anon_mount=0 ; uci commit fstab | |
#. /lib/functions/blk.sh | |
logit(){ | |
$@ | logger -t fstab |
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 | |
mkdir -p ~/ins | |
cd ~/ins | |
wget http://node-arm.herokuapp.com/node_latest_armhf.deb | |
sudo dpkg -i node_latest_armhf.deb | |
sudo npm install -g peerflix |
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
@echo off | |
setlocal enableDelayedExpansion | |
set debug= | |
set Yandex=y: | |
set Google=z: | |
rem Please do not use path with space | |
set unxU=%Yandex%\PortableApps\UnxUtils\usr\local\wbin | |
set x64=32 | |
if EXIST "%windir%\SysWOW64" set x64=64 | |
set msys=c:\msys%x64%\usr\bin |
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
#!/usr/bin/bash | |
update-core | |
pacman -Suu | |
if [ "$MSYSTEM" == "MSYS" ] ; then | |
pacman -S git | |
pacman -S base-devel | |
pacman -S ruby | |
else | |
cd ~ |
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
@echo off | |
set codePage=1251 | |
chcp %codePage%>nul | |
"%~dpn0.exe" -charset cp%codePage% %1 | |
pause |
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
#!/usr/bin/python | |
# coding=cp1251 | |
# | |
#pip install plumbum eyed3 | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
#from __future__ import division | |
import platform | |
win=platform.DEV_NULL=="nul" | |
import codecs |
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
:dad's style :) | |
@echo off | |
set args= | |
:loop | |
set s=%~1 | |
set s=%s:\=/% | |
if not "%s:~1,1%"==":" goto noDrv | |
set d=%s:~0,1% | |
set d=%d:A=a% | |
set d=%d:B=b% |
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
@echo off | |
set args= | |
:loop | |
if "%~1"=="" goto run | |
call :repl %1 | |
set args=%args% "%s%" | |
shift | |
goto loop | |
:run |
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
#!/usr/bin/python -i | |
# coding=cp1251 | |
# | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
import os | |
import codecs | |
import sys | |
reload(sys) | |
print("if sys.stdout.isatty():") |
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
Protocol 2 | |
StrictModes no | |
PubkeyAuthentication yes | |
AuthorizedKeysFile c:\PortableApps\OpenSSH\authorized_keys | |
PasswordAuthentication no | |
PermitEmptyPasswords no | |
UsePAM yes | |
PidFile sshd.pid | |
Subsystem sftp sftp-server.exe |
OlderNewer