Skip to content

Instantly share code, notes, and snippets.

View Semamir's full-sized avatar
:octocat:
👨‍💻🚀

Simon Mironenko Semamir

:octocat:
👨‍💻🚀
View GitHub Profile

Keybase proof

I hereby claim:

  • I am semamir on github.
  • I am semamir (https://keybase.io/semamir) on keybase.
  • I have a public key ASBLLCmA9KTzwtvl4Fb_4nUtAq4mclwrTBkpT_sPLW-iFQo

To claim this, I am signing this object:

@Semamir
Semamir / sshrc
Created April 16, 2019 19:53
login notification (/etc/ssh/sshrc)
#!/bin/sh
ip_user=`echo $SSH_CONNECTION | cut -d " " -f 1`
ip_server=`echo $SSH_CONNECTION | cut -d " " -f 3 `
message="`hostname -f`($ip_server) ssh login $USER - $ip_user"
data=\'{\"text\":\""$message"\"}\'
command="curl -X POST -H 'Content-type: application/json' --data $data https://hooks.slack.com/services/<SLACK_KEYS>"
eval "$command"
exit 0
@Semamir
Semamir / useragentswitcher.xml
Created February 23, 2018 00:21
Massive list of user agents for User Agent Switcher by Chris Pederik http://forums.chrispederick.com/categories/user-agent-switcher
<useragentswitcher>
<folder description="Browsers - Windows">
<folder description="Legacy Browsers">
<useragent description="Arora 0.6.0 - (Vista)" useragent="Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/527 (KHTML, like Gecko, Safari/419.3) Arora/0.6 (Change: )" appcodename="" appname="" appversion="" platform="" vendor="" vendorsub=""/>
<useragent description="Avant Browser 1.2" useragent="Avant Browser/1.2.789rel1 (http://www.avantbrowser.com)" appcodename="" appname="" appversion="" platform="" vendor="" vendorsub=""/>
<useragent description="Chrome 4.0.249.0 (Win 7)" useragent="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.0 Safari/532.5" appcodename="" appname="" appversion="" platform="" vendor="" vendorsub=""/>
<useragent description="Chrome 5.0.310.0 (Server 2003)" useragent="Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.310.0 Safari/532.9" appcodename="" appname=""