Skip to content

Instantly share code, notes, and snippets.

View giraffesyo's full-sized avatar
☁️
Building world class software and infrastructure to democratize HPC

Michael McQuade giraffesyo

☁️
Building world class software and infrastructure to democratize HPC
View GitHub Profile
@ihorduchenko
ihorduchenko / Amount of flex-items per row
Last active April 13, 2024 14:06
How to adjust the amount of flex-items per row
@mixin max-width($width) {
@media screen and (max-width: $width) {
@content;
}
}
.container {
position: relative;
display: flex;
flex-flow: row wrap;
@markerikson
markerikson / tableRenderingExample.js
Last active June 30, 2022 19:08
React expandable table rows example
class ParentComponent extends Component {
constructor() {
super();
this.state = {
data : [
{id : 1, date : "2014-04-18", total : 121.0, status : "Shipped", name : "A", points: 5, percent : 50},
{id : 2, date : "2014-04-21", total : 121.0, status : "Not Shipped", name : "B", points: 10, percent: 60},
{id : 3, date : "2014-08-09", total : 121.0, status : "Not Shipped", name : "C", points: 15, percent: 70},
{id : 4, date : "2014-04-24", total : 121.0, status : "Shipped", name : "D", points: 20, percent : 80},
Usage...
Vcxsrv [:<display>] [option]
:display-number
Vcxsrv runs as the given display-number, which defaults to 0.
To run multiple instances, use unique display-numbers.
-a # default pointer acceleration (factor)
-ac disable access control restrictions
-audit int set audit trail level
@crapier
crapier / Kissanime_cleaner.md
Last active May 3, 2022 18:39
Userscript for removing bloat from KissAnime site, also adds random features.

KissAnime Cleaner

You guys may have noticed but I've not been updating this for a while and a few pieces are broken. Feel free to update this on your own if you want to or to use Juici's Fork, which he has kindly been keeping more up to date.

This userscript for KissAnime was made for my personal use to remove large chunks of the site that I do not use, including any options to login or use features only for members. Along the way I ended up adding some other small features listed below.

Features

  • Removes any link, tabs, buttons, pages, etc. that I will never use.
  • Also removes ads on any pages that still remain
@ogrrd
ogrrd / dnsmasq OS X.md
Last active May 3, 2024 08:33
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

@tonylukasavage
tonylukasavage / script.sh
Created May 29, 2013 18:18
Move all uncommitted changes to a new branch and revert the existing branch to HEAD. "master" has uncommitted changes. You decided you'd rather make those changes in "dev_branch". Here's how to move those uncommitted changes to "dev_branch" and then revert "master" to its last commit.
# get into the master branch
git checkout master
# create a new branch for the changes and check it out
git checkout -b dev_branch
# stash the changes until we revert master
git stash
# go back to master