Skip to content

Instantly share code, notes, and snippets.

View Robokishan's full-sized avatar

Kishan Joshi Robokishan

View GitHub Profile
@Robokishan
Robokishan / raspberry-pi-chroot-armv7-qemu.md
Created February 5, 2021 07:15 — forked from htruong/raspberry-pi-chroot-armv7-qemu.md
Chroot into Raspberry Pi ARMv7 Image with Qemu
# raspbian stretch lite on ubuntu

### You can write the raspbian image onto the sd card,
# boot the pi so it expands the fs, then plug back to your laptop/desktop
# and chroot to it with my script 
# https://gist.github.com/htruong/7df502fb60268eeee5bca21ef3e436eb
# sudo ./chroot-to-pi.sh /dev/sdb
# I found it to be much less of a pain in the ass and more reliable
# than doing the kpartx thing
@Robokishan
Robokishan / Dockerfile
Created April 20, 2020 06:57
Docker file for phytec setup docker
FROM gmacario/build-yocto
RUN mkdir yocto
ADD volume /home/build/yocto
RUN sudo apt-get update
RUN sudo apt-get install -y nano vim
RUN wget ftp://ftp.phytec.de/pub/Software/Linux/Yocto/Tools/phyLinux
RUN chmod a+x phyLinux
RUN sudo chown -R build:build yocto
RUN sudo chmod 777 yocto
RUN ls -la /home/build
@Robokishan
Robokishan / rename.py
Created March 2, 2020 08:21
rename files according to its symlink
import os
import argparse
parser = argparse.ArgumentParser(description='Rename files to its symlink')
parser.add_argument('--dir',default=None, type=str)
parser.add_argument('--file', default=None ,type=str)
parser.add_argument('--files', default=None ,nargs='*')
args = parser.parse_args()
runForDir = False
runForFile = False
runForMultipleFiles = False
@Robokishan
Robokishan / Dockerfile
Last active April 20, 2020 06:35
dockerfile for compiling the yocto custom os
FROM gmacario/build-yocto
RUN sudo apt-get update
RUN sudo apt-get upgrade -y
RUN sudo apt-get install -y nano vim
RUN wget ftp://ftp.phytec.de/pub/Software/Linux/Yocto/Tools/phyLinux
RUN chmod a+x phyLinux
@Robokishan
Robokishan / Dockerfile
Last active August 15, 2019 16:44
Docker file for nodemon and fish pre installed so that easily access all linux flexibilty very easily
FROM node:10
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y fish
COPY package*.json ./
COPY . .
RUN npm install
RUN npm install -g nodemon
EXPOSE 8080/tcp
CMD ["npm","start"]
@Robokishan
Robokishan / postman-deb.sh
Created August 8, 2019 17:59 — forked from SanderTheDragon/postman-deb.sh
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
script=`basename "$0"`
if [ $# -gt 0 ] && [ "$1" = "-e" ]; then
e="-e"
fi
echo "Removing old Postman tarballs"
rm -f $(ls Postman*.tar.gz)
@Robokishan
Robokishan / Remote API via daemon.json.md
Created August 24, 2018 09:20 — forked from kekru/Remote API via daemon.json.md
Enable Docker Remote API via daemon.json