Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Joshua Arulsamy jarulsamy

🎯
Focusing
View GitHub Profile
@jarulsamy
jarulsamy / cloudSettings
Created Jul 20, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-07-20T03:06:02.042Z","extensionVersion":"v3.4.3"}
@jarulsamy
jarulsamy / terraria-backup.py
Created Jan 3, 2020
A Python script to compress and upload terraria server worlds to google drive.
View terraria-backup.py
#!/usr/bin/python3
import enum
import logging
import subprocess
import time
import os
logging.basicConfig(filename="/home/terraria/terraria-backup.log", filemode="a",
format='%(asctime)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S', level=logging.DEBUG)
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 / autoexec.cfg
Last active Dec 25, 2019
Custom Auto Exec for CSGO
View autoexec.cfg
// Joshua Arulsamy
// CS:GO config
// Updated 11/29/2019
// Crosshair
cl_crosshaircolor 3
cl_fixedcrosshairgap -2.5
cl_crosshairstyle 1
hud_showtargetid 1
@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>