Skip to content

Instantly share code, notes, and snippets.

@Jatapiaro
Jatapiaro / xmodmap.sh
Created July 2, 2025 17:58
Match macOS commands on Linux
#!/bin/bash
remove control = Control_L
remove control = Control_R
remove mod4 = Control_L
remove mod4 = Super_L
remove mod4 = Super_R
keycode 115 = End
keycode 133 = Control_L
keycode 134 = Super_R
add control = Control_L
@Jatapiaro
Jatapiaro / paste_something.sh
Created July 2, 2025 16:58
Paste Something
echo "qwerty" | pbcopy
sleep 0.2
osascript -e 'tell application "System Events" to keystroke "v" using {command down}'
(sleep 10 && pbcopy < /dev/null) &
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
sshCommand = ssh -i ~/.ssh/id_rsa_jatapiarogithub
[user]
email = [email protected]
@Jatapiaro
Jatapiaro / iTerm2.md
Last active February 23, 2021 22:35
iTerm2 configuration
  1. Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  1. Copy the next code and save it as md.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<html>
<head>
<title>¡Super!</title>
</head>
<body>
<h1>Your example domain is ready</h1>
</body>
</html>
<VirtualHost *:80>
@Jatapiaro
Jatapiaro / qemu_ubuntu.md
Last active August 2, 2025 20:46
How to install QEMU on OSX and install an Ubuntu VM

Install QEMU on OSX

QEMU requires brew in OSX, so we need to install brew first.

Installing Brew

To install brew we need to have the developer tools enabled in our system. In order to install those tools, we have two options.

  1. Download Xcode form the AppStore
  2. In your terminal run the following command: xcode-select --install
export default class HttpService {
makeGet(route) {
const endpoint = this.getEnpoint(route);
return window.axios.get(endpoint).then(res => {
return res.data.data
})
.catch(err => {
return Promise.reject(err.response.data);
});
@Jatapiaro
Jatapiaro / bookstore_script.sql
Created June 25, 2019 22:23
Creación de una base de datos con SQL
CREATE TABLE salas
(
id INT unsigned NOT NULL auto_increment,
nombre VARCHAR(240) NOT NULL,
metros FLOAT(6, 2) NOT NULL,
PRIMARY KEY (id)
);
INSERT INTO salas
(nombre, metros)
@Jatapiaro
Jatapiaro / concerts_query.sql
Last active April 22, 2019 23:19
Procedure to retrieve concerts that has a name
/*
* This will select all the concerts where at least
* a position matches some value
*/
SELECT concert_id AS id
FROM positions p
WHERE p.content LIKE '%co%'
GROUP BY concert_id
export default class HttpService {
makeGet(route) {
const endpoint = this.getEnpoint(route);
return window.axios.get(endpoint).then(res => {
return res.data.data
})
.catch(err => {
return Promise.reject(err.response.data);
});