Skip to content

Instantly share code, notes, and snippets.

Xunnamius (GitHub) Xunnamius

Block or report user

Report or block Xunnamius

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hrdtbs
hrdtbs / .babelrc
Last active Jul 14, 2019
nextjs, styled-jsx with post-css
View .babelrc
{
"presets": [
[
"next/babel",
{
"styled-jsx": {
"plugins": ["styled-jsx-plugin-postcss"]
}
}
]
@Artistan
Artistan / add gitlab admin labels.md
Last active Sep 23, 2019
Add gitlab labels to your repo from admin labels
View add gitlab admin labels.md

quick hack in admin labels to all repos...

in addition to @Xunnamius package. you may use the dbconsole if your are feeling brave and want to check and update just the labels that are off in color or case. Also, I deleted only the labels that did not exist in the admin labels, and then ren teh gitlab-fix-labels ... add all to add the missing labels to all our projects.

login to your server

sudo gitlab-rails dbconsole

template (admin) labels.

@xameeramir
xameeramir / default nginx configuration file
Last active Dec 6, 2019
The default nginx configuration file inside /etc/nginx/sites-available/default
View default nginx configuration file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@paulirish
paulirish / what-forces-layout.md
Last active Dec 9, 2019
What forces layout/reflow. The comprehensive list.
View what-forces-layout.md

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
@sam159
sam159 / minunit.h
Created Aug 27, 2014
minunit header for unit testing c code
View minunit.h
/*
* File: minunit.h
* Author: Zed. A. Shaw, Sam
*
* @see http://c.learncodethehardway.org/book/ex30.html
*
* Created on 27 August 2014, 22:14
*/
#ifndef MINUNIT_H
@cathalgarvey
cathalgarvey / chacha20
Created Aug 15, 2014
ChaCha20 stream cipher in Python 3
View chacha20
# Pure Python ChaCha20
# Based on Numpy implementation: https://gist.github.com/chiiph/6855750
# Based on http://cr.yp.to/chacha.html
#
# I wanted an implementation of ChaCha in clean, understandable Python
# as a way to get a handle on the algorithm for porting to another language.
# There are plenty of bindings but few pure implementations, because
# Pure Python is too slow for normal practical use in Cryptography.
#
# The preceding implementation used NumPy, which avoided a lot of the
@EmilHernvall
EmilHernvall / vector.c
Last active Nov 19, 2019
Simple vector-implementation in C
View vector.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "vector.h"
void vector_init(vector *v)
{
v->data = NULL;
v->size = 0;
You can’t perform that action at this time.