Skip to content

Instantly share code, notes, and snippets.

😴
= (λx.x x)(λx.x x)

Nathan Lilienthal nixpulvis

😴
= (λx.x x)(λx.x x)
Block or report user

Report or block nixpulvis

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
@nixpulvis
nixpulvis / PKGBUILD
Created May 25, 2019
wasm-pack-git (for now)
View PKGBUILD
pkgname=wasm-pack-git
_pkgname=wasm-pack
pkgdesc="pack up the wasm and publish it to npm!"
pkgrel=1
pkgver=0.8.1.856
arch=('i686' 'x86_64')
conflicts=("wasm-pack")
provides=("wasm-pack")
url="https://github.com/rustwasm/wasm-pack"
license=('Apache' 'MIT')
View order.rb
class Scale
include Comparable
attr_reader :a, :b
def initialize(a, b)
@a, @b = a, b
end
def <=>(other)
View wayback.js
function wayback_link(url) {
let max_date = 99999999999999;
return `https://web.archive.org/web/${max_date}/${url}`;
}
console.log(wayback_link("https://github.com"))
@nixpulvis
nixpulvis / windows_install.sh
Created Feb 7, 2019
Install Windows 10 From Linux
View windows_install.sh
fdisk /dev/sdY
# create single partition type 7+bootable partition
mkfs.ntfs -f /dev/sdY1
ms-sys -7 /dev/sdY
mount -o loop win7.iso /mnt/iso
mount /dev/sdY1 /mnt/usb
cp -r /mnt/iso/* /mnt/usb/
View facetime-bug
Here's how to do the iPhone FaceTime bug:
• Start a FaceTime Video call with an iPhone contact.
• Whilst the call is dialling, swipe up from the bottom of the screen and tap Add Person.
• Add your own phone number in the Add Person screen.
• You will then start a group FaceTime call including yourself and the audio of the person you originally called, even if they haven't accepted the call yet.
View keymap.c
#include QMK_KEYBOARD_H
enum mitosis_layers
{
_QWERTY,
_SHIFTED,
_FUNCTION,
_FUNCSHIFT,
};
View animal.rb
module Sustenance
def initialize
@stomach = []
super
end
def eat(food)
@stomach << { food: food }
end
@nixpulvis
nixpulvis / hub-branches
Created Nov 2, 2018
List all of a user's branches (supports authentication).
View hub-branches
#!/usr/bin/env ruby
require 'octokit'
NAME = `git config user.name`
USERNAME = ARGV[0]
PASSWORD = ARGV[1]
ORG = "ForwardFinancing"
unless USERNAME
puts "./hub-branches USERNAME [PASSWORD]"
View rev.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>iOS 12 Safari bugs</title>
<script type="text/javascript">
window.addEventListener("load", function ()
{
let arr = [1, 2, 3, 4, 5];
View shell.rb
# Commands to be executed directly by this shell.
BUILTINS = {}
# The builtin `cd` for changing the shell's working directory.
BUILTINS['cd'] = lambda do |args|
# Change to the home directory by default.
args << ENV['HOME'] if args.empty?
# Read the destination path, doing very basic path expansion.
dest = args.pop.gsub(/~/, ENV['HOME'])
You can’t perform that action at this time.