Skip to content

Instantly share code, notes, and snippets.

@ThoNohT
ThoNohT / dehaskell.md
Last active April 24, 2024 23:30
Cleaning haskell packages from pacman

Cleaning up haskell packages on Arch Linux

In Arch Linux, all haskell packages are dynamically linked. This can be a headache for the user, since it results in a large amount of haskell-* packages being installed on your system, and the possibility for version conflicts. A way around this is to not depend on pacman at all for haskell packages, but manually install them. In this document I explain how I switched from a lot of haskell packages installed with pacman, to a few manually installed packages.

Finding packages to uninstall

To determine which packages to uninstall (and replace), a few tools are useful:

  • pacman itself
  • pacgraph
@copernicusmarinegist
copernicusmarinegist / convert-netcdf-to-csv.ipynb
Created June 18, 2018 15:17
Python Notebook Example on how to convert a netcdf file to csv file
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@iacchus
iacchus / install_fonts.sh
Last active April 24, 2024 23:28
Install all Google Fonts on Linux (Debian/Ubuntu etc.)
#!/usr/bin/env sh
# Original author: Michalis Georgiou <mechmg93@gmail.comr>
# Modified by Andrew http://www.webupd8.org <andrew@webupd8.org>
# Current version by Kassius Iacchus https://github.com/iacchus/
# Depends on: `wget`
#
# Install `wget` on Debian/Ubuntu with:
# apt install wget
@Myrddraal
Myrddraal / Test-ChangesMadeInPath.ps1
Last active April 24, 2024 23:27
Skip infrastructure deployments if there are no changes to deploy (Azure Pipelines)
[CmdletBinding()]
param (
$authorisation,
$pathFilter,
$collectionUri,
$project,
$buildId
)
$changesUrl = "$collectionUri/$project/_apis/build/builds/$buildId/changes?api-version=6.0"
@imba-tjd
imba-tjd / .Windows Optimization.md
Last active April 24, 2024 23:26
记录我使用的软件和优化Windows的操作
@Klerith
Klerith / vite-testing-config.md
Last active April 24, 2024 23:23
Vite + Jest + React Testing Library - Configuraciones a seguir

Instalación y configuracion de Jest + React Testing Library

En proyectos de React + Vite

  1. Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react 
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Opcional: Si usamos Fetch API en el proyecto:
@roger-dev-br
roger-dev-br / swagger.md
Last active April 24, 2024 23:19
Configuração de documentação automática de APIs com o Swagger

Configuração do Swagger no NodeJS

1. Instalar os pacotes

    yarn add swagger-autogen
    yarn add swagger-ui-express

2. Criar o config em config/swagger.js

-- black frames not included
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local Camera = Workspace.CurrentCamera
local Module = {}
Module.Position = UDim2.new(0, 0, 0, 0)
@GLMeece
GLMeece / unicode_for_kbd_symbols.md
Created December 7, 2022 21:07
Unicode for Keyboard Symbols

Unicode for Keyboard Symbols

  • ⎋ (escape): U+238B
  • ⇥ (tab): U+21E5
  • ⇪ (caps lock): U+21EA
  • ⇧ (shift): U+21E7
  • ⌃ (control): U+2303
  • ⌥ (option): U+2325
  •  (Apple): U+F8FF (in some Apple-provided fonts only)
  • ⌘ (command): U+2318
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 24, 2024 23:04
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;