Skip to content

Instantly share code, notes, and snippets.

View gangstaJS's full-sized avatar

Oleksandr Shapovalenko gangstaJS

View GitHub Profile
@gangstaJS
gangstaJS / install.sh
Created October 11, 2024 16:28 — forked from NegatioN/install.sh
Installing Canon Printers Ubuntu
# Origin http://ubuntuhandbook.org/index.php/2020/05/canon-printer-scangear-mp-ubuntu-20-04/
# Ubuntu
sudo apt install printer-driver-gutenprint
sudo add-apt-repository ppa:thierry-f/fork-michael-gruz
sudo apt install scangearmp2
sudo apt install scangearmp-mp495series
# Arch / Manjaro
@gangstaJS
gangstaJS / config.js
Created March 29, 2020 18:34 — forked from chodorowicz/config.js
react-storybook samples
/**
* dynamically loading all stories with .stories.js extension
*/
import { configure } from '@kadira/storybook';
require('es6-promise').polyfill();
import 'babel-polyfill';
const stories = require.context('../app/js/components', true, /.stories.js$/);
function loadStories() {
@gangstaJS
gangstaJS / generate-ssh-key.sh
Created March 15, 2019 15:02 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@gangstaJS
gangstaJS / geojson-polygon-fill-color.json
Created June 15, 2018 11:57 — forked from lossyrob/geojson-polygon-fill-color.json
GeoJson Polygons with fill colors
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gangstaJS
gangstaJS / gist:ad4436b9f90da2549d97c393892a2a5f
Created March 22, 2018 14:40 — forked from vladimirtsyupko/gist:10964772
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master
@gangstaJS
gangstaJS / apache rewrite rule
Created September 19, 2017 08:54 — forked from santthosh/apache rewrite rule
Apache config for SPA's
# To be inside the /Directory
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
@gangstaJS
gangstaJS / webpack.config.js
Created July 22, 2016 16:08 — forked from BinaryMuse/webpack.config.js
webpack less -> css with source maps via extracttextplugin
var webpack = require("webpack");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var lessLoader = ExtractTextPlugin.extract(
"css?sourceMap!less?sourceMap"
);
module.exports = {
cache: true,
entry: { bundle: "./master/client/index.jsx" },
@gangstaJS
gangstaJS / gob.go
Created May 17, 2016 09:20 — forked from whyrusleeping/gob.go
golang gob interface example
package main
import (
"bytes"
"encoding/gob"
"fmt"
)
type MyFace interface {
A()
@gangstaJS
gangstaJS / LICENSE.txt
Created April 21, 2016 09:54 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@gangstaJS
gangstaJS / cookie.js
Created March 18, 2016 14:47 — forked from ajagelund/cookie.js
MDN JavaScript cookie framework