Skip to content

Instantly share code, notes, and snippets.

View leandroembu's full-sized avatar

Leandro Ramos leandroembu

View GitHub Profile
@debxp
debxp / bash-aliases-apt
Last active June 9, 2019 15:37
Meus aliases - apt
# ações cotidianas
alias up='sudo apt update'
alias upl='echo -e "$(apt list --upgradable 2>/dev/null)" | less'
alias upg='sudo apt upgrade'
alias apti='sudo apt install'
# busca pacotes instalados (sem argumentos=todos)
aptinstalled() {
echo ""
list="$(apt list --installed 2>/dev/null)"
@debxp
debxp / wifi-cli-connection.txt
Last active September 4, 2024 13:25
Wifi connection from command line after a Debian minimal install
Create the file 'wpa_supplicant.conf'...
$ sudo nano /etc/wpa_supplicant.conf
Put the following in ti:
network={
ssid="your_wifi_name"
psk="your_wifi_password"
}
@iturgeon
iturgeon / README.md
Last active October 30, 2023 14:06
How to run phpMyAdmin using the built in php webserver

Running phpMyAdmin localy on the built in php server

  1. make sure you have php 5.3+: run php -v
  2. Download phpmyadmin (github or main website)
  3. In the root directory, copy config.sample.inc.php > config.inc.php
  4. Edit config.inc.php, set $cfg['Servers'][$i]['host'] to the ip address of your mysql server (probably localhost or 127.0.0.1)
  5. In the root phpmyadmin directory run php -S localhost:8080
  6. open in your browser: http://localhost:8080
  7. log in by entering some valid credentials (a user you added or the root user)
@mamonu
mamonu / qcow2vdi.sh
Last active September 22, 2024 08:06
convert a qcow2 vm to a VirtualBox vm format
qemu-img convert -O vdi gnome.qcow2 gnome.vdi
#if its a raw image then:
VBoxManage convertdd opnstk.raw VBox.vdi --format VDI
@PurpleBooth
PurpleBooth / README-Template.md
Last active September 22, 2024 04:13
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