Skip to content

Instantly share code, notes, and snippets.

View nooitaf's full-sized avatar
🕶️
deal with it

Ralf Brandenstein nooitaf

🕶️
deal with it
View GitHub Profile
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@cgoldberg
cgoldberg / camel.pl
Created December 18, 2012 21:26
Perl Camel code - render 4 ascii camels from camel-styled source code.
#!/usr/bin/perl -w # camel code
use strict;
$_='ev
al("seek\040D
ATA,0, 0;");foreach(1..3)
{<DATA>;}my @camel1hump;my$camel;
my$Camel ;while( <DATA>){$_=sprintf("%-6
9s",$_);my@dromedary 1=split(//);if(defined($
_=<DATA>)){@camel1hum p=split(//);}while(@dromeda
@x4fx77x4f
x4fx77x4f / unsubscribe_unavailable.js
Last active April 22, 2024 20:57
Unsubscribe unavailable Teardown mods
/*
# unsubscribe_unavailable.js
This script will go through your Steam Workshop mod subscriptions for
Teardown mods and unsubscribe from any that are unavailable (e.g. private).
## Usage:
1. Open a tab to any page on the steamcommunity.com domain
2. Open developer tools (Ctrl+Shift+I or F12)
3. Go to "Console" tab
4. Copy and paste the contents of this file into it
4.a.: Don't do this unless you trust me. Malicious code in the developer
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@scturtle
scturtle / ftpserver.py
Created June 20, 2011 16:03
simple ftp server by python
#!/usr/bin/env python2
# coding: utf-8
import os,socket,threading,time
#import traceback
allow_delete = False
local_ip = socket.gethostbyname(socket.gethostname())
local_port = 8888
currdir=os.path.abspath('.')
@wzup
wzup / .jsbeautifyrc
Last active March 30, 2023 13:40
.jsbeautifyrc file example
{
// The plugin looks for a .jsbeautifyrc file in the same directory as the
// source file you're prettifying (or any directory above if it doesn't exist,
// or in your home folder if everything else fails) and uses those options
// along the default ones.
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options
// Documentation: https://github.com/einars/js-beautify/
"html": {
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "dust"],
@ramn
ramn / .muttrc
Last active February 8, 2022 17:48
Muttrc example with GMail support
##
## IMAP CREDENTIALS
##
set smtp_url = "smtp://some_user@smtp.gmail.com:587/"
#set smtp_pass = "password"
set from = "someuser@example.com"
set realname = "Some User"
##
## IMAP SETTINGS
@tannerli
tannerli / check_compromised.sh
Last active November 12, 2021 12:38
Check for compromised versions of npm packages 'rc' and 'coa'
#!/bin/bash
echo "Searching for rc packages..."
matches=$(find / -type d -path "*/node_modules/rc" 2>/dev/null)
echo -e "Checking for compromised versions...\\n"
for match in $matches
do
egrep 'version\":\s*\"((1.2.9)|(1.3.9)|(2.3.9))' "$match/package.json" && echo -e $match\\n
done
@gnalvesteffer
gnalvesteffer / main.lua
Created March 20, 2021 02:22
Teardown Message Scheduler
message_scheduler = {
messages = {},
tick = function()
local current_time = GetTime()
local next_messages_state = {}
for _, timed_message in ipairs(message_scheduler.messages) do
if current_time >= timed_message.time then
DebugPrint(timed_message.message)
else
@janstuemmel
janstuemmel / README.md
Last active May 26, 2020 13:47
Installation script for a portable platformio editor

a simple install script to build a portable version of the [PlatformIO IDE][pioide] based on the atom editor.

referenced to [platformio/platformio-atom-ide/issues/158][ref]

Usage

  • wget https://gist.githubusercontent.com/janstuemmel/5dea680981d443c8d93c9c7e12f08611/raw/install.sh
  • chmod +x install.sh
  • execute: ./install.sh v1.14.4