Skip to content

Instantly share code, notes, and snippets.

View kodopik's full-sized avatar

Anton Konoplev kodopik

View GitHub Profile
@kodopik
kodopik / add-keys.bash
Last active August 29, 2015 14:08
add ssh-keys whith the same passphrase
#!/bin/bash
declare -r keys_dir='/home/user/.ssh/'
declare -r keys='
key0.ppk
key1.ppk
key2.ppk
keyN.ppk
'
@kodopik
kodopik / btsync.conf-sample
Last active August 29, 2015 14:08
Bittorrent Sync config sample
{
"device_name" : ""
,"listening_port" : 0
,"storage_path" : ""
,"pid_file" : ""
,"use_upnp" : false
,"download_limit" : 0
,"upload_limit" : 0
@kodopik
kodopik / .python_header.vim-sample
Last active August 29, 2015 14:08
.vimrc sample
:insert
#!/usr/bin/env python3
# vim: set fileencoding=UTF-8
#
# File Name :
# Purpose :
# Creation Date :
# Last Modified :
# Created By : Anton 'KodopiK' Konoplev
<manifest
android:versioncode="20110420"
android:versionname="1.8.0"
package="ru.e_num"
xmlns:android="http://schemas.android.com/apk/res/android">
<manifest
android:versioncode="20110420"
android:versionname="1.8.0"
package="ru.e_num.test"
<!-- Комментарий: То есть мы подставили точку и слово "test" -->
xmlns:android="http://schemas.android.com/apk/res/android">
<activity
android:label="E-NUM"
android:name=".SplashScreenActivity"
android:screenOrientation="portrait">
<activity
android:label="E-NUM"
android:name="ru.e_num.SplashScreenActivity"
<!-- Комментарий: Дописали имя package -->
android:screenOrientation="portrait">
<provider
android:authorities="com.someapp.android"
android:name="com.someapp.android">
<provider
android:authorities="com.someapp.android.test"
android:name="com.someapp.android">
@kodopik
kodopik / g_hack.service
Created November 22, 2017 17:42
Systemd service for MX1100 mouse hack
[Unit]
Description=g_hack: Additional mouse buttons
[Service]
Type=oneshot
ExecStart=/home/anton/bin/g_hack /dev/usb/hiddev0 0
StandardOutput=null