Skip to content

Instantly share code, notes, and snippets.

View RobbiNespu's full-sized avatar
:octocat:
Wut?

Robbi Nespu RobbiNespu

:octocat:
Wut?
View GitHub Profile
@ahutchings
ahutchings / embed_gists.php
Created January 24, 2009 04:26
Embed Gists in (X)HTML without using document.write()
<?php
/**
* Replaces Gist javascript instances with their actual content,
* avoiding the use of document.write().
*
* @param string $source (X)HTML source
*
* @return string (X)HTML with embedded Gists
*/
@ralphbean
ralphbean / .taskrc
Created February 13, 2012 18:20
taskrc
# Files
data.location=/home/threebean/.task
#include /home/threebean/.task/solarized-dark-256.theme
_forcecolor=yes
defaultwidth=160
include /usr/local/share/doc/task/rc/dark-violets-256.theme
report.work_report.description=now
@lukas-h
lukas-h / license-badges.md
Last active July 11, 2024 07:00
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@RobbiNespu
RobbiNespu / .bashrc
Last active July 9, 2020 01:52
Setup and unset proxy environment for bash, Gnome setting,Git proxy, git log graph, current git branch and check battery infomation !
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
@RobbiNespu
RobbiNespu / .bashrc
Last active May 18, 2018 10:33
My personal bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
@FlogDonkey
FlogDonkey / Move TempDB.sql
Last active April 9, 2024 12:20
New and improved Move TempDB script. Captures xp_cmdshell value before execution and resets it post-execution. Allows for dynamic drive allocation in case of company policy of leaving some set percent of drive available for future growth. Also includes improved error handling and validation, as well as a @debug mode, allowing us to run the scrip…
/*
Snippet is nuts and bolts for creating/moving to an isolated tempdb drive.
After you run this, SQL Server must be restarted for it to take effect
*/
DECLARE @DriveSizeGB INT = 40
,@FileCount INT = 9
,@InstanceCount TINYINT = 1
,@VolumeBuffer DECIMAL(8, 2) = .8 /* Set to amount of volume TempDB can fill. */
,@RowID INT
,@FileSize VARCHAR(10)
@AndrewKvalheim
AndrewKvalheim / mastodon-notes.md
Last active February 9, 2024 18:30
Notes on running a personal Mastodon instance

Personal Mastodon instance

Effective total cost: $3–5/mo

Setup

Decide on an EC2 instance type:

  1. At AWS Console → EC2 → Instance Types, filter for ≥1 GB RAM and sort by price.
  • t4g.micro is lowest.
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\] \[\033[33;1m\]\w\[\033[m\] (\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)) \$ \n └─\[\033[0m\033[0;32m\] \$\[\033[0m\033[0;32m\] \[\033[0m\]"
@prabathbr
prabathbr / blogspot_to_jekyll.rb
Last active July 22, 2021 03:18 — forked from RobbiNespu/blogspot_to_jekyll.rb
added <require 'httparty'> , created "setup.sh" which will make a ruby environment , fixed script error with invalid post names
#!/usr/bin/env ruby
#
# Convert blogger (blogspot) posts to jekyll posts
#
# Basic Usage
# -----------
#
# ./blogger_to_jekyll.rb feed_url
#
# where `feed_url` can have the following format:
@rtkay123
rtkay123 / Smart HTTP Git and CGIT on Nginx server with Auth on push
Last active May 1, 2024 11:57
Installing Git and Cgit to Debian NGINX server (with smart http and authentication on push)
# Just some notes on enabling smart http with nginx as well as authentication on push for repos
# install git, cgit and apache2-utils (for authentication)
apt install git cgit apache2-utils fcgiwrap
# create a git user
adduser git
su git
cd
mkdir .ssh && chmod 700 .ssh
touch .ssh/authorized_keys && chmod 600 .ssh/authorized_keys