Skip to content

Instantly share code, notes, and snippets.

View gema-arta's full-sized avatar
:octocat:
Octocating

gema-arta gema-arta

:octocat:
Octocating
View GitHub Profile
@motorailgun
motorailgun / idea.md
Last active April 11, 2025 11:36
Installing Windows and Linux into the same partition

Installing Windows and Linux into the same partition

But WHY?

There was a reddit post about installing Arch on NTFS3 partition. Since Windows and Linux doesn't have directories with same names under the /(C:\), I thought it's possible, and turned out it was actually possible.
If you are not familiar to Linux, for example you've searched on Google "how to dualboot Linux and Windos" or brbrbr... you mustn't try this. This is not practical.

Pre-requirements

  • UEFI system
  • Any Linux live-boot CD/DVD/USB... with Linux kernel newer than 5.15
  • Windows installer USB
@hooke007
hooke007 / ScaleModels.json
Last active February 17, 2025 02:51
[Magpie] 示例缩放配置
[
// 适用版本 Magpie release v0.9.1
// 关于子选项数值的具体含义请阅读 https://github.com/Blinue/Magpie/wiki/自定义缩放配置
// 调用单项着色器的示例
{"name":"ACNet","effects":[
{"effect":"ACNet"},
]},
@gema-arta
gema-arta / vpn.sh
Created August 31, 2021 19:20 — forked from bigonese/vpn.sh
Script to start sstp-client on a Mac, connecting to Microsoft VPN, with ability to use Apple's KeyChain
#!/bin/bash
SERVICE_NAME='my-example-vpn'
SERVICE_URL='my-example-vpn.com'
if [[ ${#USER} > 1 ]]
then
read -p "Log in as ${USER}? [y/n] " LIA
else
LIA = 'n'
@lucasburlingham
lucasburlingham / catalog.sh
Last active May 15, 2025 20:48
File Scan and Tracker
#!/bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[1;34m'
NC='\033[0m'
$CAT_DIR
echo -e "------- ${GREEN}RENAMING FILES WITH SPACES${NC} --------"
@BreadFish64
BreadFish64 / fsr_easu_expanded.comp
Created July 16, 2021 22:36
AMD FSR mpv shaders
//!DESC FSR_EASU
//!HOOK MAINPRESUB
//!BIND HOOKED
//!WIDTH OUTPUT.w
//!HEIGHT OUTPUT.h
//!COMPUTE 8 8
#extension GL_GOOGLE_include_directive : enable
#define SAMPLE_EASU 1
@TBog
TBog / !readme.md
Last active March 7, 2024 00:04
Chage Garuda Arch linux distribution zram configuration

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

#!/usr/bin/python3.8
# This script manages 5 related tasks.
# 1. creating, setting up, and mounting a new zram device
# 2. Creating, and setting up a new cgroup
# 3. Creating a detached screen instance in the cgroup (the lifetime of the script is tied to this screen instance)
# 4. Flushing idle and incompressible pages to a zram backing device, suspending the screen process as needed.
# 5. Cleanly closing down the above if zram has an issue or when the screen terminates on its own.
__license__="""
# run with
# bash <(curl -s https://gist.githubusercontent.com/iampeterbanjo/f1c9931002f5a939464c172fed6f96cb/raw/520cee811a47714291394dec5fb4352683a17158/install-modprobe-ubuntu-kernel.sh)
apt-get update
apt-get install build-essential libssl-dev
apt-get install -y libssl-dev
apt-get install -y zfsutils-linux # will fail on dkms
# Determine versions
arch="$(uname -m)"
@tuantmb
tuantmb / Install_checkpoint_VPN_Client_in_Ubuntu_19.md
Last active December 21, 2024 12:10
Install Checkpoint VPN client in Ubuntu 19.x
  1. Download your install script from your vpn website See Download SSL Network Extender manual installation in the right pane on your vpn.{your-company.com} (replace with your company vpn url) ==> click Download command line SNX for Linux (usually get a script name snx_install.sh but it can change because of your company's settings)
If you don't see any similar section on your vpn  website, 
DON'T try to search and get script from interne.
==> look up in checkpoint website for safe and avoid viruses or contact to your administrators.