Skip to content

Instantly share code, notes, and snippets.

View 4lhc's full-sized avatar
🤖

Sreejith Sasidharan 4lhc

🤖
View GitHub Profile
@4lhc
4lhc / main.launch
Last active September 8, 2021 19:26
main.launch
<?xml version="1.0"?>
<launch>
<node pkg="aruco_ros" type="marker_publisher" name="aruco_marker_publisher">
<remap from="/camera_info" to="/camera_image/color/camera_info" />
<remap from="/image" to="/camera_image/color/image_raw" />
<param name="image_is_rectified" value="false"/>
<param name="marker_size" value="0.05"/>
<param name="reference_frame" value="/world"/>··
<param name="camera_frame" value="/camera_link"/>
"""
Plot images from ImageDataGenerator
Author: https://github.com/4lhc
"""
from matplotlib import pyplot as plt
import matplotlib.image as mpimg
import numpy as np
#!/bin/bash
# Author: Sreejith S (https://github.com/4lhc)
# Sat 02 Jan 2021 16:52:04 IST
# Temp fix for freecad libnglib.so: cannot open shared object file: No such file or directory
# On ubuntu20.04, Freecad 0.18.4
# Based on https://forum.freecadweb.org/viewtopic.php?f=3&t=40661#p345544
# sudo apt-get install "libnglib-6.2.*" netgen
@4lhc
4lhc / newsboat-reload.service
Last active December 30, 2020 05:56
Systemd Service/Timer Example
# Author: Sreejith S
[Unit]
Description=Reload newsboat
[Service]
Type=oneshot
ExecStart=/usr/bin/newsboat -x reload
SystemCallArchitectures=native
@4lhc
4lhc / chuck_norris.py
Created December 6, 2020 02:41
Fetch Chuck Norris jokes
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# norris.sh
#
# author : Sreejith S
# email : echo $(base64 -d <<< NDQ0bGhjCg==)@gmail.com
# date : Sun 26 Apr 2015 23:24:35 IST
# ver :
#!/usr/bin/env python
# coding: utf-8
#Moved to repo: https://github.com/4lhc/internet_profundity
import urllib.request
import urllib.error
import urllib.parse
from bs4 import BeautifulSoup, SoupStrainer
import re
#!/usr/bin/env python
# part of https://github.com/4lhc/ROS/tree/master/learning_ws/src/x1_miband_control
import rospy
from MiBand_HRX.base import MiBand2
from MiBand_HRX.constants import ALERT_TYPES
from threading import Thread
from generic_robot import Robot
class MiBandController():
#!/usr/bin/env python3
#
# The_Gutenberg_Internet_analogy.py
#
# author : Sreejith S
# email : echo $(base64 -d <<< NDQ0bGhjCg==)@gmail.com
# date : Sun 28 Apr 2019 19:57:28 IST
# ver :
'''
@4lhc
4lhc / unwrap.ipynb
Created April 7, 2019 06:37
unwrap.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@4lhc
4lhc / wadb_convert.sh
Last active December 22, 2021 21:03
A bash script to create whatsapp buddylist for Pidgin & bitlbee from wa.db, which can be exported using Listhandler plugin
#!/bin/bash
#
# wadb_convert.sh
#
# author : https://gist.github.com/4lhc
# email : echo $(base64 -d <<< NDQ0bGhjCg==)@gmail.com
# date : Wed 04 Jun 2014 19:01:03 IST
# ver : 1.0.0
# converts WhatsApp's wa.db database to buddylist that can be imported