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/zsh | |
cd /tmp | |
wget http://download.springsource.com/release/ECLIPSE/neon/R/eclipse-jee-neon-R-linux-gtk-x86_64.tar.gz | |
# eclipse EE | |
# http://download.springsource.com/release/ECLIPSE/neon/3/eclipse-jee-neon-3-linux-gtk-x86_64.tar.gz | |
tar -zxf eclipse-jee-neon-R-linux-gtk-x86_64.tar.gz -C /opt |
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
asadmin create-jdbc-connection-pool \ | |
--datasourceclassname org.apache.derby.jdbc.ClientDataSource \ | |
--restype javax.sql.DataSource \ | |
--property URL=“jdbc\\:derby\\://localhost\\:1527/sun-appserv-samples”:driverClass=org.apache.derby.jdbc.ClientDriver:Password=APP:portNumber=1527:databaseName=APP:User=APP:serverName=localhost JDBC | |
asadmin create-jdbc-resource —connectionpoolid JDBC jdbc/APP | |
asadmin set server-config.security-service.activate-default-principal-to-role-mapping=true | |
create-auth-realm --classname com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm \ |
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
git log --all --after="2017-04-05 00:00" --before="2017-05-10 23:59" --author="Subash Adhikari" |
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
# set up fstab /etc/fstab | |
mkdir /mnt/data | |
/dev/md0 /mnt/data ext4 defaults 0 2 | |
# set up static IP /etc/network/interfaces | |
iface em0 inet static | |
address 192.168.1.128 | |
netmask 255.255.255.0 | |
network 192.168.1.0 | |
broadcast 192.168.0.1 |
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 | |
# install homebrew if not already installed | |
if ! type "brew" > /dev/null 2>&1; then | |
echo "installing homebrew..." | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
fi | |
echo "updating brew..." | |
brew update |
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
if [ -f /var/run/rebooting-for-updates ]; then | |
# start from where we left off on reboot | |
sed -i '/bash/d' ~/.zshrc | |
sudo rm -f /var/run/rebooting-for-updates | |
echo "continuing after shell reload.." | |
else | |
echo "running script for the first time" |
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
name: builder | |
root: /SRC/builder | |
startup_window: client | |
windows: | |
- logs: | |
layout: even-horizontal | |
panes: | |
- | |
- eclim: |
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
Unhandled Exception: | |
System.InvalidOperationException: Sequence contains no elements | |
at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0006c] in <63992662b765477a898ef49cdcc99ee2>:0 | |
at Microsoft.Build.Evaluation.ProjectItem.GetMetadataValue (System.String name) [0x0002b] in <aa05165cb68b445c9d53781a1bbe8199>:0 | |
at OmniSharp.Solution.CSharpProject.AddProjectReferences (Microsoft.Build.Evaluation.Project p) [0x00049] in <70d1eaefa89d474dbc31e56e742e1653>:0 | |
at OmniSharp.Solution.CSharpProject..ctor (OmniSharp.Solution.ISolution solution, System.IO.Abstractions.IFileSystem fileSystem, OmniSharp.Logger logger, System.String title, System.String fileName, System.Guid id) [0x00246] in <70d1eaefa89d474dbc31e56e742e1653>:0 | |
at OmniSharp.Solution.CSharpSolution.LoadProject (System.String title, System.String location, System.String id) [0x0003d] in <70d1eaefa89d474dbc31e56e742e1653>:0 | |
at OmniSharp.Solution.CSharpSolution.LoadSolution () [0x00125] in <70d1eaefa89d |
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
{ | |
"from": "", | |
"to": "", | |
"subject" : "parking request for tomorrow" | |
} |
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 sayHelloFromExternalScript() { | |
alert('Hello from external script. I am dynamically loaded.'); | |
} |
OlderNewer