Skip to content

Instantly share code, notes, and snippets.

View tassoman's full-sized avatar
🪲
is bugging things

Tassoman tassoman

🪲
is bugging things
View GitHub Profile
@GMMan
GMMan / S90overclock
Created January 25, 2021 20:25
Overclock script for Densha de Go! Plug & Play
#!/bin/sh -e
start() {
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
}
stop() {
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_boot_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_boot_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
@mrcomoraes
mrcomoraes / clear_cache_MS_Teams.sh
Last active May 10, 2024 12:07
Clear cache Microsoft Teams on Linux
#!/bin/bash
# This script cleans all cache for Microsoft Teams on Linux
# Tested on Ubuntu-like, Debian by @necrifede, Arch Linux by @lucas-dclrcq and Manjaro with flatpak by @danie1k. Feel free to test/use in other distributions.
# Tested Teams via snap package.
# Tested Teams via flatpak package.
#
# How to use in terminal:
# ./clear_cache_MS_Teams.sh ( deb-stable | deb-insider | snap | flatpak )
# or
@heri16
heri16 / README.md
Last active March 23, 2022 04:02
Download / Record Youtube Live stream
@pirate
pirate / docker-compose-backup.sh
Last active October 9, 2025 12:11
Backup a docker-compose project, including all images, named and unnamed volumes, container filesystems, config, logs, and databases.
#!/usr/bin/env bash
### Bash Environment Setup
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
# set -o xtrace
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
@laacz
laacz / php-fpm-apache-on-wsl.md
Last active July 27, 2023 15:48
PHP 7.x (FPM), Apache2 on WSL

PHP-FPM, Apache with *.localhost virtualhosts on WSL

This will help installing simple PHP stack with *.localhost domains on Windows Subsystem for Linux in Windows 10. You'll have to add sudo where appropriate.

PHP 7.x (FPM)

You'll need to add an unofficial repository by awesome Ondřej Surý, but it's been stable for years and can be used in production.

sudo apt-get install -y python-software-properties
@willmendesneto
willmendesneto / gist:4550897
Last active December 11, 2015 05:18
Inserindo Twig Template Engine no Codeigniter via Composer Localização dos arquivos: Twig.php => application/libraries/Twig.php
<?php if (!defined('BASEPATH')) {exit('No direct script access allowed');}
/**
*
* Arquivo inserido em application/libraries/Twig.php
*
*/
class Twig {
/**
* Referência da instância da classe CodeIgniter