Skip to content

Instantly share code, notes, and snippets.

View coffnix's full-sized avatar

Raphael Bastos aka coffnix coffnix

View GitHub Profile
#!/bin/bash
# cpustatus
#
# Prints the current state of the CPU like temperature, voltage and speed.
# The temperature is reported in degrees Celsius (C) while
# the CPU speed is calculated in megahertz (MHz).
function convert_to_MHz {
let value=$1/1000
echo "$value"
#!/usr/bin/env python
import os
import random
os.system('clear')
Problema = [ "A greve", "O foro de Sao Paulo", "O Stalinismo", "A desigualdade", "Cuba Socialista", "O Golpe de 1964" ]
Natureza = [ "e uma invencao", "e uma estrategia", "e uma manobra", "e um complo", "e uma bandeira", "e uma falacia" ]
Culpado = [ "do Fidel Castro", "dos sindicalistas", "dos baderneiros", "dos petralhas", "dos idiotas uteis", "do MEC" ]
#!/usr/bin/env python
import os
import random
os.system('clear')
Problema = [ "A miseria", "A inflacao", "O desemprego", "A violencia", "A crise", "O crime" ]
Natureza = [ "e uma invencao", "e uma estrategia", "e uma manobra", "e um complo", "e uma instituicao", "e uma criacao" ]
Culpado = [ "da burguesia", "do imperialismo americano", "das elites", "da oposicao", "do capitalismo", "das politicas neoliberais" ]
@coffnix
coffnix / Freenode IRC.md
Created September 18, 2018 12:48 — forked from yeyewangwang/Freenode IRC.md
Freenode Nickserv Commands

Connect

/server chat.freenode.net

Nick

@coffnix
coffnix / WSL2_VPN_Workaround_Instructions.md
Created October 31, 2022 15:37 — forked from machuu/WSL2_VPN_Workaround_Instructions.md
Workaround for WSL2 network broken on VPN

Overview

Internet connection and DNS routing are broken from WSL2 instances, when some VPNs are active. The workaround breaks down into two problems:

  1. Network connection to internet
  2. DNS in WSL2

This problem is tracked in multiple microsoft/WSL issues including, but not limited to:

@coffnix
coffnix / Activate Office 2019 for macOS VoL.md
Created January 4, 2023 03:13 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref