Skip to content

Instantly share code, notes, and snippets.

//echo varible value
eval $${varible_name}
@supun19
supun19 / aws
Created November 9, 2017 11:16
M
@supun19
supun19 / README.md
Created April 28, 2018 02:12 — forked from nicerobot/README.md
Mac OS X uninstall script for packaged install of node.js

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
function getItem(){
const params = {
TableName: "",
Key:{
id: ""
},
ProjectionExpression:"#role",
ExpressionAttributeNames:{
'#role':'role'
}
Table table = dynamoDB.getTable("Table Name");
Map<String, String> consultee = new HashMap<>();
UpdateItemSpec updateItemSpec = new UpdateItemSpec().withPrimaryKey("eventId",eventId)
.withUpdateExpression("set #consultees = list_append(if_not_exists(consultees, :empty_consultees), :consultees) , #url = :url")
.withNameMap(new NameMap().with("#consultees", "consultees").with("#url","url"))
.withValueMap(new ValueMap().withList(":consultees", Arrays.asList(consultee)).withList(":empty_consultees", Arrays.asList()).withString(":url",url)).withReturnValues(ReturnValue.ALL_NEW);
UpdateItemOutcome outcome = table.updateItem(updateItemSpec);
# serverless.yml
service:
name: beekeeper-serverless
frameworkVersion: 1.23.0
plugins:
- serverless-plugin-split-stacks
- serverless-plugin-custom-roles
@supun19
supun19 / screenrecording.txt
Last active August 1, 2018 08:36 — forked from keepitsimple/gist:a0aa7a2e10ab930d741d
Ubuntu 14.04 install Xvfb
# Dependencies to make "headless" chrome/selenium work:
sudo apt-get -y install xvfb gtk2-engines-pixbuf
sudo apt-get -y install xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable
echo "Starting X virtual framebuffer (Xvfb) in background..."
Xvfb -ac :99 -screen 0 1280x1024x16 &
export DISPLAY=:99
mvn -U package -DskipTests -Dassembly.skipAssembly=false
./jicofo.sh --host=localhost --domain=czmeet.meetrix.io --secret=@4wt1rUl --user_domain=auth.czmeet.meetrix.io --user_name=focus --user_password=1234
======================
build xcode project
cd IXCSoftswitch
mkdir build
cd build
cmake -G Xcode ..
======================
fix dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper (>= 9)
https://github.com/sipwise/rtpengine/issues/421