Skip to content

Instantly share code, notes, and snippets.

😻
meow

Bailey Stoner monokrome

😻
meow
Block or report user

Report or block monokrome

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
@monokrome
monokrome / move.c
Last active May 24, 2019 — forked from Unlimiter/move.c
Fast function for moving files.
View move.c
/** this was posted as a fast function for moving files... lolwat!? **/
/*
* Fast function for moving files.
* — Unlimiter
*/
// This function has been tested with 'https://norvig.com/big.txt' which has the size of 6488666 bytes, and the execution time was very close to null.
// At that point, it is very comparable to the 'mv' command on Linux.
void move(char* src_path, char* dest_path) {
View linux-workstation-security.md

Linux workstation security checklist

This is a set of recommendations used by the Linux Foundation for their systems administrators. All of LF employees are remote workers and we use this set of guidelines to ensure that a sysadmin's system passes core security requirements in order to reduce the risk of it becoming an attack vector against the rest of our infrastructure.

Even if your systems administrators are not remote workers, chances are that they perform a lot of their work either from a portable laptop in a work

View freenode_channels.txt
This file has been truncated, but you can view the full file.
2391 ##linux Channel website: https://freenode.linux.community | Pastebin: https://paste.linux.community | Need an op? Join ##linux-ops | CoC? ##linux-offtopic, please.
1931 #python Don't paste, use https://paste.pound-python.org/ | http://bit.ly/psf-coc | Tutorial: http://bit.ly/MCAhYx | New programmer? http://bit.ly/23X7emF | Specify 2.x or 3.x in your question | Find your local User Group: http://goo.gl/S1Zsq | #python-fr #python.de #python-es #python.tw #python-br #python-nl #python-ir #python.it #python-ro #python-india #python-hu #python-dk #python-dev
1926 #freenode Welcome to #freenode | Feel free to message staff at any time. You can find us using /stats p (shows immediately-available staff) or /who freenode/staff/* (shows all staff) | See https://freenode.net/news/spambot-attack regarding spam | User mode +R blocks unregistered user PMs
View metanic-security.txt
Contact: security@metanic.org
Encryption: https://keybase.io/monokrome
Acknowledgements: https://github.com/metanic/metanic/tree/master/CONTRIBUTORS.md
Permission: none
Policy: asfasfhttps://github.com/metanic/metanic/tree/master/SECURITY.md
View meow.js
(function __FORGOTTHENAME__(a, b) {
return () => {
a(...args) // Create a side effect
return b(...args) // Return result of calling b
}
})
View managers.py
import typing
from django.db.models import Manager
from django.db.models.query import QuerySet
class TopicManager(Manager):
def having_names(self, names: str, *, create_missing: bool = False, **create_kwargs: typing.Dict[str, typing.Any]) -> QuerySet:
if not len(names):
return self.none()
View keybase.md

Keybase proof

I hereby claim:

  • I am monokrome on github.
  • I am monokrome (https://keybase.io/monokrome) on keybase.
  • I have a public key ASAf75zfHTn9s38idtG2TbNyEW5STSEBdlbZhAp1UYJw0wo To claim this, I am signing this object:
{
  "body": {
    "key": {
View openvpn_resolvconf.bash
#!/usr/bin/env bash
# Rename this to `$vpn_state` to be more semantically useful. `$script_type` is
# a really weird name.
vpn_state=$script_type
case $vpn_state in
up)
nameservers=()
search=()
View flex.jsx
import React from 'react'
import styled from 'styled-components'
function flex(name, defaultValue) {
return (props) => {
let value = props[name]
if (!value && typeof defaultValue === 'undefined') return ''
if (!value) value = defaultValue
return `flex-${name}: ${value};`
}
@monokrome
monokrome / firefox.md
Created Oct 31, 2017 — forked from maxzinkus/firefox.md
Configuring Firefox for security and privacy (as of Oct. 2017)
View firefox.md

Configuring/Hardening Firefox for Security and Privacy

Source for some of these

  1. about:config
  • dom.event.clipboardevents.enabled => false
  • clipboard.plainTextOnly => true
  • referer spoofSource => true
  • media.peerconnection
You can’t perform that action at this time.