Find Raspberry Pi in network with this snippet because all Pi MAC addresses starting with B8:27:EB.
$ sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
#!/usr/bin/env bash | |
projectname=$1 | |
${bitbucketUsername}=HansMuster | |
${githubUsername}=HansMuster | |
git clone [email protected]:${bitbucketUsername}/${projectname}.git | |
cd ${projectname} | |
git remote set-url origin https://github.com/${githubUsername}/${projectname}.git | |
git push --mirror |
# just an empty file |
openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_new | |
cp ~/.ssh/id_rsa ~/.ssh/id_rsa.backup | |
rm ~/.ssh/id_rsa | |
cp ~/.ssh/id_rsa_new ~/.ssh/id_rsa | |
chmod 400 ~/.ssh/id_rsa |
Find Raspberry Pi in network with this snippet because all Pi MAC addresses starting with B8:27:EB.
$ sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
<snippet> | |
<content><![CDATA[ | |
<img alt="${5:Placeholder}" title="${5:Placeholder}" src="//placehold.it/${1:350}x${2:200}/${3:D20000}/${4:FFFFFF}/"> | |
]]></content> | |
<tabTrigger>placeholdit</tabTrigger> | |
</snippet> |
#!/bin/sh | |
# Simple Script to dump remote db and import it local | |
# Usage: ./getdb.sh DBNAME | |
remoteHost=192.168.1.100 | |
remotePw=testingtester | |
clear | |
echo "[Step 1/4] Get $1 DB" |
-clean | |
-startup | |
../Eclipse/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar | |
--launcher.library | |
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.300.v20150602-1417 | |
-product | |
org.eclipse.epp.package.jee.product | |
--launcher.defaultAction | |
openFile | |
-showsplash |
# download rar: http://www.win-rar.com/download.html | |
rar r sourcefile output |
.vertical-align-center { | |
display: -webkit-flex; | |
-webkit-flex-direction: column; | |
-webkit-justify-content: center; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
} |
%d %30.30t %-5p [%-5marker] %45.45c - %m%n |