Skip to content

Instantly share code, notes, and snippets.

@Linescoder
Linescoder / 300-free-discord-nitro-links.txt
Created May 17, 2024 14:19 — forked from MaciejkaG/300-free-discord-nitro-links.txt
300 Free Discord Nitro 1 Month Trial Links
@xanderificnl
xanderificnl / config application.rb
Last active May 17, 2024 14:19
(Postgres) Rails with ulid primary keys
module SomeApp
class Application < Rails::Application
config.active_record.schema_format = :sql
config.generators do |generator|
generator.orm :active_record, primary_key_type: :ulid
end
end
end
@CodaFi
CodaFi / AlgorithmW.swift
Last active May 17, 2024 14:18
A Swift Playground containing Martin Grabmüller's "Algorithm W Step-by-Step"
/// Playground - noun: a place where people can play
/// I am the very model of a modern Judgement General
//: # Algorithm W
//: In this playground we develop a complete implementation of the classic
//: algorithm W for Hindley-Milner polymorphic type inference in Swift.
//: ## Introduction
@Yousha
Yousha / .gitignore
Last active May 17, 2024 14:17
.gitignore for C/C++ developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
@Ridwy
Ridwy / MTAudioProcessingTapSample.swift
Created July 30, 2021 11:21
How to use MTAudioProcessingTap in Swift 5
//
// Created by Chiharu Nameki @Ridwy on 2021/07/30.
//
import UIKit
import AVFoundation
/*
Using MTAudioProcessingTap, you can touch raw audio samples playing with AVPlayer.
This sample code shows how to use MTAudioProcessingTap in Swift 5.
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active May 17, 2024 14:14
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();
@pythoninthegrass
pythoninthegrass / cloud-init.ubuntu.yml
Last active May 17, 2024 14:13
cloud-init (cloud-config) ubuntu template for latest python, docker, ansible, github ssh keys,dns, and shell config
#cloud-config
output: {all: '| tee -a /var/log/cloud-init.log'} # store logs inside vm
timezone: "America/Chicago"
hostname: ubuntu
package_update: true
package_upgrade: true
@thdtt
thdtt / activate.cmd
Created July 15, 2021 06:12
Office 365 Activator
@echo off
title Activate Office 365 ProPlus for FREE - MSGuides.com&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products: Office 365 ProPlus (x86-x64)&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_mak*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo ============================================================================&echo Activating your Office...&cscript //nologo slmgr.vbs /ck
@aburjg
aburjg / homoiconic-python-post.md
Last active May 17, 2024 14:12
Homoiconic Python Post
@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active May 17, 2024 14:08
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source