Skip to content

Instantly share code, notes, and snippets.

View Jarmos-san's full-sized avatar
👉
Helping Entrepreneurs with Their Technical Business Endeavours

Somraj Saha Jarmos-san

👉
Helping Entrepreneurs with Their Technical Business Endeavours
View GitHub Profile
@usr-ein
usr-ein / Dockerfile
Last active June 26, 2024 15:20
Optimal multistaged Dockerfile for poetry
# syntax=docker/dockerfile:1
# Keep this syntax directive! It's used to enable Docker BuildKit
# Based on https://github.com/python-poetry/poetry/discussions/1879?sort=top#discussioncomment-216865
# but I try to keep it updated (see history)
################################
# PYTHON-BASE
# Sets up all our shared environment variables
################################
@tan86
tan86 / init.lua
Last active January 10, 2022 01:58
----[[ Helpers ]]----
vim.cmd 'packadd paq-nvim'
local lsp = require 'lspconfig'
local paq = require 'paq-nvim'.paq
local scopes = {o = vim.o, b = vim.bo, w = vim.wo}
local function map(mode, lhs, rhs, opts)
local options = {noremap = true, silent = true}
if opts then options = vim.tbl_extend('force', options, opts) end
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
@andrefcdias
andrefcdias / setup_git.sh
Last active March 12, 2024 16:50
Setup GitHub's SSH and GPG keys for WSL and ZSH environments
#!/bin/bash
# For WSL environments only
npm install --global yarn
password=""
echo "Please provide your Git commit info"
read -p "Full name: " fullName
read -p "Email: " email
@andrefcdias
andrefcdias / setup_dev_environment-part-2_DEPRECATED.ps1
Last active March 14, 2022 14:13
To be run after activation of WSL features and reboot (deprecated)
#Requires -RunAsAdministrator
<# Coolest development environment setup script in the block (Part 2)
⚠️ WARNING: This script was created to setup WSL before the new easy installation and was not tested under more recent versions of Windows 11.
Please follow my other guide that uses the new modern installations https://gist.github.com/andrefcdias/e1435ae4458024ece36a3b93e3cdd24f
---------------------------------------------------------
What can I expect from this script?
@andrefcdias
andrefcdias / setup_dev_environment_DEPRECATED.ps1
Last active March 14, 2022 14:13
Making Windows great for Development (deprecated)
#Requires -RunAsAdministrator
<# Coolest development environment setup script in the block (Part 1)
⚠️ WARNING: This script was created to setup WSL before the new easy installation and was not tested under more recent versions of Windows 11.
Please follow my other guide that uses the new modern installations https://gist.github.com/andrefcdias/e1435ae4458024ece36a3b93e3cdd24f
---------------------------------------------------------
Before running the script:
{
"useTaobaoRegistry": false,
"presets": {
"vue-project-template": {
"useConfigFiles": true,
"plugins": {
"@vue/cli-plugin-babel": {},
"@vue/cli-plugin-typescript": {
"classComponent": true,
"useTsWithBabel": true
@KROSF
KROSF / taskfile.schema.json
Created October 24, 2020 12:58
Taskfile YAML Schema
{
"$schema": "http://json-schema.org/draft-07/schema",
"description": "Taskfile YAML Schema",
"oneOf": [
{
"type": "object",
"properties": {
"version": {
"description": "Specify the Taskfile format that this file conforms to.",
"anyOf": [
@mattetti
mattetti / newWindowsMachine.sh
Last active April 20, 2024 11:21
bash script to run from WSL to setup Windows and Linux from the linux side. To run: `wget https://gist.githubusercontent.com/mattetti/9807e2a1e654a7c00bb9c13f340fc39f/raw/ -O newMachineSetup.sh` and then `bash newMachineSetup.sh`
#!/bin/bash
export WINHOME=$(wslpath "$(wslvar USERPROFILE)")
# github username is needed to pull down the dot files
export GITHUBUSERNAME="mattetti"
# wininstall does an install using winget and checks that it went well
function wininstall {
echo "Installing $1";
cmd.exe /C winget.exe install -e $1;
@fardjad
fardjad / debian-sid-with-systemd-on-wsl2.md
Last active June 28, 2024 04:15
[Debian sid with systemd on WSL2] Instructions for running Debian sid with systemd on WSL2 #windows #wsl2 #debian #sid #linux
@WTFox
WTFox / redditr.py
Created June 19, 2020 05:06
Python script to automate reddit posts
import time
import praw
USERNAME = ""
PASSWORD = ""
CLIENT_ID = ""
CLIENT_SECRET = ""