Skip to content

Instantly share code, notes, and snippets.

View mohammadrafigh's full-sized avatar
🎧
Listening 😁

Mohammad Rafigh mohammadrafigh

🎧
Listening 😁
View GitHub Profile
@eagleusb
eagleusb / readme.md
Last active June 17, 2023 09:10
High Quality Linux Sound :)

HQLS

High Quality Linux Sound is just my memo about Linux sound stack configuration, as:

  1. I never remember all the tools to configure (ALSA, PulseAudio...)
  2. I never remember the correct parameter(s)
  3. It must be automated

ALSA

PulseAudio

@niespodd
niespodd / package.json
Last active May 8, 2023 09:07
Making web3/bitcore-lib work with Angular 6-11 and >=11
{...
"scripts": {
"postinstall": "node patch.js",
...
}
}
@mahsaml90
mahsaml90 / README.md
Last active October 2, 2020 15:29
Angular 2 Directive to use with Jdenticon

How to use

  1. install Jdenticon using npm install jdenticon --save
  2. import this directive into your intended module and add it to declarations.
  3. then use it in your html file like this:
<svg width="50" height="50" [identiconHash]="hash">
  Fallback text for browsers not supporting inline svg
</svg>
@arminghm
arminghm / gist:c90d73f971a848e7e42456e75143321b
Last active July 3, 2017 13:34 — forked from izadmehr/taigRtl.txt
CSS style for RTL Taiga.io
body {
font-family: IRANSans !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: IRANSans !important;
@btroncone
btroncone / ngrxintro.md
Last active February 9, 2024 15:37
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@wassname
wassname / permutations.js
Last active June 28, 2022 22:53
Combinatorics permutatons and product in javascript using lodash.js (like python's itertools)
/**
* Lodash mixins for combinatorics
* by: wassname & visangela
* url: https://gist.github.com/wassname/a882ac3981c8e18d2556/edit
* lodash contrib issue: https://github.com/node4good/lodash-contrib/issues/47
* lic: same as lodash
* Inspired by python itertools: https://docs.python.org/2.7/library/itertools.html
*
* Usage:
* permutations([0,1,2],2) // [[0,1],[0,2],[1,0],[1,2],[2,0],[2,1]]
@taoyuan
taoyuan / npm-using-https-for-git.sh
Last active April 27, 2024 01:22
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."git@github.com:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://
@Jimmy-Xu
Jimmy-Xu / shadowsocks_privoxy_tsocks.md
Last active April 29, 2022 15:00
shadowsocks+privoxy/tsocks

shadowsocks + privoxy/tsocks

  • shadowsocks: service, socks proxy
  • privoxy: service, convert socks proxy to http proxy
  • tsocks: tool, use socks proxy for any command line

Usage

tested under ubuntu14.04

#Installing Taiga on CentOS 6 (x64)

##Dependencies ...

yum update -y
yum groupinstall "Development Tools" -y
yum install libxslt-devel libxml2-devel libXt-devel curl git tmux -y

##Installing PostgreSQL

@plentz
plentz / nginx.conf
Last active April 24, 2024 11:15
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048