Skip to content

Instantly share code, notes, and snippets.

View bouiboui's full-sized avatar
🌍
cod3.net

Julien bouiboui

🌍
cod3.net
View GitHub Profile
@benln
benln / yarn-run-fzf.sh
Last active August 20, 2024 08:00
fzf package.json script selector
#!/bin/bash
yarn() {
# Check for required dependencies: jq and fzf
local missing_deps=()
for dep in jq fzf; do
if ! command -v "$dep" &>/dev/null; then
missing_deps+=("$dep")
fi
done
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@unitycoder
unitycoder / unity-workflow-issues.md
Last active May 9, 2024 15:52
Unity WorkFlow Issues And Bugs

RANDOM (TO BE SORTED..Latest issues at bottom, maybe more relevant)

  • Folded box colliders keep unfolding here and there
  • No alpha in generated Sprite (circle) when assigned to UI Image
  • Never know for sure what version works best with VR and post processing..
  • Sprite slicer doesnt work with small sprites (support said wont fix)
  • Shadergraph: how to move node with all its connected parent nodes?
  • Tried to update oculus package, failed due to dll in use, restarting didnt help, deleted whole oculus folder, alt tab and back, deleted folder appread back! (multiple tiles, until deleted library and some other folder also)
  • Cannot drag objects to another folder, if target folder already contains same filename, but there is no info to user that its the case
  • More than once a week, sign into unity dialog
  • Doing multiselect DeSelect in project window, it jumps to first item on every deselect
@mikowl
mikowl / oneliners.js
Last active June 29, 2024 17:39
👑 Awesome one-liners you might find useful while coding.
// Inspired by https://twitter.com/coderitual/status/1112297299307384833 and https://tapajyoti-bose.medium.com/7-killer-one-liners-in-javascript-33db6798f5bf
// Remove any duplicates from an array of primitives.
const unique = [...new Set(arr)]
// Sleep in async functions. Use: await sleep(2000).
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms)));
// or
const sleep = util.promisify(setTimeout);
@luketheobscure
luketheobscure / lambda.js
Last active June 10, 2019 12:57
Percy Bitbucket AWS Lambda
const https = require('https');
const AUTHORIZATION = ''; // base 64 of user:password
const BITBUCKET_USER = ''; // either the user or the org that owns the repo
const PERCY_USER = ''; // the name of your percy user or org
exports.handler = (event, context, callback) => {
/**
We need to post to a URL like this:
https://api.bitbucket.org/2.0/repositories/<user>/<repo>/commit/<hash>/statuses/build
@danielmahal
danielmahal / removeduplicateframes.sh
Created March 6, 2017 21:43
Remove duplicate frames from video with ffmpeg and mpdecimate
ffmpeg -i input.mov -vf mpdecimate,setpts=N/FRAME_RATE/TB output.mov

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@terrehbyte
terrehbyte / UsefulUnityAssets.md
Last active June 24, 2024 19:06
Useful Open-Source Unity Assets

Useful Open-Source Unity Assets

This is a compilation of various open-source Unity plugins, codebases, or utility scripts that may aid in expediting the development process.

Art / Design Tools

ProbePolisher - Light Probe Editor - keijiro

"ProbePolisher is a Unity Editor plugin for editing light probes. It works both on Unity Basic (free) and Unity Pro."

Code
Releases

@nocturnalgeek
nocturnalgeek / MailinatorAliases
Last active August 21, 2024 01:58
A list of alternate domains that point to @mailinator.com
@binkmail.com
@bobmail.info
@chammy.info
@devnullmail.com
@letthemeatspam.com
@mailinater.com
@mailinator.net
@mailinator2.com
@notmailinator.com
@reallymymail.com
@jvandyke
jvandyke / .gitconfig
Last active January 27, 2023 08:11
Use PHPStorm/WebStorm for git diff and merge tools
# ~/.gitconfig
# Add this to your global git configuration file
# Change phpstorm to webstorm, if you use that.
# Diff and merge tool changes
# Run `git difftool <directory/file>...` or `git mergetool <directory/file>...`
[merge]
tool = phpstorm
[diff]
tool = phpstorm