Skip to content

Instantly share code, notes, and snippets.

View ianchia's full-sized avatar

Ian Chia ianchia

View GitHub Profile
@FurkanGozukara
FurkanGozukara / 0 How to convert a real video into an animation - anime video by using Stable Diffusion and Automatic1111 Web UI
Last active April 4, 2024 09:29
How to convert a real video into an animation - anime video by using Stable Diffusion and Automatic1111 Web UI
Video tutorial of this gist file : https://www.youtube.com/watch?v=kmT-z2lqEPQ
Used web UI commit hash id: a9eef1fbb1dcdce4f0eb0b8e0f79dcd4c96713e1
Used ControlNet commit hash id : 241c05f8c9d3c5abe637187e3c4bb46f17447029
git checkout a9eef1fbb1dcdce4f0eb0b8e0f79dcd4c96713e1
git checkout master
#!/usr/bin/env bash
set -eou pipefail
cd /home/pi
git clone https://github.com/popcornmix/omxplayer.git
cd omxplayer
sudo apt-get update && sudo apt install -y git libasound2-dev libva2 libpcre3-dev libidn11-dev libboost-dev libdbus-1-dev libssh-dev libsmbclient-dev libssl-dev
# see https://github.com/popcornmix/omxplayer/issues/731
#include <BLEMIDI_Transport.h>
#include <hardware/BLEMIDI_ESP32.h>
BLEMIDI_CREATE_INSTANCE("E-Drum",MIDI);
int tempo = 280;
void setup()
{
MIDI.begin(10);
}
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active July 24, 2024 15:28
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@gregorynicholas
gregorynicholas / index.html
Created March 19, 2012 17:34
De-obfuscated Code for Pinterest pinit button javascript: http://assets.pinterest.com/js/pinit.js
http://pinterest.com/pin/create/button/?url=http://www.domain.com&description=&media=
ex:
http://pinterest.com/pin/create/button/?url=http://www.youworkforthem.com&media=http://www.youworkforthem.com/img/eps/E1174/E1174_00.jpg&description=Escapism 30 pulls further away from reality by manipulating organic materials into beautiful, hi-res bursting textures. This is art, this is space, this is nature, this is chaos. Use as you wish.
@Coeur
Coeur / Get iOS MAC address.m
Created November 30, 2011 17:11
Get iOS MAC address #
/* Original source code courtesy John from iOSDeveloperTips.com */
#include <sys/socket.h>
#include <sys/sysctl.h>
#include <net/if.h>
#include <net/if_dl.h>
+ (NSString *)getMacAddress
{
int mgmtInfoBase[6];