Skip to content

Instantly share code, notes, and snippets.

View OpnSrcConstruction's full-sized avatar
:octocat:
Working from home

Open Source Construction OpnSrcConstruction

:octocat:
Working from home
View GitHub Profile
@adnan360
adnan360 / power.sh
Created August 8, 2018 11:43
Simple script to create a selection menu for shutdown, reboot etc. based on rofi in dmenu mode
#!/bin/bash
# Simple script to handle a DIY shutdown menu. When run you should see a bunch of options (shutdown, reboot etc.)
#
# Requirements:
# - rofi
# - systemd, but you can replace the commands for OpenRC or anything else
#
# Instructions:
# - Save this file as power.sh or anything
@heroheman
heroheman / ranger-cheatsheet.md
Last active June 20, 2024 18:05
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@T31337
T31337 / SD_usb_auth.sh
Last active October 30, 2018 01:56
PAM_USB Set-Up & Configuration Helper Script With SD Card Support
#!/bin/bash
#Downlaod .bash_colors (Ensure File Exists And Has Expected Content)
wget http://raw.github.com/maxtsepkov/bash_colors/master/bash_colors.sh -O .bash_colors
#Import Colors Script
#See Here For More Info - https://github.com/mercuriev/bash_colors
source .bash_colors
#Set Authentication Device (SD-Card)
MyDevice="/dev/mmcblk0"
@jhorikawa
jhorikawa / getPinterestBoardPins.py
Last active March 9, 2023 21:32
Download Pinterest images from specific board using Python.
import pprint
import requests
import os
from urllib.request import urlopen
accessToken = "xxxxxxxxxx"
boardId = "0000000000"
folderPath = "./images"
response = requests.get(
@ericoporto
ericoporto / firstsnapexperience.md
Last active December 6, 2017 22:37
Trying to build a Snap for the first time

#My Notes on My First Snap Building Experience

Hi, I wanted to try building a Snap package, so from my experiment thought on leave what my wandering left me, lot's of this content is from the Ubuntu Desktop Developer website . The website has a nice getting started too! .

// This is meant to go along with Coder Radio Episode 204
// Optional types in Swift 101
struct JarJar {
var senateSpeach: String? // the '?' means messa might be nil and makes me an Optional type
func voteOfNoConfidence() {
// attempting to use the senateSpeach var but not setting it's value
let isSith = senateSpeach?.containsString("something something darkside") // senateSpeach is nil
@magicznyleszek
magicznyleszek / smutnyleszek-conkyrc
Created March 29, 2014 10:30
Crunchbang Conky configuration
# --------------------------------------------------
# Conky configuration
# Author: Leszek Pietrzak <smutnyleszek@gmail.com>
# Web: http://leszekpietrzak.com
# --------------------------------------------------
# --------------------------------------------------
# Settings
# --------------------------------------------------
@strezh
strezh / GStreamer-1.0 some strings.sh
Last active October 2, 2023 09:00
GStreamer-1.0 personal cheat sheet
#!/bin/bash
# play YUV444 FULL HD file
gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \
videoparse width=1920 height=1080 framerate=25/1 format=GST_VIDEO_FORMAT_Y444 ! \
videoconvert ! \
autovideosink
# play YUV422 FULL HD file
gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \
@CoolOppo
CoolOppo / Vim Commands Cheat Sheet.md
Created February 5, 2014 20:47
Vim Commands Cheat Sheet

Source

Vim Commands Cheat Sheet


How to Exit

:q[uit]