Skip to content

Instantly share code, notes, and snippets.

# This xorg configuration file will start a dummy X11 server.
# move it to /etc/X11/xorg.conf
# don't forget apt install xserver-xorg-video-dummy;
# based on https://xpra.org/Xdummy.html
Section "ServerFlags"
Option "DontVTSwitch" "true"
Option "AllowMouseOpenFail" "true"
Option "PciForceNone" "true"
Option "AutoEnableDevices" "false"
# apt-get install
sudo apt-get update
# For ubuntu 14.04
sudo apt-get install -y xserver-xorg-video-dummy-lts-trusty
# For ubuntu 16.04
sudo apt-get install -y xserver-xorg-video-dummy-lts-willy
# Copy the xorg.conf to `/etc/X11/xorg.conf`.
wget -P /etc/X11 https://gist.githubusercontent.com/mangoliou/ba126832f2fb8f86cc5b956355346038/raw/b6ad063711226fdd6413189ad905943750d64fd8/xorg.conf
// Poll example Discord.js V14.15.1
import { PollData } from 'discord.js';
const poll: PollData = {
question: {
text: 'PHP is good?',
},
answers: [
{
@asukakenji
asukakenji / go-stdlib-interface-selected.md
Last active May 5, 2024 04:26
Go (Golang) Standard Library Interfaces (Selected)

Go (Golang) Standard Library Interfaces (Selected)

This is not an exhaustive list of all interfaces in Go's standard library. I only list those I think are important. Interfaces defined in frequently used packages (like io, fmt) are included. Interfaces that have significant importance are also included.

All of the following information is based on go version go1.8.3 darwin/amd64.

Remove osxfuse if installed via homebrew:
> brew uninstall osxfuse
Install osxfuse binary and choose to install the MacFUSE compatibility layer:
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files
Reboot (optional but recommended by osxfuse)
Install ntfs-3g via homebrew:
> brew update && brew install ntfs-3g
@ChenYFan
ChenYFan / TGTalk-worker.js
Last active May 5, 2024 04:24
Worker获取Telegram公开频道的信息,算是一个变相的说说系统
addEventListener('fetch', event => {
event.respondWith(TelgramChannelStarter(event.request))
})
const ChannelName = 'Cyanwoof'
const version = "2.1.7"
let denined = true
const deninedRegion = ["CN"]
const TelgramChannelStarter = async (request) => {
const url = new URL(request.url)

Download .ipa files removed from purchased tab.

Due to unknown reasons, apps you had previously purchased can no longer be downloaded from the App Store or iTunes. However, it turns out these applications can still be accessed using iMazing's app downloading feature. This is because iMazing downloads apps using a different endpoint from what iTunes uses.

This app must be purchased on your Apple ID. You cannot just download any app ever made. Apple only lets you download apps you had bought or downloaded in the past.

Requirements for this tutorial:

  • iMazing (Windows or Mac)
  • Plist editor (ProperTree is free and cross platform, requires Python)
@juanbrujo
juanbrujo / PlayStationBIOSFilesNAEUJP.md
Last active May 5, 2024 04:08
Files for PlayStation BIOS Files NA-EU-JP
@abir-taheer
abir-taheer / instagram-follower-following.js
Last active May 5, 2024 04:08
"This is our community, this is our family, these are our friends." https://www.youtube.com/watch?v=gk7iWgCk14U&t=425s
if (window.location.origin !== "https://www.instagram.com") {
window.alert(
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.",
);
window.location.href = "https://www.instagram.com";
console.clear();
}
const fetchOptions = {
credentials: "include",