Skip to content

Instantly share code, notes, and snippets.

View Jaid's full-sized avatar
🔴
Streaming coding sessions on Twitch!

Jaid

🔴
Streaming coding sessions on Twitch!
View GitHub Profile
@BojanStipic
BojanStipic / fonts.conf
Last active April 27, 2019 13:56
Linux color emoji
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>NotoSans</family>
<family>NotoColorEmoji</family>
<family>NotoEmoji</family>
</prefer>
@ryanburnette
ryanburnette / Caddyfile
Last active May 4, 2021 06:27
caddy cache strategy
(asset-paths) {
path *.bmp *.jpg *.png *.svg *.gif *.pdf *.css *.js
}
(cache) {
@content {
not {
import asset-paths
}
}
header @content cache-control max-age=0
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; Created on: May 6th 2015
; Updated on: April 16th 2017
; Tutorial: https://www.tenforums.com/tutorials/5918-turn-off-windows-defender-windows-10-a.html
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
"DisableAntiSpyware"=dword:00000001
@ardcore
ardcore / atom-events
Last active October 13, 2021 20:35
atom.io events
application:open-your-keymap
application:open-your-stylesheet
autocomplete:attach
autoflow:reflow-paragraph
bookmarks:clear-bookmarks
bookmarks:jump-to-next-bookmark
bookmarks:jump-to-previous-bookmark
bookmarks:toggle-bookmark
bookmarks:view-all
check:correct-misspelling
@gradosevic
gradosevic / gulpfile_react.js
Last active November 24, 2022 06:27
Working gulpfile.js with gulp-babel ES6 and React
var gulp = require('gulp');
var babel = require("gulp-babel");
var sourcemaps = require('gulp-sourcemaps');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
gulp.task('default', () => {
return gulp.src('js/main.js')
.pipe(sourcemaps.init())
.pipe(babel({
@DamnedScholar
DamnedScholar / language-sampleGrammar.cson
Last active January 25, 2023 20:14
Grammar boilerplate with annotations.
# TextMate tutorial: http://manual.macromates.com/en/language_grammars
# Regex to convert keys to unquoted: '(include|match|captures|begin|end|beginCaptures|endCaptures|name|patterns|0|1|2|3|4|5|6|7|8|9|comment|fileTypes|scopeName|repository|contentName|firstLineMatch|foldingStartMarker|foldingStopMarker)':
scopeName: 'source.<scope>' # <scope> should be a short, unique indicator for the language ("js", "php", "c", etc.)
name: '<name>' # The title that will show up in grammar selection and on your status bar.
fileTypes: [ # An array of file extensions.
'txt'
'exif'
]
@LeoColomb
LeoColomb / GitHub Pinned Folder.reg
Last active February 1, 2023 06:28
Pin your local GitHub folder on the Windows Explorer Side Panel. Yup, just like the OneDrive folder!
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{635AA230-57AC-4D65-8A3D-94540C86DEA6}]
@="GitHub"
"System.IsPinnedToNameSpaceTree"=dword:00000001
"SortOrderIndex"=dword:00000042
[HKEY_CLASSES_ROOT\CLSID\{635AA230-57AC-4D65-8A3D-94540C86DEA6}\DefaultIcon]
@="PATH_TO\\GitHub.exe"
[HKEY_CLASSES_ROOT\CLSID\{635AA230-57AC-4D65-8A3D-94540C86DEA6}\InProcServer32]

Live Transcoding

This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.

Documentation links

@Devaniti
Devaniti / Setup.bat
Last active August 3, 2023 19:24
(deprecated, please use https://gist.github.com/Devaniti/f2cc137cd746d103171393647248fc3a instead) Setup script for new Windows 11 graphic developer PC
rem Script for setting up new Windows 11 PC for graphic development
rem You need need to run it with administator rights
rem You can modify list of installed software below
rem Windows explorer settings
rem Sets option to always show file extensions
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f
rem Sets option to show hidden files (but not OS protected files)
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 1 /f
rem Sets option to show full path instead of just folder name in file explorer window title
@ourownstory
ourownstory / encrypted_dual_boot_xps_17.md
Last active January 7, 2024 13:31
Encrypted dual boot setup for Pop!_OS and Windows 10 using LUKS and Bitlocker on Dell XPS 17 9700

Encrypted dual boot setup with Pop!_OS and Windows 10

How to guide, using LUKS and Bitlocker on Dell XPS 17 9700

This guide is for those who want to use their XPS 17 in dual boot with their (preinstalled) Windows 10 and a new Pop!_OS installation, without giving up Bitlocker Encryption in Windows nor LUKS encryption in Linux.

The only guides that I could find were for Ubuntu, which it should be identical to, but I found the ommission of a few steps to resolve issues that I encountered in my first install attempt. Hoping to save you some trouble, I am sharing the steps that worked for me, linking the original guides that I found useful.

1. Preparation

  • 1.1 Of course: Backup all your data! You always do this when people tell you to, right? Maybe this time better be safe than sorry.
  • 1.2 Safely note your Bitlocker recovery key somewhere off your XPS. Where to find it