Skip to content

Instantly share code, notes, and snippets.

View Aldo-f's full-sized avatar
🐛
Search and destroy.

Aldo Aldo-f

🐛
Search and destroy.
  • Creamy Coding
  • Ghent Belgium
View GitHub Profile

Keybase proof

I hereby claim:

  • I am aldo-f on github.
  • I am aldof (https://keybase.io/aldof) on keybase.
  • I have a public key ASA8SgAEs2HT-SELClBDPVgcYUnXTg3AMWKSXfJjt1uAowo

To claim this, I am signing this object:

@Aldo-f
Aldo-f / StartActivity.java
Created April 6, 2017 11:36
Enter name to continue
/*
* OnClickListener will store the name as entered in the EditText view, in a String,
* then it will send the string to the next Activity for further use.
*
* Player won't proceed without entering a name;
* */
namesField.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
0x11425fb924c0e20CBc412a72255D7BaA04D405C4
@Aldo-f
Aldo-f / center-well-with-push-footer.markdown
Created May 3, 2018 10:51
Center well with push footer
@Aldo-f
Aldo-f / fix for contextual-links-region
Created January 5, 2019 17:35
Minor fix for contextual-links-region
@Aldo-f
Aldo-f / Block ads on Stremio
Created August 17, 2019 09:35
Block ads on Stremio using windows hosts file
#C:\Windows\System32\drivers\etc\hosts
0.0.0.0 market.moonicorn.network
@Aldo-f
Aldo-f / components.my-child.js
Last active October 15, 2019 14:31
Get data from child
import Ember from 'ember';
export default Ember.Component.extend({
didReceiveAttrs() {
//debugger;
this._super(...arguments);
}
});
@Aldo-f
Aldo-f / .lando.yml
Last active December 4, 2021 11:51 — forked from MatthieuScarset/.lando.yml
Correct settings for XDebug + VSCode + Lando (+3.0)
# Lando version is at least +3.0
name: drupal-nine
recipe: drupal9
services:
appserver:
webroot: web
xdebug: debug
config:
php: .vscode/php.ini
@Aldo-f
Aldo-f / toggle_xdebug.sh
Last active February 3, 2024 07:37
Toggle Xdebug - Apache
#!/bin/bash
# Switch Xdebug state for different PHP configurations
PHP_VERSIONS=($(ls /etc/php/ | grep -E '^[0-9]+\.[0-9]+$'))
PHP_SAPI=("cli" "fpm") # Add more SAPIs if needed
APACHE_RESTART_COMMAND="sudo /etc/init.d/apache2 restart"
# Determine the initial Xdebug state based on the first loop
for version in "${PHP_VERSIONS[@]}"; do
@Aldo-f
Aldo-f / install_php_modules.sh
Last active March 6, 2024 14:11
install_php_modules.sh
#!/bin/bash
# Update package lists
sudo apt-get update
# Upgrade installed packages
sudo apt-get upgrade -y
# Fetch all installed PHP versions
php_versions=$(ls /etc/php)