Skip to content

Instantly share code, notes, and snippets.

@joseluisq
joseluisq / Arch_Linux.md
Created January 27, 2024 13:46
Arch Linux - Remove all packages that match a pattern
sudo pacman -Rns $(sudo pacman -Qq | grep "telepathy-*")
@joseluisq
joseluisq / gitea_1.21.1.log
Created December 3, 2023 03:47
Gitea 1.21.1 Error Log for "PANIC whilst trying to do migrate task: runtime error"
Server listening on :: port 22.
Server listening on 0.0.0.0 port 22.
2023/12/03 02:39:00 cmd/web.go:242:runWeb() [I] Starting Gitea on PID: 16
2023/12/03 02:39:00 cmd/web.go:111:showWebStartupMessage() [I] Gitea version: 1.21.1 built with GNU Make 4.4.1, go1.21.4 : bindata, timetzdata, sqlite, sqlite_unlock_notify
2023/12/03 02:39:00 cmd/web.go:112:showWebStartupMessage() [I] * RunMode: prod
2023/12/03 02:39:00 cmd/web.go:113:showWebStartupMessage() [I] * AppPath: /usr/local/bin/gitea
2023/12/03 02:39:00 cmd/web.go:114:showWebStartupMessage() [I] * WorkPath: /data/gitea
2023/12/03 02:39:00 cmd/web.go:115:showWebStartupMessage() [I] * CustomPath: /data/gitea
2023/12/03 02:39:00 cmd/web.go:116:showWebStartupMessage() [I] * ConfigFile: /data/gitea/conf/app.ini
2023/12/03 02:39:00 cmd/web.go:117:showWebStartupMessage() [I] Prepare to run web server
@joseluisq
joseluisq / List of in-browser VMs.md
Created June 9, 2023 22:22 — forked from SMUsamaShah/List of in-browser VMs.md
List of Javascript based virtual machines running in browser
{
// Place your snippets for go here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@joseluisq
joseluisq / SWS_2.15.0_vs_2.14.2.md
Created March 13, 2023 00:21
A generic Static Web Server load testing comparison between 2.15.0 and 2.14.2 versions.

Static Web Server 2.15.0 vs 2.14.2

A generic Static Web Server load testing comparison between 2.15.0 and 2.14.2 versions.

$ static-web-server -d ./public

2.14.2

@joseluisq
joseluisq / interfaces
Last active November 13, 2022 00:14
Alpine Linux auto Ethernet Configuration - /etc/network/interfaces https://wiki.alpinelinux.org/wiki/Configure_Networking
auto eth0
iface lo inet loopback
iface eth0 inet dhcp
@joseluisq
joseluisq / json.lua
Created October 18, 2022 20:17 — forked from tejaskokje/json.lua
LUA script to dump JSON output from wrk/wrk2
-- example reporting script which demonstrates a custom
-- done() function that prints results as JSON
done = function(summary, latency, requests)
io.write("\nJSON Output:\n")
io.write("{\n")
io.write(string.format("\t\"requests\": %d,\n", summary.requests))
io.write(string.format("\t\"duration_in_microseconds\": %0.2f,\n", summary.duration))
io.write(string.format("\t\"bytes\": %d,\n", summary.bytes))
io.write(string.format("\t\"requests_per_sec\": %0.2f,\n", (summary.requests/summary.duration)*1e6))
@joseluisq
joseluisq / README.md
Last active September 26, 2022 19:01
How to open in file/line number with VSCode from Hotspot

How to open a file/line number with VSCode from Hotspot

  1. Open Hotspot
  2. Settings > Code navigation > Custom...
  3. Then Copy/paste the lines below
/usr/bin/code -g %f:%l:%c
  1. On for example Caller/Callee tab, right click on file location wanted.
  2. Finally, click open in editor
@joseluisq
joseluisq / settings.json
Created June 20, 2022 10:11
My custom VSCode settings for Mac
{
// ---- Editor ----
"editor.fontFamily": "Fira Code",
"editor.fontSize": 12,
"editor.fontLigatures": true,
"editor.detectIndentation": true,
"editor.wordWrap": "on",
"editor.formatOnSave": false,
"editor.rulers": [
132

Keybase proof

I hereby claim:

  • I am joseluisq on github.
  • I am joseluisq (https://keybase.io/joseluisq) on keybase.
  • I have a public key ASCqLTIgaAbKLdRO9_EgKnYlH747jhjMPp_qFwFOcklXtgo

To claim this, I am signing this object: