Skip to content

Instantly share code, notes, and snippets.

View rob93c's full-sized avatar
🧙‍♂️
Open sourcerer

Roberto Cella rob93c

🧙‍♂️
Open sourcerer
View GitHub Profile
@fnky
fnky / ANSI.md
Last active July 22, 2024 12:03
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@SanderTheDragon
SanderTheDragon / postman-deb.sh
Last active July 7, 2024 12:44
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
# SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <sanderthedragon@zoho.com>
#
# SPDX-License-Identifier: MIT
arch=$(dpkg --print-architecture)
echo "Detected architecture: $arch"
case "$arch" in
@man0lis
man0lis / boi-screensaver-fix.py
Last active December 29, 2021 00:36
Dbus Screensaver Service emulator for The Binding of Isaac: Afterbirth+
#!/usr/bin/env python
import dbus
import dbus.service
class FakeScreenSaver(dbus.service.Object):
def __init__(self):
self.session_bus = dbus.SessionBus()
name = dbus.service.BusName('org.freedesktop.ScreenSaver', bus=self.session_bus)
dbus.service.Object.__init__(self, name, '/org/freedesktop/ScreenSaver')
@Keshava11
Keshava11 / SFileUploader.py
Created February 22, 2017 09:02
Simple python script to upload file to Dropbox.
#!python3.5
# Prerequisites :
# 1.SetUp dropbox sdk to be able to use Dropbox Api's
# $ sudo pip install dropbox
# By default python dropbox sdk is based upon the python 3.5
#
# 2. Create an App on dropbox console (https://www.dropbox.com/developers/apps) which will be used and validated to do
# the file upload and restore using dropbox api. Mostly you need an access token to connect to Dropbox before actual file/folder operations.
#
@tungd
tungd / tkgate_install.sh
Created October 20, 2011 16:10
Install TkGate 2.0 on Ubuntu
#!/bin/bash
sudo apt-get install build-essential autotools-dev tcl8.5-dev tk8.5-dev
cd $HOME
mkdir build && cd build
wget ftp://gadoid.ices.cmu.edu/pub/tkgate/pre-release/tkgate-2.0-b10.tar.gz
tar xvzf tkgate-2.0-b10.tar.gz
cd tkgate-2.0-b10/
./configure
make
# Only if you want to install