Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
import React from 'react'; | |
import { PanelHeader, HeaderButton } from '@vkontakte/vkui'; | |
import Icon24Fullscreen from '@vkontakte/icons/dist/24/fullscreen'; | |
import Icon24FullscreenExit from '@vkontakte/icons/dist/24/fullscreen_exit'; | |
class PanelHeaderInternal extends PanelHeader { | |
get webviewType () { | |
return window.isWeb ? 'internal' : 'vkapps'; | |
} |
This file contains 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
{ | |
"key_events": { | |
"key_unknown": "adb shell input keyevent 0", | |
"key_soft_left": "adb shell input keyevent 1", | |
"key_soft_right": "adb shell input keyevent 2", | |
"key_home": "adb shell input keyevent 3", | |
"key_back": "adb shell input keyevent 4", | |
"key_call": "adb shell input keyevent 5", | |
"key_endcall": "adb shell input keyevent 6", | |
"key_0": "adb shell input keyevent 7", |
This file contains 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
function getYAML() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var dest = DocumentApp.openById(PropertiesService.getScriptProperties().getProperty("output_document_id")); | |
var key = Browser.inputBox("Please enter the key of the Google Spreadsheet containing the content to be generated as a YAML file."); | |
var source = SpreadsheetApp.openById(key); | |
var output = "---\nen:\n"; | |
var sheets = source.getSheets(); | |
for (var i = 0; i < sheets.length; i++) { |
This file contains 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 -e "${ylw}Спарить PS3 Bluetooth remote\n(y|n)?${rst}" | |
read btr | |
case "$btr" in | |
y) cd $PS3DIR | |
tar xvfz ps3pair.tar.gz | |
cd ps3pair | |
echo "${grn}Спариваем устройства...${rst}" | |
sudo python ps3_pair.py | |
#sudo bluez-test-input connect 00:24:33:A0:43:18 | |
sudo /usr/share/doc/bluez/examples/list-devices | grep Connected |
This file contains 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 | |
# ********************************************************************* | |
# script: ssh-forward-start.sh | |
# summary: Starts an SSH Port Forward process, forwarding a localhost | |
# port to a remote host. The PID of the SSH process will be saved to | |
# the file defined in the pid_filename variable. | |
# See the companion script ssh-forward-stop.sh, which stops the tunnel | |
# using the process information in the PID file. | |
# |
This file contains 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 | |
if ! [ $(id -u) = 0 ]; then | |
echo "I am not root!" | |
exit 1 | |
fi | |
echo "Checking for lamp" | |
if ! [ $(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed") -eq 0 ]; |
NewerOlder