Skip to content

Instantly share code, notes, and snippets.

Get £50 Free Miles Credit - ByMiles.co.uk
https://bymiles.co.uk/refer/SV13NRE
@sachin-handiekar
sachin-handiekar / docker_cmds.md
Created November 13, 2019 19:20
Docker Powershell Windows Command

Windows Powershell

  1. Stop all containers

docker ps -aq | foreach {docker stop $_}

  1. Remove all containers

docker ps -aq | foreach {docker rm $_}

Get £50 as credit when using the link - https://www.bulb.me/sachinh9801
@sachin-handiekar
sachin-handiekar / gist:1b0a6fe099b47cfff97aca9f1fe7f4f3
Created April 23, 2019 20:17
EIS Error NPM Package Installation
sudo rm -rf /usr/local/lib/node_modules/npm
brew reinstall node
sudo chown -R $(whoami) ~/.npm
sudo chown -R $(whoami) /usr/local/lib
sudo chown -R $(whoami) /usr/local/bin
npm install -g npm@latest
https://unsplash.it/2500/1600/?random
@sachin-handiekar
sachin-handiekar / installMPG123.sh
Created March 15, 2016 13:12
Sample script to install mpg123
#!/bin/sh
set -ex
tar -jxvf mpg123-1.23.2.tar.bz2
cd mpg123-1.23.2 && ./configure --prefix=/usr && make && sudo make install
before_install:
- chmod +x installMPG123.sh
- ./installMPG123.sh
@sachin-handiekar
sachin-handiekar / sample.yml
Created March 15, 2016 13:08
Installing custom cmake on Travis CI
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="http://www.cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz"
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
fi
@sachin-handiekar
sachin-handiekar / .travis.yml
Created March 13, 2016 12:55
C++ Sample travis.yml file
sudo: required
before_install:
- sudo apt-get install libao-dev
- sudo apt-get install libcurl4-openssl-dev
- chmod +x installMPG123.sh
- ./installMPG123.sh
# Enable C++ support
language: cpp
@sachin-handiekar
sachin-handiekar / OneLinePrintSystemProp.java
Created January 13, 2016 14:26
Printing System Properties
System.getProperties().list(System.out);