Skip to content

Instantly share code, notes, and snippets.

View Syzygianinfern0's full-sized avatar
:dependabot:
sudo apt-get rekt

S P Sharan Syzygianinfern0

:dependabot:
sudo apt-get rekt
View GitHub Profile
@Syzygianinfern0
Syzygianinfern0 / README-Template.md
Created March 4, 2019 15:19 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@Syzygianinfern0
Syzygianinfern0 / clone.py
Created June 19, 2020 16:31
Clone Private Repos on Headless Machines
import os
from getpass import getpass
import urllib
user = input('User name: ')
password = getpass('Password: ')
password = urllib.parse.quote(password) # your password is converted into url format
repo_name = input('Repo url: ').split("https://")[1] # https://github.com/Syzygianinfern0/WAV2TEXT.git
cmd_string = 'git clone https://{0}:{1}@{2}'.format(user, password, repo_name)

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r <session_name>
<mxfile host="app.diagrams.net" modified="2020-10-16T04:53:57.971Z" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36" etag="0v1r6DdWemNUy2TWQ8kH" version="13.8.0" type="device"><diagram id="iGWFmQ01a8dNWYouVAQU" name="Page-1">7V1Zc5tIEP41qvI+WAWMuB5t+chuxVmX5a3s60iMJMocCqDYzq/fGW5o7GizgpaHTSUR6kECff31TF/AhMz9l9uI7rZ3ocO8iaY4LxNyNdE0TbdV/iIkr5nENGeZYBO5TiZSK8HC/cFyoZJL967D4saOSRh6ibtrCldhELBV0pDRKAqfm7utQ6951B3dMCBYrKgHpV9dJ9nmUtWwq4FPzN1s80NbmpEN+LTYOf8l8ZY64XNNRK4nZB6FYZJt+S9z5gnwClyyz928MVqeWMSC5JAP/EHMR/vPL/qD/feD42+CT+QyObet7Gu+U2+f/+L8bJPXAoLnrZuwxY6uxPtnruYJudwmvsffqXyTxrsM+LX7wvixLkO+q5sIfZsKfwvPMz/17yxK2EtNlJ/3LQt9lkSvfJd89LzAMCeRVpDouVKJaeX7bGvaKIU0p8Gm/O4KKb6Rg/UvgFN/jlsU7gNHIJLC9BMU167nzUMvjNLPEocya73i8jiJwidWGzFWFluuj4MraeE6UxSAaxess75Q1QCqi+njlEvmoe/HUwAx/51JE8cmXkEYsBa4uYh67ibgb1ccPcbllwI1l9v9RT7gu44jDtOpuEq1R2I40IR6mCa0vjSh98xvnVnOrIvflrYkhnEcVFVdb6Bq2HDeKJEehOAGgPXK3bgJFR9ccOKlG/dRuGJxHEaxOIXA4f9f7HYeZ2fihoEQnvN/1/P7uVC/ckZ+y0V3wlQutzR+opG
@Syzygianinfern0
Syzygianinfern0 / tmux-cheatsheet.markdown
Created August 30, 2020 04:25 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Syzygianinfern0
Syzygianinfern0 / post_it.py
Created February 21, 2021 12:02
Post to SXCU.NET
# Head over to https://sxcu.net/
# Create a subdomain
# Run script
# Replace returned sxcu.net base-url by the one you requested
# Profit
import os
import pprint
import requests
@Syzygianinfern0
Syzygianinfern0 / extract.sh
Created March 1, 2021 16:10
Extract Multipart Zips
zip -s- FILE_NAME.zip -O COMBINED_FILE.zip
@Syzygianinfern0
Syzygianinfern0 / clone.sh
Created March 1, 2021 16:11
Rclone Ignores
rclone check -P --drive-server-side-across-configs \
--log-file=/home/user/Documents/Random/rclone_logs/"$(date +"%Y_%m_%d_%I_%M_%p").log" \
--log-level INFO \
--exclude-if-present rcignore \
--exclude-from "/mnt/nvme0n1p5/Studies/Semester 6/rcignore-list" \
"/mnt/nvme0n1p5/Studies/Semester 6" "__quack:Studies/Semester 6/"
@Syzygianinfern0
Syzygianinfern0 / .p10k.zsh
Created March 1, 2021 16:53
Powerline Configs
# Generated by Powerlevel10k configuration wizard on 2020-09-27 at 01:18 IST.
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 47471.
# Wizard options: nerdfont-complete + powerline, small icons, unicode, lean, 12h time,
# 2 lines, dotted, left frame, light-ornaments, sparse, many icons, fluent,
# transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with lean prompt style. Type `p10k configure` to generate
# your own config based on it.
#
@Syzygianinfern0
Syzygianinfern0 / memoizer.py
Last active April 30, 2021 14:44
Memoization in Python
import time
import numpy as np
class Memoize:
def __init__(self, fn):
self.fn = fn
self.memo = {}