Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Joshua Arulsamy jarulsamy

🎯
Focusing
Block or report user

Report or block jarulsamy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View smb.conf
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
@jarulsamy
jarulsamy / makefile
Created Sep 30, 2019
Sample Makefile for C++
View makefile
# the compiler: gcc for C program, define as g++ for C++
CC = g++
CFLAGS = -g -Wall
# the build target executable:
TARGET = `NAME_OF_MAIN_FILE`
all: $(TARGET)
@jarulsamy
jarulsamy / .vimrc
Created Sep 29, 2019
Josh's Custom Vim Config
View .vimrc
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
Plugin 'altercation/vim-colors-solarized'
@jarulsamy
jarulsamy / autoexec.cfg
Last active Aug 21, 2019
Custom Auto Exec for CSGO
View autoexec.cfg
// CS:GO config
// Updated 8/21/2019
// Rates
rate "786432" // max rate, lower if having network issues
cl_cmdrate "128"
cl_updaterate "128"
cl_interp "0.0"
cl_interp_ratio "1"
cl_interpolate "1"
@jarulsamy
jarulsamy / cloudSettings
Last active Nov 17, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-11-17T18:58:13.203Z","extensionVersion":"v3.4.3"}
@jarulsamy
jarulsamy / scribbler.py
Created Dec 10, 2018
Essential movement portions of scribbler2 robot ported to python3.
View scribbler.py
import time
import serial
import threading
from past.utils import old_div
class commands(object):
SOFT_RESET = 33
GET_ALL = 65
GET_ALL_BINARY = 66
GET_LIGHT_LEFT = 67
@jarulsamy
jarulsamy / install.bat
Created May 14, 2018
Custom install script for myro and prereq
View install.bat
cd /d %0\..
msiexec /i python-2.4.4.msi
pyserial-2.2.win32.exe
IF NOT EXIST %SystemRoot%\System32\mfc71.dll copy /Y mfc71.dll %SystemRoot%\System32\
myro-2.9.5.win32.exe
copy /Y snack\tkSnack.py c:\Python24\Lib\
copy /Y misc\config-extensions.def c:\Python24\Lib\idlelib\
copy /Y misc\ScriptBinding.py c:\Python24\Lib\idlelib\
pause
@jarulsamy
jarulsamy / livecam.py
Created Mar 27, 2018
Always running script on a Raspberry pi to create a webserver with the Camera
View livecam.py
import io
import picamera
import logging
import socketserver
from threading import Condition
from http import server
PAGE="""\
<html>
<head>
You can’t perform that action at this time.