Skip to content

Instantly share code, notes, and snippets.

@moetelo
moetelo / proxy-toggle.sh
Last active September 20, 2023 09:50
Toggles proxy in kde5 assuming that proxy settings are set up.
#!/bin/bash
# Get the current proxy type
current_proxy_type=$(kreadconfig5 --file kioslaverc --group "Proxy Settings" --key ProxyType)
if [ $? -ne 0 ]; then
echo "Failed to execute kreadconfig5"
exit 1
fi
const fb = (i, limit) => !console.log(`${!(i % 3) ? 'Fizz' : ''}${!(i % 5) ? 'Buzz' : ''}` || i)
&& i !== limit
&& fb(++i, limit);
fb(1, 100);
<template>
<div ref="root" class="chart-root"></div>
</template>
<script lang="ts">
// https://gist.github.com/vinicius73/d08d775b184c02097e5eca0a7bea2eda
// @ts-ignore
import * as c3 from 'c3';
// @ts-ignore
#!/usr/bin/env node
const argv = require("yargs").argv;
const htmlPugConverter = require("html-pug-converter");
const cheerio = require("cheerio");
const fs = require("fs");
const path = require("path");
const { JSDOM } = require("jsdom");
const to = require('to-case');
// ==UserScript==
// @name Highlight Commits
// @include http*://dev.azure.com/*/_git/*/commits*
// @author sheefoo
// @require https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.0/axios.min.js
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @require https://cdn.jsdelivr.net/npm/underscore@1.11.0/underscore-min.js
// ==/UserScript==
'use strict';
@moetelo
moetelo / 1_reset.css
Last active May 27, 2021 12:19
пригодится
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,