Skip to content

Instantly share code, notes, and snippets.

View Raymo111's full-sized avatar

Raymond Li Raymo111

View GitHub Profile
@aeris
aeris / clip.py
Created August 9, 2012 23:21
Copy/paste from command line with Klipper
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
import argparse, dbus, sys
bus = dbus.SessionBus()
klipper = bus.get_object('org.kde.klipper', '/klipper')
@rain1024
rain1024 / tut.md
Last active May 30, 2024 13:13
Install pdflatex ubuntu

PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below.

  • Install the TexLive base
sudo apt-get install texlive-latex-base
  • Also install the recommended and extra fonts to avoid running into the error [1], when trying to use pdflatex on latex files with more fonts.
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active June 1, 2024 20:51
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@Raymo111
Raymo111 / Setup a Raspberry Pi.md
Last active June 5, 2020 09:32
How to Setup a Raspberry Pi
@Raymo111
Raymo111 / i3lock on wake from sleep or hibernate.md
Last active May 10, 2024 01:52
How to use i3lock to wake from suspend state
@Raymo111
Raymo111 / SSH Over 443.md
Last active August 4, 2023 04:00
How to SSH over 443 while Apache runs SSL with socat, stunnel4 and sslh
@Raymo111
Raymo111 / Automatic Dislocker.md
Last active October 31, 2023 12:33
Automatic Dislocker

Automatic Dislocker

By Raymond Li (Raymo111), October 1st, 2019

You'll need to have Dislocker installed, obviously. You'll also need accessible folders at /media/bitlocker/dislocker-file and /media/bitlockermount

  1. Download the script
    mkdir -p ~/scripts && wget +x https://gist.github.com/Raymo111/964f8c5943a64919a324b5f92ac5874b/raw/72d3b9c23189e0e1a55de7aab22578773b8f133c/dislocker.sh ~/scripts/dislocker.sh
    
@Raymo111
Raymo111 / dilbert.sh
Created October 25, 2019 02:30
Dilbert Crawl
#!/bin/bash
start=$1
case "$2" in
"") end=$1 ;;
*) end=$2 ;;
esac
start=$(date -d $start '+%Y-%m-%d')
end=$(date -d $end '+%Y-%m-%d')
[ -d Dilberts ] || mkdir Dilberts
@Raymo111
Raymo111 / Just in case we need this.md
Created April 3, 2020 15:11
Dyno settings for CS '25

Welcome

{user}, welcome to {server}! Please use `?iwillabidebyallserverrules yourname yourprogram` here to get started!

By doing so, you acknowledge that you have read this message in its entirety and agree to abide by all server rules. Note that you will be kicked out if you enter inappropriate info. This includes that `yourname` must be your *actual* firstname, or firstname and last initial.

Use `?ranks` to show all programs, and `?rules` to show all server rules.

If you are not in any of the listed programs, please choose `spy` :)