Skip to content

Instantly share code, notes, and snippets.

View tankred's full-sized avatar
💭
#gitmerge

Tankred tankred

💭
#gitmerge
View GitHub Profile
@tankred
tankred / table-01.json
Last active March 5, 2024 15:52
vega-bar
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 400,
"height": 200,
"padding": 5,
"data": [
{
"name": "table",
"values": [
@tankred
tankred / html-boilerplate.html
Created June 10, 2022 12:00
html boilerplate by Manuel Matuzović
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Unique page title - My Site</title>
<script type="module">
document.documentElement.classList.remove('no-js');
how to turn off all at once ?
Go to https://twitter.com/following, and keep scrolling down until you’ve loaded everyone you follow. (If you follow over a thousand people, this will take a few minutes.)
https://lifehacker.com/how-to-disable-all-retweets-on-twitter-1823550038
run this in dev console!
a=Array.prototype.slice.call(document.querySelectorAll("div.ProfileCard-content div.dropdown"));a.forEach(function(e) {e.querySelector("button").click(); e.querySelector("li.retweet-off-text button").click(); })
https://www.techwalla.com/articles/how-to-send-a-dm-blast-on-twitter
@tankred
tankred / .\prettylog.txt
Created January 12, 2021 12:03
git pretty log alias
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(normal blue)<%an>%Creset' --abbrev-commit"
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
# Project Title
One Paragraph of project description goes here
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
### Prerequisites
I learned from a real master once, when you are working on code that you intend to remove, use a different style of "commenting-out" than the normal style, for example?
In bash:
# existing comment
#? code line to be removed
//? line to be removed starts with comment-syntax +?
<!--? html comment to be removed -->
--? SQL comment to be removed
@tankred
tankred / newscript.sh
Last active October 13, 2020 10:03 — forked from aaronNGi/newscript.sh
New shell script
#!/bin/sh
prog_name=${0##*/}
version=0.1.0
version_text="Boilerplate for new scripts v$version"
options="h o: q v V"
help_text="Usage: $prog_name [-o <text>] [-hqvV] [<file>]...
Boilerplate for new scripts