Skip to content

Instantly share code, notes, and snippets.

Avatar

Anton Konoplev kodopik

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