Skip to content

Instantly share code, notes, and snippets.

@alpgarcia
alpgarcia / github-token-for-git.md
Last active February 5, 2024 11:40
Configure GitHub token with gnome-keyring
  1. git --version
git version 2.17.1
  1. sudo apt-get install libsecret-1-0 libsecret-1-dev
  2. cd /usr/share/doc/git/contrib/credential/libsecret
  3. sudo make
  4. git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
  5. Next time Git asks for your GitHub username and password, just write your username and paste your token and they'll be stored in your keyring.
@opyapeus
opyapeus / Main.purs
Last active April 22, 2021 23:58 — forked from soupi/Main.purs
simple purescript-signal + purescript-canvas example
module Main where
import Prelude
import Effect (Effect)
import Data.Maybe (Maybe(Just, Nothing))
import Graphics.Canvas as C
import Signal (foldp, runSignal)
import Signal.DOM (animationFrame)
@yograterol
yograterol / gist:99c8e123afecc828cb8c
Created January 8, 2016 05:45
"gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory" workaround
"gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory" CentOS's and Fedora +22 workaround
Install `redhat-rpm-config`
$ sudo dnf install redhat-rpm-config
@Jessidhia
Jessidhia / crc32.c
Created December 16, 2011 02:35
CRC32 summer in C; unicode-compatible on windows
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#define CHUNK_SIZE 4096
#ifdef _WIN32
#include <wchar.h>
#include <io.h>
#define WIN32_LEAN_AND_MEAN