Skip to content

Instantly share code, notes, and snippets.

View matjack1's full-sized avatar

Matteo Giaccone matjack1

View GitHub Profile
@vijay-prema
vijay-prema / ubuntu-on-asus-g14.md
Last active June 10, 2024 08:58
Ubuntu on Asus ROG Zephyrus G14 2021

Ubuntu on Asus ROG Zephyrus G14 2021 (Setup guide)

Here is a way to do a robust install of Ubuntu (+ optional Windows 11 dual boot and LUKS encryption) on an Asus laptop, with minimal usable hardware support, without a significant amount of tinkering that may break in future or require frequent technical attention.

In summary, the key thing is to have an up to date kernel, which usually means disabling secure-boot and installing the latest stable (6.0+) using mainline or xanmod, and as well as making sure the latest nvidia driver and dkms is installed.

Specs:

  • Model Asus G14 2021 (GA401QC)
  • AMD R7 5800 8 core 16 thread (onboard Radeon graphics)
  • NVIDIA RTX 3050 4GB (60W +15W boost)
@carlok
carlok / per_il_mondo_di_dopo.md
Last active March 22, 2020 18:37
Per il mondo di dopo

Per il “mondo di dopo”

Il “mondo di prima” l'abbiamo lasciato di sicuro e non sappiamo come sarà quell dopo: qualcosa potrebbe cambiare per sempre, di grande e di piccolo.

Ho provato ad elencare alcune di queste variazioni.

  • Come in Oriente:
    • La stretta di mano, nata nel medioevo per mostrare che non si nascondevano né veleni né pugnali, potrebbe sparire. Vedo saluti, che ora trovo assurdi, con il gomito: un inchino orientale o una mano alzata come per un “ciao” potrebbero andare anche bene ma queste cose non si controllano.
    • Chi indosserà la mascherina per strada non verrà più considerato un ipocondriaco o un autentico malato ma solo una persona di buon senso.
    • Chi starnutirà o si soffierà il naso in pubblico verrà considerato un essere ripugnante.
@nebirhos
nebirhos / 000-Guard::LiveReload README.md
Last active May 19, 2020 10:19
Multi device Guard::LiveReload with Chrome Android
@jbenet
jbenet / simple-git-branching-model.md
Last active June 14, 2024 17:16
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

#!/bin/bash
# 20130130
# This is a fork of the original script, adapted to work as bash installer on a
# pre-deployed Centos6 system. It takes args from bash invocation. It is not yet
# documented and all the following comments are originals from RedHat's guys.
# This is *REALLY* a wip and not usable by anyone without a bit of docs.
# We'll write down something when it will a bit tested and refactorized.
# This script configures a host system with OpenShift components.
@malarkey
malarkey / Contract Killer 3.md
Last active May 24, 2024 23:38
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………

@matjack1
matjack1 / mt_bot.rb
Created October 25, 2012 20:17
mt_bot
require 'rubygems'
require 'mechanize'
domain = ''
email = ''
password = ''
deploy_domain = ''
deploy_server_id = ''
app_name = ''
new_domain = "{app_name}.welaika.com"
@tsmango
tsmango / deploy.rb
Last active November 6, 2015 21:22
Rails Rumble 2013 - Official Linode StackScript - Capistrano Deployment Recipe
require 'bundler/capistrano'
# This capistrano deployment recipe is made to work with the optional
# StackScript provided to all Rails Rumble teams in their Linode dashboard.
#
# After setting up your Linode with the provided StackScript, configuring
# your Rails app to use your GitHub repository, and copying your deploy
# key from your server's ~/.ssh/github-deploy-key.pub to your GitHub
# repository's Admin / Deploy Keys section, you can configure your Rails
# app to use this deployment recipe by doing the following:
@alessandro-fazzi
alessandro-fazzi / colorize_bash_echo.sh
Created July 18, 2012 13:12
Unix notes. Personal notes about intresting sysadmin's operations
# Text color variables
txtred=$(tput setaf 1) #Red
txtgre=$(tput setaf 2) # Green
txtyel=$(tput setaf 3) # Yellow
txtblu=$(tput setaf 4) # Blue
txtbol=$(tput bold) # Bold
txtres=$(tput sgr0) # Reset
# Helper feedback functions
function info() {
@dwayne
dwayne / 00-install-on-64-bit-ubuntu-14.04.md
Last active January 12, 2024 17:48
Installing node and npm on Ubuntu 12.04 LTS and 64-bit Ubuntu 14.04 LTS.
  1. Navigate to http://nodejs.org/download/ and on the Linux Binaries (.tar.gz) row click to download the 64-bit version of the current latest release.

  2. Say you've downloaded node-v0.10.7-linux-x64.tar.gz into the Downloads directory. Then, open the terminal and type the following:

$ cd ~/Downloads
$ mkdir -p ~/local/node
$ tar xzf node-v0.10.7-linux-x64.tar.gz -C ~/local/node --strip-components=1
$ echo '# Node Enviroment Setup' >> ~/.bashrc
$ echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.bashrc