Skip to content

Instantly share code, notes, and snippets.

View wkrea's full-sized avatar

William Javier Trigos Guevara wkrea

View GitHub Profile
@wkrea
wkrea / Apple-Magic-Mouse-Windows-10-Drivers.txt
Created April 23, 2021 16:04 — forked from esters/Apple-Magic-Mouse-Windows-10-Drivers.txt
Apple Magic Mouse (A1296) - Windows 10 x64 Drivers
1. Download Brigadier - https://github.com/timsutton/brigadier/releases
2. Extract and run Brigadier (via CMD) with the following flags - brigadier.exe -m Macmini8,1
3. Brigadier will download and extract the bootcamp drivers for Mac Mini (2018)
4. Navigate - BootCamp-091-87418\BootCamp\Drivers\Apple\AppleWirelessMouse
5. Right click on AppleWirelessMouse.inf - Install.
@wkrea
wkrea / example.puml
Created February 9, 2021 02:10 — forked from QuantumGhost/example.puml
A simple template for PlantUML to draw ER diagram.The basic idea comes from http://plantuml.sourceforge.net/qa/?qa=331/database-modeling
@startuml
' uncomment the line below if you're using computer with a retina display
' skinparam dpi 300
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >>
' we use bold for primary key
' green color for unique
' and underscore for not_null
!define primary_key(x) <b>x</b>
!define unique(x) <color:green>x</color>
!define not_null(x) <u>x</u>
@wkrea
wkrea / textlive-full-beefless.md
Created September 2, 2020 13:30 — forked from shivams/textlive-full-beefless.md
`texlive-full` without the beef

TLDR;

On an Debian/Ubuntu-based system, to install texlive-full without docs and language packs, simply do this:

sudo apt install `sudo apt --assume-no install texlive-full | \
		awk '/The following additional packages will be installed/{f=1;next} /Suggested packages/{f=0} f' | \
		tr ' ' '\n' | grep -vP 'doc$' | grep -vP 'texlive-lang' | grep -vP 'latex-cjk' | tr '\n' ' '`

After this, if you wish to install the language packs, selectively install them. E.g.:

@wkrea
wkrea / git-pull-all
Created August 8, 2020 12:58 — forked from grimzy/git-pull-all
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all

Setting up Conky on Ubuntu 16.04LTS for the Clevo P751DM2-G

System Information:

We extract this with inxi:

installation:

sudo apt-get install inxi
@wkrea
wkrea / Install NVIDIA Driver and CUDA.md
Created July 14, 2020 19:59 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@wkrea
wkrea / docker-install-parrot.sh
Created July 11, 2020 20:10 — forked from nuga99/docker-install-parrot.sh
Install Docker Engine on Parrot OS
#!/bin/sh
# From https://www.hiroom2.com/2017/09/24/parrotsec-3-8-docker-engine-en/
set -e
# Install dependencies.
sudo apt install -y curl apt-transport-https \
software-properties-common ca-certificates
# Install docker.
@wkrea
wkrea / send-whatsapp.gs
Created July 2, 2020 18:53 — forked from whatsmate/send-whatsapp.gs
Sending a WhatsApp message from Google Apps Script
function main() {
var destNumber = "12025550108"; // TODO: Specify the recipient's number here. NOT THE GATEWAY NUMBER!
var message = "Aloha, this is my first message.";
sendWhatsapp(destNumber, message);
}
function sendWhatsapp(destNumber, message) {
var instanceId = "YOUR_INSTANCE_ID_HERE"; // TODO: Replace it with your gateway instance ID here
var clientId = "YOUR_CLIENT_ID_HERE"; // TODO: Replace it with your Forever Green client ID here
@wkrea
wkrea / Makefile
Created June 8, 2020 23:22
Manejo Memoria C
all : heaploop matmul
heaploop : heaploop.c
gcc -Wall -g -o heaploop heaploop.c
matmul : matmul.c
gcc -Wall -g -o matmul matmul.c
traces: heaploop matmul
./runit heaploop
./runit matmul 32