Skip to content

Instantly share code, notes, and snippets.

View AFCMS's full-sized avatar
🎯
Focusing

AFCMS

🎯
Focusing
View GitHub Profile
@rain1024
rain1024 / tut.md
Last active July 27, 2024 09:59
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.
@groakat
groakat / gist:e7d8394d57fd4d3fe016
Last active March 25, 2024 11:28 — forked from anonymous/gist:5663418
Blender python script to export the motion tracking markers to .csv files.
from __future__ import print_function
import bpy
import os
D = bpy.data
printFrameNums = True # include frame numbers in the csv file
relativeCoords = False # marker coords will be relative to the dimensions of the clip
proj_folder = os.path.join(bpy.path.abspath('//'))
@pylover
pylover / inspections.txt
Last active July 25, 2024 15:18 — forked from ar45/inspections.txt
PyCharm inspections
# Extracted using: $ unzip -p lib/pycharm.jar com/jetbrains/python/PyBundle.properties | grep -B1 INSP.NAME | grep '^#' | sed 's|Inspection||g' | sed -e 's|#\s\{,1\}|# noinspection |'
# noinspection PyPep8
# noinspection PyPep8Naming
# noinspection PyTypeChecker
# noinspection PyAbstractClass
# noinspection PyArgumentEqualDefault
# noinspection PyArgumentList
# noinspection PyAssignmentToLoopOrWithParameter
# noinspection PyAttributeOutsideInit
@joenas
joenas / minetest@.service
Created April 10, 2017 13:17
Minetest systemd service for user
[Unit]
Description=Minetest server
After=syslog.target network.target
[Service]
Type=simple
Restart=on-failure
ExecStart=/usr/bin/minetest --server --world /home/minetest/.minetest/worlds/%i --gameid %i --config server.conf
[Install]
@0xv
0xv / youtube_comment_bot.py
Created May 28, 2017 03:57 — forked from streetgt/youtube_comment_bot.py
Youtube Comment Bot - python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python bot for comment a list of urls in YouTube
import time
import numpy as np
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
@AlexZeitler
AlexZeitler / setup-oh-my-zsh-powerlevel9k.sh
Created May 13, 2018 19:30
Installing zsh / oh-my-zsh / Powerlevel9k on Ubuntu 18.04
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
mkdir ~/.local/share/fonts/
mv PowerlineSymbols.otf ~/.local/share/fonts/
fc-cache -vf ~/.local/share/fonts/
mkdir ~/.config/fontconfig/conf.d/
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
echo "Log out of your session and login again."
-- Minetest client settings to improve FPS
-- DO NOT REPLACE YOUR minetest.conf WITH THIS; GO INTO ADVANCED SETTINGS AND CHANGE THESE
-- In the main settings dialog:
-- * NO particles
-- * NO 3d clouds
-- * OPAQUE leaves
-- * OPAQUE water
-- * NO texturing filter
-- * YES Mipmap + Aniso. Filter
@Brandawg93
Brandawg93 / google_login.ts
Last active June 25, 2024 05:15
Login to Google Account via Puppeteer
import puppeteer from 'puppeteer-extra';
import pluginStealth from 'puppeteer-extra-plugin-stealth'; // Use v2.4.5 instead of latest
import * as readline from 'readline';
puppeteer.use(pluginStealth());
// Use '-h' arg for headful login.
const headless = !process.argv.includes('-h');
// Prompt user for email and password.
@gipsh
gipsh / ubuntu_on_asus_TUF_A15_FA506IV.MD
Last active March 15, 2023 10:28
Ubuntu 20.04 on ASUS TUF A15 (FA506IV)

Installed using lived cd

Needed to add the nomodeset option to grub to correctly boot

After boot edit /etc/default/grub and add the nomodeset to the line with GRUB_CMDLINE_LINUX_DEFAULT.

Run this to make it persistent: