Skip to content

Instantly share code, notes, and snippets.

@llagerlof
llagerlof / Search my gists.md
Created July 4, 2023 15:41 — forked from OrenBochman/Search my gists.md
How to search gists

Gist Search Cheatsheet

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:orenbochman

Find all gists with a .yml extension.
extension:yml

@llagerlof
llagerlof / starship.toml
Created August 26, 2022 12:57 — forked from ryo-ARAKI/starship.toml
Starship configuration file
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
[[battery.display]]
threshold = 30
style = "bold red"
@llagerlof
llagerlof / git-deployment.md
Created July 18, 2022 13:35 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@llagerlof
llagerlof / web-servers.md
Created May 20, 2022 12:41 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@llagerlof
llagerlof / side-by-side-phabriactor-wiki-editor.css
Created August 19, 2021 19:30 — forked from benvium/side-by-side-phabriactor-wiki-editor.css
Userstyle for Phabricator Wiki to enable Side-by-side editing, and to hide loads of unused stuff.Use Patterns: https://*/phriction/edit/*
/* SIDE BY SIDE PHRICTION EDIT */
/* add a userstyle with pattern */
/* L H S */
/* pos of left-hand editor */
.phui-box.phui-box-border.mlt.mll.mlr.phui-object-box.phui-object-box-lightblue {
margin-right: 800px !important;
margin-left:0 !important;
@llagerlof
llagerlof / FFmpeg | Basic Operation on Subtitles.md
Created August 13, 2021 01:39 — forked from innat/FFmpeg | Basic Operation on Subtitles.md
Remove hard subtitles from video file || Integrate subtitles into a video file || Generate .srt file from a video file.

Download FFmpeg for Windows

Steps

  • Download FFmpeg
  • Extract it and save it to C drive ( choose any location - it's optional )
  • Set environment variable - copy the location of bin folder which is inside the extracted file and set the location on system path variable.
  • Done!
@llagerlof
llagerlof / index.html
Created November 19, 2020 12:00 — forked from kahole/index.html
*scratch*.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>*scratch*</title>
<style>
body {
font-family: Hack, Menlo, Monaco, 'Droid Sans Mono', 'Courier New', monospace;
white-space: pre;
@llagerlof
llagerlof / embedded-file-viewer.md
Created July 22, 2020 19:52 — forked from tzmartin/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

git tag -am "annotation goes here" tagname_goes_here # cut a tag
git tag -d tagname_goes_here # burn it
git tag -am "annotation goes here" tagname_goes_here # cut another tag
git push --tags # push tags to remote
git push origin :refs/tags/tagname_goes_here # delete tag from remote
@llagerlof
llagerlof / set_utf8.sh
Last active August 6, 2019 13:36 — forked from panchicore/bash
GIT error on push/pull: "remote: perl: warning: Setting locale failed" [SOLVED]
#!/bin/bash
# perl: warning: Setting locale failed.
# perl: warning: Please check that your locale settings:
# LANGUAGE = (unset),
# LC_ALL = (unset),
# LC_CTYPE = "UTF-8",
# LANG = "en_US.UTF-8"
# are supported and installed on your system.
# perl: warning: Falling back to the standard locale ("C").