This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Imgur script by Bart Nagel <[email protected]> | |
# Improvements by Tino Sino <[email protected]> | |
# Version 6 or more | |
# I release this into the public domain. Do with it what you will. | |
# The latest version can be found at https://github.com/tremby/imgur.sh | |
# API Key provided by Bart; | |
# replace with your own or specify yours as IMGUR_CLIENT_ID environment variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(){ | |
int count=0,found=0; | |
int a=2,current=2; | |
while(found<100000){ | |
while(a<current) | |
{ | |
if(current%a==0){ | |
count=1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Reddit auto-expand | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Auto expand reddit posts | |
// @author marg9 | |
// @match https://*.reddit.com/* | |
// @grant none | |
// ==/UserScript== | |
// crdts: https://www.reddit.com/r/Enhancement/comments/fjksmc/tutorial_how_to_auto_expand_both_text_and_image/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=cmus | |
Comment=open cmus in kitty | |
Exec=/bin/sh -c "$HOME/configs/cmus.sh" | |
Icon=CMakeSetup | |
Terminal=false | |
Type=Application | |
Categories=Music; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
“I think it wise, and only honest, to warn you that my goal is immodest. It is | |
not my purpose to "transfer knowledge" to you that, subsequently, you can | |
forget again. My purpose is no less than to effectuate in each of you a | |
noticeable, irreversable change. I want you to see and absorb calculational | |
arguments so effective that you will never be able to forget that exposure.” ― | |
Edsger W. Dijkstra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GOCMD=go | |
GOTEST=$(GOCMD) test | |
GOVET=$(GOCMD) vet | |
BINARY_NAME=example | |
VERSION?=0.0.0 | |
SERVICE_PORT?=3000 | |
DOCKER_REGISTRY?= #if set it should finished by / | |
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true | |
GREEN := $(shell tput -Txterm setaf 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func PublishTW(file string) { | |
config := oauth1.NewConfig(token.TWcon, token.TWconSEC) | |
token := oauth1.NewToken(token.TW, token.TWsec) | |
httpClient := config.Client(oauth1.NoContext, token) | |
b := &bytes.Buffer{} | |
form := multipart.NewWriter(b) | |
fw, err := form.CreateFormFile("media", file) | |
if err != nil { | |
panic(err) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/dghubble/oauth1" | |
twauth "github.com/dghubble/oauth1/twitter" | |
"log" | |
) | |
const outOfBand = "oob" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script starts emacs daemon if it is not running, opens whatever file | |
# you pass in and changes the focus to emacs. Without any arguments, it just | |
# opens the current buffer or *scratch* if nothing else is open. The following | |
# example will open ~/.bashrc | |
# ec ~/.bashrc | |
# You can also pass it multiple files, it will open them all. Unbury-buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; doom-acario-light-theme.el --- Acario light theme -*- lexical-binding: t; no-byte-compile: t; -*- | |
(require 'doom-themes) | |
;;; Variables | |
(defgroup doom-acario-light-theme nil | |
"Options for the `doom-acario-light' theme." | |
:group 'doom-themes) | |
(defcustom doom-acario-light-brighter-modeline nil | |
"If non-nil, more vivid colors will be used to style the mode-line." |