Skip to content

Instantly share code, notes, and snippets.

View aminya's full-sized avatar
🤖

Amin Yahyaabadi aminya

🤖
View GitHub Profile
@brunoais
brunoais / proton
Last active January 23, 2024 18:48 — forked from thingsiplay/proton
Proton script
#!/bin/bash
# Execute Windows programs with Proton from Steams installation folder, without
# starting Steam client.
#
# 1. Create a directory for Proton environment to run in. As an example make a
# folder "proton" in your home directory. This folder must exist in order
# to make Proton work.
#
# 2. Point the variable "env_dir" in this script to that folder or...
@UziTech
UziTech / .gitconfig
Last active March 16, 2021 15:42
git aliases
[alias]
# rebase current branch with remote branch
# git up [remote=upstream] [branch=master]
up = !"f() {\
if [ $# -lt 1 ];\
then remote=upstream;\
else remote=$1;\
fi;\
if [ $# -lt 2 ];\
then repo=master;\
@devlifeX
devlifeX / .bashrc
Last active December 25, 2020 15:50
Append These code to your .bashrc and make your life easier!
# Docker section ################################################
# - Stop all running docker containers
function stopAll {
containers=$(docker ps -qa)
if [ ! -z "$containers" ]
then
echo $containers | xargs docker container rm -f $1
else
echo "No Containers for remove!" | grep -e "."
@GuillaumeDua
GuillaumeDua / 13_valuable_things_I_learned_using_CMake.md
Last active April 7, 2024 09:28
13 valuable things I learned using CMake

13 valuable things I learned using CMake

Author : Dua Guillaume
Date : 04-26-2020

Requirement : A first experience with CMake

Intro

As a modern C++ specialist, my job is to focus on software development, from a performance and quality perspective.

using Base.Threads
using LoopVectorization
using BenchmarkTools
const None = [CartesianIndex()]
function distances(data1, data2)
data1 = deg2rad.(data1)
data2 = deg2rad.(data2)
lat1 = @view data1[:, 1]
@OmegaRogue
OmegaRogue / Directory_Prompts_WT_Uninstall.reg
Last active October 9, 2023 02:46
Registry script to add windows terminal with cmd, powershell and ubuntu profiles to the explorer context menu with normal and admin permissions. To use, replace <Username> with your username
Windows Registry Editor Version 5.00
; Windows terminal
[-HKEY_CLASSES_ROOT\Directory\shell\MenuWindowsTerminal]
[-HKEY_CLASSES_ROOT\Directory\background\shell\MenuWindowsTerminal]
[-HKEY_CLASSES_ROOT\Directory\LibraryFolder\shell\MenuWindowsTerminal]
using PyCall
using LinearAlgebra
using Statistics
using StatsBase
using BenchmarkTools
using Distances
# import the same data
data = pyimport("sklearn.datasets")
@IanColdwater
IanColdwater / twittermute.txt
Last active April 22, 2024 17:26
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@pfitzseb
pfitzseb / keyboardmacro.jl
Created June 16, 2019 07:46
keyboard macro prototype
using REPL
using REPL.LineEdit
macro keyboard()
quote
debugprompt(@__MODULE__, Base.@locals)
println()
end
end
@lski
lski / wslpath.ps1
Created April 6, 2019 13:25
wslpath wrapper for using directly in powershell
<#
.SYNOPSIS
Converts windows path into a linux path and vice versa.
.DESCRIPTION
Converts windows path into a linux path and vice versa. Use WSL under the hood, so needs to be installed.
See docs wslpath docs for more information.
.PARAMETER path
The path to convert